﻿/* ---------- Widen the main content box by 25% (to the right) ---------- */
:root {
  --content-max-inline-size: 775px;  /* 620px + 25% */
}

/* ---------- Sidebar nav on the left ---------- */
.side-nav {
  position: fixed;
  top: 50%;
  left: 4rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  z-index: 10;
}
.side-nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
}
.side-nav a:hover { opacity: 0.9; }
.side-nav a.active { opacity: 1; font-weight: 600; }

/* ---------- Space between hero buttons ---------- */
.content-container p a:only-child,
.content-container p + p a {
  margin-right: 1rem;
}

/* ---------- Bordered table for specialties ---------- */
.content-container table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}
.content-container table td,
.content-container table th {
  border: 1px solid rgba(128, 128, 128, 0.35);
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
}



/* ---------- Hide nav if screen is too narrow to keep it out of the content ---------- */
@media (max-width: 1200px) {
  .side-nav { display: none; }
}




/* ---------- H4: kill italic ---------- */
h4, .content-container h4, h4 em, h4 i {
  font-style: normal !important;
}

/* ---------- Kill the heading anchor "#" ---------- */
.anchor,
h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor,
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor,
h4:hover .anchor, h5:hover .anchor, h6:hover .anchor {
  display: none !important;
}

/* ---------- Links: no underline until hover ---------- */
.content-container a { text-decoration: none; }
.content-container a:hover { text-decoration: underline; }

/* ---------- Hide the empty table header row ---------- */
.content-container table thead {
  display: none;
}

/* ---------- Table cell hover highlight ---------- */
.content-container table td {
}
.content-container table td:hover {
  background-color: #141413;
  color: #f0efea;
}

/* ---------- Green accent ONLY on the 3000+ number ---------- */
.content-container h1:has(+ h4) {
  color: inherit;
}
.stat-number {
  color: #607456;
  font-weight: 700;
}

/* ---------- Override the 3000+ accent color ---------- */
.stat-number {
  color: #8140DC !important;
  font-weight: 700;
}

/* ---------- Override the 3000+ accent color ---------- */
.stat-number {
  color: #00E0BA !important;
  font-weight: 700;
}

