/*
Theme Name: ItsAgeCalculator
Theme URI: https://itsagecalculator.com/
Author: Yasir Hafeez
Description: Clean, fast, white theme for ItsAgeCalculator. Works with the ItsAgeCalculator Tools plugin, which adds the calculators and pages.
Version: 1.6.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itsagecalculator
*/
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #0f1f3d;
  --muted: #4d5b74;
  --faint: #7d889c;
  --line: #e3e9f2;
  --accent: #1565e0;
  --accent-ink: #ffffff;
  --accent-soft: #eef4ff;
  --teal: #12804f;
  --teal-soft: #e0f5ea;
  --shadow: 0 1px 2px rgba(29, 42, 51, .05), 0 8px 24px rgba(29, 42, 51, .06);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* header & footer */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img.logo { height: 44px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 720px) { .site-head .wrap { flex-wrap: wrap; min-height: 0; padding: 8px 0 6px; gap: 6px; } .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .nav a { white-space: nowrap; padding: 4px 10px; font-size: .9rem; background: var(--card); border: 1px solid var(--line); } }
.site-foot { margin-top: 72px; background: #f7f9fc; border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: .95rem; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; padding: 2px 0; }
.foot-grid a:hover { color: var(--accent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* hero & tool */
.crumbs { font-size: .9rem; color: var(--faint); margin-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); margin: 24px 0 8px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field label, .lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; font: inherit; color: var(--ink); background: #f7f9fc; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 48px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: .85rem; color: var(--faint); margin-top: 6px; }
.result { margin-top: 22px; border-radius: 14px; background: var(--accent-soft); padding: clamp(16px, 3vw, 26px); }
.result .big { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 700; line-height: 1.15; }
.result .sub { color: var(--muted); margin-top: 6px; }
.result.empty { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat span { display: block; font-size: .8rem; color: var(--faint); }
.stat b { font-size: 1.15rem; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn.ghost:hover { color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 3px 10px; }

/* mega calculator */
.progress { height: 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 999px; }
.sub.small { font-size: .9rem; }
.tabs { display: flex; gap: 8px; margin: 20px 0 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; }
.tabs button:hover { border-color: var(--accent); color: var(--accent); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mega { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(29, 42, 51, .04); }
.panel h3 { margin: 0 0 10px; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.panel .hint { margin: 4px 0 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; }
.kv .past { color: var(--faint); font-weight: 500; }
.ticker { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 24px; padding: 0; list-style: none; }
.feature-list li { background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; font-size: .95rem; }
.feature-list b { display: block; color: var(--ink); margin-bottom: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 14px !important; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

/* content */
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f5f8fc; }
tr:last-child td { border-bottom: 0; }
tr.hl td { background: var(--accent-soft); font-weight: 600; }
.note { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 18px 0; font-size: .95rem; }
.faq h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.card b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: .92rem; }
.card i { font-style: normal; font-size: 1.5rem; display: block; margin-bottom: 6px; }
.author { display: flex; gap: 14px; align-items: center; margin: 28px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; font-size: .92rem; color: var(--muted); }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author b { color: var(--ink); }
.sources { font-size: .9rem; color: var(--muted); }
.home-hero { padding: 36px 0 8px; }
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.year-grid a { text-align: center; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 0; color: var(--ink); font-weight: 600; }
.year-grid a:hover { border-color: var(--accent); color: var(--accent); }
@media print { .site-head, .site-foot, .no-print { display: none !important; } body { background: #fff; } }

/* ---------- WordPress ---------- */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { position: static; } }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.brand .custom-logo { height: 44px; width: auto; display: block; }
.entry-meta { color: var(--faint); font-size: .92rem; margin: -6px 0 18px; }
.entry-thumb img { border-radius: var(--radius); margin: 8px 0 22px; }
.prose img { border-radius: 12px; }
.prose figure { margin: 1.4em 0; }
.prose figcaption, .wp-element-caption { font-size: .88rem; color: var(--faint); margin-top: 6px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose pre { background: #f5f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; }
.prose .wp-block-table table { border: 1px solid var(--line); border-radius: 12px; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.post-card img { border-radius: 12px; margin-bottom: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 18px 0; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.comments-area { margin-top: 40px; }
.iac-tool { display: block; }

/* ---------- Languages ---------- */
.head-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; cursor: pointer; font-size: .9rem; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.lang-switch li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: var(--accent-soft); }
.foot-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.foot-legal a { color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--accent); }
.foot-langs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) { .head-right { width: 100%; } .head-right .nav { flex: 1; min-width: 0; } }
.foot-grid > * { min-width: 0; }
.foot-grid a { overflow-wrap: anywhere; }
/* Scripts without the Latin serif: use the system font for headings */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ru) .brand { font-family: var(--sans); }
:lang(ur) body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", var(--sans); line-height: 2; }
:lang(ur) .result .big, :lang(ur) h1 { line-height: 1.6; }
/* Right-to-left (Arabic, Urdu) */
[dir="rtl"] .note { border-left: 0; border-right: 4px solid var(--teal); border-radius: 12px 0 0 12px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .kv b { text-align: left; }
[dir="rtl"] .steps li { padding-left: 0; padding-right: 44px; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .alignleft { float: right; margin: 0 0 1em 1.2em; }
[dir="rtl"] .alignright { float: left; margin: 0 1.2em 1em 0; }
[dir="rtl"] .card:hover { transform: translateY(-2px); }
[dir="rtl"] input[type="date"], [dir="rtl"] input[type="time"], [dir="rtl"] .ticker, [dir="rtl"] code { direction: ltr; text-align: right; }
/* ---------- Definition box and article cards ---------- */
.formula { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; margin: 16px 0; font-weight: 600; }
.formula small { display: block; font-weight: 400; color: var(--muted); margin-top: 6px; }
.home-def { margin-top: 28px; }
.home-articles { margin-top: 36px; }
.home-articles .lead { margin-top: 0; }
.prose code { overflow-wrap: anywhere; }
[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
/* ---------- Featured image slot ---------- */
.iac-feature { margin: 0 0 24px; border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--accent-soft); }
.iac-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iac-feature--ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: #fff; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #1565e0 0%, #0f4bb0 55%, #12804f 100%); }
.iac-feature--ph .ph-icon { font-size: clamp(44px, 9vw, 84px); line-height: 1; }
.iac-feature--ph .ph-title { font-family: var(--serif); font-size: clamp(18px, 3vw, 28px); font-weight: 700; max-width: 85%; line-height: 1.25; }
.iac-credit { font-size: .78rem; color: var(--muted); margin: -18px 0 20px; text-align: right; }
.iac-credit a { color: inherit; }
.iac-feature-hint { font-size: .85rem; color: var(--muted); margin: -14px 0 20px; }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Blog */
.blog-chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-card-meta { display: block; font-size: .8rem; color: var(--faint); margin-bottom: 4px; }
.post-cards .post-card b { line-height: 1.3; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] { width: 100%; max-width: 100%; box-sizing: border-box; }
.prose > table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- Premium blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 22px 0; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.post-card .post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card b { font-size: 1.18rem; line-height: 1.3; margin: 0; }
.post-card .post-card-meta { margin-top: auto; padding-top: 6px; color: var(--faint); font-size: .8rem; }
.post-card-cat { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-card-visual { aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); }
.post-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; margin: 0; transition: transform .4s; }
.post-card:hover .post-card-visual img { transform: scale(1.04); }
.post-visual--ph { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #fff; text-align: center; background: radial-gradient(circle at 18% 12%, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 85% 90%, rgba(255,255,255,.12), transparent 40%), linear-gradient(135deg, var(--c1, #1565e0), var(--c2, #12804f)); }
.post-card-visual.post-visual--ph .ph-icon { font-size: clamp(40px, 6vw, 56px); filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
@media (min-width: 760px) {
  .post-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .post-card--featured .post-card-visual { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
  .post-card--featured .post-card-body { flex: 1; padding: 28px 30px; justify-content: center; }
  .post-card--featured b { font-size: 1.75rem; }
  .post-card--featured span { font-size: 1rem; }
}
.cat-badge { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--c1, var(--accent)); font-weight: 600; font-size: .9rem; }
.post-page .post-head { margin: 10px 0 22px; }
.post-cat { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c1, var(--accent)); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; }
.post-head h1 { font-size: clamp(2rem, 5.4vw, 3rem); margin: .35em 0 .3em; }
.post-head .lead { margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--faint); line-height: 1.45; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); }
.post-visual { margin: 0 0 8px; border-radius: 20px; overflow: hidden; aspect-ratio: 1200 / 630; box-shadow: var(--shadow); }
.post-visual img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.post-visual.post-visual--ph .ph-icon { font-size: clamp(48px, 10vw, 88px); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.2)); }
.post-visual .ph-title { font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 3vw, 28px); max-width: 82%; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.post-page .iac-credit { margin: 0 0 18px; }
.post-page .iac-feature-hint { margin: 0 0 18px; }
.post-page article.prose { margin-top: 26px; }
.toc { background: #f6f9fe; border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 0 0 28px; }
.toc summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.toc ol { margin: 10px 0 2px; padding-left: 1.3em; columns: 2 260px; column-gap: 28px; }
.toc li { margin: 0 0 .45em; break-inside: avoid; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-page .prose h2 { scroll-margin-top: 90px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: 4px; }
.share a, .share button { font: inherit; font-size: .88rem; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.related { margin-top: 36px; }
.post-page .prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.post-page .prose th, .post-page .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-page .prose thead th { background: #f6f9fe; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose ul.sources { font-size: .9rem; color: var(--muted); }
[dir="rtl"] .toc ol, [dir="rtl"] .prose ul { padding-right: 1.3em; padding-left: 0; }

/* ---------- Author and linking ---------- */
.byline-name { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline-name:hover { color: var(--accent); }
.author--full { align-items: flex-start; }
.author--full img { width: 72px; height: 72px; }
.author--full p { margin: 0 0 6px; }
.author--full .author-name { color: var(--ink); font-weight: 700; font-size: 1rem; }
.author--full .author-foot { font-size: .86rem; margin: 0; }
.author-hero { display: flex; gap: 28px; align-items: center; margin: 22px 0 10px; padding: 28px; background: linear-gradient(135deg, var(--accent-soft), #f2fbf6); border: 1px solid var(--line); border-radius: 24px; }
.author-hero img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); flex-shrink: 0; }
.author-hero h1 { margin: .1em 0 .3em; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.author-links a { font-size: .9rem; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); overflow-wrap: anywhere; }
.author-method { max-width: 760px; }
@media (max-width: 640px) { .author-hero { flex-direction: column; align-items: flex-start; padding: 20px; } .author-hero img { width: 104px; height: 104px; } }
.related-reading { background: #f6f9fe; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 12px 20px; margin: 28px 0; }
.related-reading p { margin: 0 0 4px; }
.related-reading ul { margin: 0; }
.from-blog { margin-top: 32px; }
