/* Virtual Cancer Center - public landing site theme
   Palette and typography match clinical/medical_oncology/frontend/v2/src/styles.css
   (the Cyberdoc Vue app) so the two sites feel like one institution. */

:root {
  color-scheme: light;
  --ink: #15323d;
  --muted: #55707a;
  --canvas: #f3f8f4;
  --paper: #ffffff;
  --teal: #087e7b;
  --teal-dark: #075b61;
  --coral: #dd6c56;
  --sun: #e4b34b;
  --line: #cfe0d8;
  --shadow: 0 18px 42px rgba(29, 77, 72, 0.12);
  font-family: Aptos, Candara, Calibri, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(90deg, rgba(8, 126, 123, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(8, 126, 123, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  color: inherit;
}

.site-frame {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
}

.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--teal);
}

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  color: var(--paper);
  background: var(--teal);
  border-radius: 6px;
  font-family: Georgia, 'Palatino Linotype', serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.85rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-nav a {
  text-decoration: none;
  color: var(--teal-dark);
}

.header-nav a:hover {
  text-decoration: underline;
}

.site-main {
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.hero {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-bottom: clamp(28px, 5vw, 48px);
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.author-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--canvas);
  border-radius: 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.bio-lines {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.bio-lines p,
.dedication-panel p {
  margin: 0;
}

.dedication-panel {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(8, 126, 123, 0.08);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
}

.dedication-panel h2 {
  margin: 0 0 12px;
  color: var(--teal-dark);
}

.dedication-panel p {
  max-width: 78ch;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-link {
  display: block;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.card-link.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.card-link.is-disabled:hover {
  transform: none;
  border-color: var(--line);
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--teal);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card-link h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.card-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge-available {
  background: rgba(8, 126, 123, 0.12);
  color: var(--teal-dark);
}

.badge-soon {
  background: rgba(228, 179, 75, 0.22);
  color: #8a6412;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.toc-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.toc-list li a:hover .toc-title {
  text-decoration: underline;
}

.toc-num {
  flex-shrink: 0;
  width: 28px;
  color: var(--teal-dark);
  font-weight: 700;
}

.toc-title {
  font-weight: 600;
}

.note-panel {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(228, 179, 75, 0.12);
  border: 1px solid rgba(228, 179, 75, 0.4);
  border-radius: 10px;
  color: #6b4c10;
  font-size: 0.92rem;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--teal-dark);
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    flex-wrap: wrap;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .author-portrait {
    max-width: 220px;
  }
}