/* ---------- AI disclaimer callout ---------- */
.ai-disclaimer {
  border-left: 3px solid #e0a3a3;
  background: rgba(224, 163, 163, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: inherit;
  line-height: 1.55;
}

/* ---------- Skeuomorphic dark buttons ---------- */
/* ---------- No underline on buttons ---------- */
.btn,
.btn:visited,
.btn:focus,
.btn:active {
  text-decoration: none !important;
}/* ---------- Hero line: dot separators + staggered entrance ---------- */
.hero-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-item {
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: heroIn 0.5s ease-out forwards;
}

.hero-item:nth-child(1) { animation-delay: 0.15s; }
.hero-item:nth-child(2) { animation-delay: 0.35s; }
.hero-item:nth-child(3) { animation-delay: 0.55s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-item + .hero-item::before {
  content: "•";
  position: absolute;
  left: -0.65rem;
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Render single newlines in paragraphs as line breaks ---------- */
.content-container p {
  white-space: pre-line;
}



/* ---------- Style the --- horizontal rule as a clean divider ---------- */

.content-container 

/* ---------- Bigger buttons ---------- */
.btn {
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
}





/* ---------- Turn bullets into checkmarks ---------- */
.content-container ul:not(.specialties-grid) {
  list-style: none;
  padding-left: 1.5rem;
}
.content-container ul:not(.specialties-grid) li {
  position: relative;
}
.content-container ul:not(.specialties-grid) li::before {
  content: "✓";
  position: absolute;
  left: -1.5rem;
  top: 0;
  color: inherit;
  opacity: 0.7;
}

/* slight noise via layered gradients */
    radial-gradient(ellipse at 20% 60%, rgba(255, 220, 80, 0.55), transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(255, 235, 120, 0.5), transparent 65%),
    radial-gradient(ellipse at 45% 80%, rgba(250, 210, 70, 0.55), transparent 70%),
    /* base marker color */
    linear-gradient(180deg,
      rgba(255, 228, 100, 0.45) 0%,
      rgba(255, 215, 70, 0.65) 40%,
      rgba(255, 220, 90, 0.6) 100%);
  /* faint darker edge like marker overlap */
  box-shadow: inset 0 -2px 6px rgba(220, 180, 40, 0.2);
  /* texture: subtle diagonal paper grain */
  background-blend-mode: multiply, multiply, multiply, normal;
  position: relative;
}

/* faint second stroke offset for the "double pass" marker feel */




/* darker where the "pen tip" pressed */
  box-shadow: inset 0 -3px 8px rgba(210, 170, 20, 0.35);
}


/* ---------- Skeuomorphic buttons (no hover fade) ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  color: #f0efea;
  background: linear-gradient(180deg, #3a3a35 0%, #232320 100%);
  border: 1px solid #1a1a17;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 0, 0, 0.15);
  margin: 0.4rem 0.75rem 0.4rem 0;
}

.btn:active {
  background: linear-gradient(180deg, #1e1e1b 0%, #2a2a26 100%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Dark mode: light skeuomorphic buttons */
.dark-mode-on .btn {
  color: #141413;
  background: linear-gradient(180deg, #f5f4ef 0%, #dcdad2 100%);
  border-color: #b8b6ae;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 3px 6px rgba(0, 0, 0, 0.1);
}
.dark-mode-on .btn:active {
  background: linear-gradient(180deg, #cfcdc5 0%, #e6e4dd 100%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.1);
}


/* ---------- Skeuomorphic buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  color: #f0efea;
  background: linear-gradient(180deg, #3a3a35 0%, #232320 100%);
  border: 1px solid #1a1a17;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 0, 0, 0.15);
  margin: 0.4rem 0.75rem 0.4rem 0;
}

.btn:active {
  background: linear-gradient(180deg, #1e1e1b 0%, #2a2a26 100%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.2);
}

.dark-mode-on .btn {
  color: #141413;
  background: linear-gradient(180deg, #f5f4ef 0%, #dcdad2 100%);
  border-color: #b8b6ae;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 3px 6px rgba(0, 0, 0, 0.1);
}
.dark-mode-on .btn:active {
  background: linear-gradient(180deg, #cfcdc5 0%, #e6e4dd 100%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.1);
}

/* ---------- Make clipping cells fully clickable ---------- */
.content-container table td:has(.cell-link) {
  padding: 0;
}

.content-container a.cell-link {
  display: block;
  padding: 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
}

/* ---------- Author profile bento grid ---------- */
.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 0.85rem;
  margin: 1.5rem 0 3rem 0;
}

/* First tile takes 2 columns and 2 rows — the "hero" cell */
.author-grid a:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Second tile is wide, single row */
.author-grid a:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Tiles 3 and 4 stack side by side in the remaining column */
.author-grid a:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}
.author-grid a:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

/* Tiles 5 and 6 are wide cells in the bottom row */
.author-grid a:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}
.author-grid a:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}

.author-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.04);
  text-decoration: none;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.2s, opacity 0.2s;
}

.author-grid a:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: rgba(128, 128, 128, 0.4);
  background: rgba(128, 128, 128, 0.08);
}

.author-grid img {
  max-height: 32px;
  max-width: 100%;
  height: auto;
  width: auto;
}

/* Bigger logo in the hero cell */
.author-grid a:nth-child(1) img {
  max-height: 44px;
}

/* Stack to 2 columns on medium screens */
@media (max-width: 900px) {
  .author-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .author-grid a:nth-child(1),
  .author-grid a:nth-child(2),
  .author-grid a:nth-child(5),
  .author-grid a:nth-child(6) {
    grid-column: span 2;
  }
  .author-grid a:nth-child(3),
  .author-grid a:nth-child(4) {
    grid-column: span 1;
  }
}

/* Single column on small screens */
@media (max-width: 560px) {
  .author-grid {
    grid-template-columns: 1fr;
  }
  .author-grid a {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* ---------- Bento grid: fit long logos ---------- */
.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 0.85rem;
  margin: 1.5rem 0 3rem 0;
}

.author-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.04);
  text-decoration: none;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.2s, opacity 0.2s;
  overflow: hidden;
  box-sizing: border-box;
}

