/* ============================================================
   fonAkademisi — Article Page Stylesheet
   Used by: all pages under /articles/
   ============================================================ */

/* ── READING PROGRESS BAR ── */
#read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--green-mid);
  z-index: 200;
  transition: width .1s linear;
}

/* ── ARTICLE HERO ── */
.art-hero { background: var(--green-dark); padding: 5rem 2rem 3.5rem; }
.art-hero-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb { font-size: var(--fs-xs); color: rgba(244,240,230,.45); margin-bottom: 1.2rem; letter-spacing: .02em; }
.breadcrumb a { color: rgba(244,240,230,.45); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: rgba(244,240,230,.8); }
.breadcrumb span { margin: 0 6px; }

.art-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,.1); color: var(--green-mid);
  font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 2px; margin-bottom: 1.2rem;
  border: 1px solid rgba(66,184,105,.3);
}

.art-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 400; color: var(--cream);
  letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: 40px;
}

.art-meta {
  display: flex; gap: 0;
  font-size: var(--fs-sm); color: rgba(244,240,230,.5); flex-wrap: wrap;
}
.art-meta span::before { content: '·'; margin: 0 10px; }
.art-meta span:first-child::before { content: ''; margin: 0; }

/* ── ARTICLE BODY ── */
.art-body-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.art-body-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--green-dark); letter-spacing: -.01em;
  margin: 3rem 0 .9rem;
}
.art-body-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--green-dark); margin: 2rem 0 .6rem;
}
.art-body-wrap p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem; line-height: 1.75;
  color: #2a3e2e; margin-bottom: 1.2rem;
}
.art-body-wrap ul,
.art-body-wrap ol {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem; line-height: 1.75;
  color: #2a3e2e; margin: .8rem 0 1.2rem 1.4rem;
}
.art-body-wrap li { margin-bottom: .4rem; }
.art-body-wrap strong { font-weight: 600; color: var(--green-dark); }

/* ── CALLOUTS ── */
.callout {
  background: #dff0e3;
  border-left: 3px solid var(--green-mid);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.2rem; margin: 1.5rem 0;
  font-family: var(--font-body);
  font-size: .9rem; color: var(--green-dark);
}
.callout strong { font-weight: 700; display: block; margin-bottom: 4px; }

.warning {
  background: #fff8e6;
  border-left: 3px solid #e6a817;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.2rem; margin: 1.5rem 0;
  font-family: var(--font-body);
  font-size: .9rem; color: #5a4a10;
}

/* ── ARTICLE FOOTER ── */
.art-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.art-footer-nav {
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 1.4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3rem; flex-wrap: wrap; gap: 12px;
}
.art-footer-nav a {
  font-size: var(--fs-nav); font-weight: 600;
  color: var(--green-dark); text-decoration: none;
}
.art-footer-nav a:hover { color: var(--green-mid); }

.share-row { display: flex; gap: 8px; align-items: center; }
.share-label { font-size: var(--fs-sm); color: var(--muted); }
.share-btn {
  font-size: var(--fs-sm); font-weight: 600;
  padding: 5px 14px; border-radius: 4px;
  border: 1.5px solid var(--border);
  text-decoration: none; color: var(--green-dark);
  background: #fff; transition: background .15s;
}
.share-btn:hover { background: var(--cream-dark); }

.disclaimer {
  background: var(--cream-dark);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  font-size: var(--fs-xs); color: var(--muted);
  line-height: 1.6; margin-top: 2rem;
}

/* ── RELATED ARTICLES ── */
.related-articles { margin-top: 3rem; }
.related-title {
  font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 700; margin-bottom: 1rem;
}
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.related-card {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 1rem 1.1rem;
  transition: box-shadow .15s, transform .15s;
}
.related-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-cat {
  font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 5px;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600;
  color: var(--green-dark); line-height: 1.3;
}
@media (max-width: 500px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── JARGON TOOLTIPS ── */
/* Allow .tip on <a> tags without inheriting link colors */
a.tip { color: inherit; text-decoration: none; }
a.tip:hover { color: var(--green-dark); }
.tip {
  border-bottom: 1px dashed var(--green-mid);
  cursor: help;
  position: relative;
  display: inline;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: #0d3320;
  color: #e8f5e9;
  font-family: var(--font-body);
  font-size: var(--fs-sm); font-style: normal; font-weight: 400;
  line-height: 1.5;
  padding: 7px 11px;
  border-radius: 4px;
  white-space: normal;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0d3320;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 50;
}
.tip:hover::after,
.tip:hover::before { opacity: 1; }

/* keep tooltip on screen at edges */
.tip:first-child::after { left: 0; transform: none; }

/* ── ARTICLE TABLE OF CONTENTS (sticky, floating) ── */
.art-toc {
  display: none; /* hidden until wide enough viewport */
}

@media (min-width: 1280px) {
  .art-toc {
    display: block;
    position: fixed;
    top: 110px;
    left: calc(50% + 410px);
    width: 180px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    /* subtle scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .art-toc-label {
    font-size: var(--fs-3xs);
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 10px;
    padding: 0;
  }

  .art-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border);
  }

  .art-toc ol li { margin: 0; padding: 0; }

  .art-toc ol li a {
    display: block;
    padding: 5px 0 5px 12px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
    border-left: 2px solid transparent;
    margin-left: -2px;
  }

  .art-toc ol li a:hover { color: var(--green-dark); }

  .art-toc ol li a.toc-active {
    color: var(--green-mid);
    border-left-color: var(--green-mid);
    font-weight: 600;
  }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .art-hero, .art-body-wrap { padding-left: 1.2rem; padding-right: 1.2rem; }
}