.author-grid a:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: rgba(128, 128, 128, 0.4);
  background: rgba(128, 128, 128, 0.08);
}

.author-grid img {
  max-height: 32px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Give the small AH cell a little more room */
.author-grid a:nth-child(3) {
  padding: 0.6rem 0.5rem;
}
.author-grid a:nth-child(3) img {
  max-height: 24px;
}

/* ---------- Text-only tiles in the author grid ---------- */
.author-grid a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: inherit;
}

/* ---------- Contact form: clean stacked layout ---------- */
.content-container form {
  display: block;
  margin: 2rem 0;
  max-width: 32rem;
}

.content-container form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.content-container form input[type="text"],
.content-container form input[type="email"],
.content-container form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(128, 128, 128, 0.04);
  color: inherit;
  box-sizing: border-box;
}

.content-container form input:focus,
.content-container form textarea:focus {
  outline: none;
  border-color: rgba(128, 128, 128, 0.55);
  background: rgba(128, 128, 128, 0.08);
}

.content-container form textarea {
  resize: vertical;
  min-height: 8rem;
}

.content-container form button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Author grid: force monochrome + higher contrast ---------- */
.author-grid a {
  filter: grayscale(100%) contrast(1.4) brightness(0.55);
  opacity: 1;
}

.author-grid a:hover {
  filter: grayscale(0%) contrast(1.2) brightness(1);
  opacity: 1;
}

/* ---------- Author grid: darker tiles, bigger logos in small cells ---------- */
.author-grid a {
  background: rgba(60, 60, 60, 0.08);
  border-color: rgba(80, 80, 80, 0.28);
}

.dark-mode-on .author-grid a {
  background: rgba(220, 220, 220, 0.06);
  border-color: rgba(220, 220, 220, 0.18);
}

/* Smaller cells get taller logo allowance */
.author-grid a:nth-child(2) img,
.author-grid a:nth-child(3) img,
.author-grid a:nth-child(4) img {
  max-height: 44px;
}

/* Bump logo size in the wide bottom-row tiles too */
.author-grid a:nth-child(5) img,
.author-grid a:nth-child(6) img {
  max-height: 38px;
}

/* ---------- Static publication logo strip ---------- */
.pub-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem 0;
}

.pub-strip img {
  max-height: 26px;
  width: auto;
  filter: grayscale(100%) contrast(1.4) brightness(0.55);
  opacity: 0.75;
}

.dark-mode-on .pub-strip img {
  filter: grayscale(100%) contrast(1.4) brightness(1.6);
  opacity: 0.7;
}




/* ---------- Clean horizontal divider ---------- */

.content-container 

/* ---------- Clean horizontal divider ---------- */
.content-container hr {
  border: none !important;
  height: 1px !important;
  background: rgba(128, 128, 128, 0.25) !important;
  margin: 2.5rem auto !important;
  width: 60% !important;
  display: block !important;
}
.content-container hr:after {
  content: none !important;
  display: none !important;
}


/* ---------- Divider: forced ---------- */
article.content-container > hr,
main.content-wrapper article hr,
body hr {
  display: block !important;
  height: 1px !important;
  min-height: 1px !important;
  border: 0 !important;
  background: rgba(128, 128, 128, 0.3) !important;
  margin: 2.5rem auto !important;
  width: 60% !important;
  visibility: visible !important;
  opacity: 1 !important;
}
article.content-container > hr::after,
main.content-wrapper article hr::after,
body hr::after {
  content: none !important;
  display: none !important;
}



/* ---------- Floating toggle, free of any parent constraints ---------- */
.toggle-float {
  position: fixed;
  top: 1.75rem;
  right: 2.5rem;
  z-index: 50;
}


/* ---------- Brighten WhatMobile by ~40% over base ---------- */
.pub-strip img[alt="WhatMobile"],
.author-grid img[alt="WhatMobile"] {
  filter: grayscale(100%) contrast(1.4) brightness(0.77) !important;
}
.dark-mode-on .pub-strip img[alt="WhatMobile"],
.dark-mode-on .author-grid img[alt="WhatMobile"] {
  filter: grayscale(100%) contrast(1.4) brightness(1.6) !important;
}
