/* Jaleh Saghafi theme — main styles. System fonts only (no web-font requests). */
:root {
	--navy: #13294b;
	--navy-2: #1d3a66;
	--teal: #0b6e75;
	--teal-light: #e3f1f1;
	--rose: #a8443a;
	--ink: #1c2430;
	--muted: #4f5a68;
	--line: #dde3ea;
	--bg: #ffffff;
	--bg-soft: #f5f3ef;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 6px 18px rgba(19, 41, 75, .07);
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2a541; outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.22; margin: 1.6em 0 .55em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.85rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--navy); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -3rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip-link:focus { top: .5rem; color: #fff; }
.nowrap { white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.content-wrap { max-width: var(--measure); padding: 1.5rem 0 3rem; }
.content-wide { max-width: 72rem; }
.site-main:focus { outline: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand-cred { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav li { margin: 0; position: relative; }
.site-nav a { display: block; padding: .55rem .7rem; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; border-radius: 6px; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--teal); background: var(--teal-light); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .4rem; position: absolute; left: 0; top: 100%; min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; font: inherit; font-size: .95rem; color: var(--navy); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 4.25rem); overflow-y: auto; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
	.site-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
	.site-nav .menu-item-has-children > a::after { display: none; }
}

/* Buttons */
.button, .entry-content .button { display: inline-block; background: var(--navy); color: #fff; padding: .78rem 1.3rem; border-radius: 8px; text-decoration: none; font-weight: 600; border: 2px solid var(--navy); font-size: 1rem; line-height: 1.2; cursor: pointer; }
.button:hover { background: var(--navy-2); color: #fff; }
.button-ghost { background: transparent; color: var(--navy); }
.button-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0 3rem; }
.eyebrow { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: .6rem; }
.eyebrow a { text-decoration: none; }
.hero h1 { margin: 0 0 .8rem; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-photo { justify-self: center; }
.hero-headshot { width: min(100%, 340px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 820px) {
	.hero-inner { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 0; text-align: left; }
	.hero-photo { grid-row: 1; justify-self: start; }
	.hero-headshot { width: 180px; }
}

/* Facts strip */
.facts { background: var(--navy); color: #fff; }
.fact-list { list-style: none; margin: 0; padding: 1.6rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fact-list li { margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.fact-num { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.fact-label { font-size: .9rem; color: #cfd9e8; line-height: 1.4; }
@media (max-width: 760px) { .fact-list { grid-template-columns: repeat(2, 1fr); } }

/* Content */
.entry-header { margin-bottom: 1.25rem; }
.entry-meta { color: var(--muted); font-size: .95rem; }
.entry-updated { color: var(--muted); font-size: .88rem; margin-top: 2rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { padding-top: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.entry-content blockquote { border-left: 4px solid var(--teal); margin-left: 0; padding: .3rem 0 .3rem 1.2rem; color: var(--muted); }
.entry-image { margin: 0 0 1.75rem; }
.entry-image img { border-radius: var(--radius); width: 100%; }
.about-photo { float: right; width: 220px; margin: .3rem 0 1rem 1.75rem; }
.about-photo img { border-radius: var(--radius); width: 220px; }
.about-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; line-height: 1.4; }
@media (max-width: 640px) { .about-photo { float: none; margin: 0 0 1.25rem; } }

/* Answer boxes and callouts */
.quick-answer { background: var(--teal-light); border-left: 5px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; margin: 0 0 1.75rem; }
.quick-answer .qa-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin: 0 0 .35rem; }
.quick-answer p:last-child { margin-bottom: 0; }
.key-points { background: var(--bg-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.1rem 2.4rem; }
.notice-box { background: #fdf6ec; border: 1px solid #f0dcc0; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; margin-top: 2rem; }
.notice-box p { margin: 0; }
.emergency { background: #fbeceb; border: 1px solid #efc6c2; border-left: 5px solid var(--rose); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.emergency p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--teal); border-radius: 4px; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); margin-left: .4rem; }
.timeline > li { position: relative; padding: 0 0 1.6rem 1.5rem; margin: 0; }
.timeline > li::before { content: ""; position: absolute; left: -.6rem; top: .45rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.timeline .when { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .45rem; }
.timeline ul { margin-bottom: 0; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.cred-grid li { margin: 0; background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.1rem; }
.cred-grid strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.faq-item { border-top: 1px solid var(--line); padding-top: .4rem; }
.faq-item h2 { font-size: 1.25rem; margin-top: 1rem; }

/* Cards */
.topics, .latest { padding: 3rem 0; }
.topics { background: var(--bg-soft); }
.topics h2, .latest h2 { margin-top: 0; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.card { margin: 0; }
.card a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card a:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.12rem; line-height: 1.3; }
.card-text { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.4rem; }
.post-grid-2 { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.post-card { margin: 0; }
.post-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.post-card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.25rem; }
.post-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.post-card-excerpt { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.post-card-meta { font-size: .84rem; color: var(--muted); }
.more-link { margin-top: 1.5rem; font-weight: 600; }
.archive-header { max-width: var(--measure); }
.archive-intro { color: var(--muted); font-size: 1.1rem; }
.nav-links { display: flex; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.nav-links .page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; color: #9aa5b3; }
.breadcrumbs a { color: var(--muted); }

/* Related + profile box */
.related { margin-top: 2.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.related h2 { margin-top: 0; font-size: 1.35rem; }
.related-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.related-list li { margin: 0; }
.related-list a { display: flex; flex-direction: column; padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.related-list a:hover { border-color: var(--teal); background: var(--teal-light); }
.related-title { font-weight: 700; color: var(--navy); }
.related-summary { color: var(--muted); font-size: .92rem; }
.profile-box { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: start; margin-top: 2.5rem; padding: 1.4rem; background: var(--bg-soft); border-radius: var(--radius); }
.profile-box-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.profile-box p { margin-bottom: .5rem; font-size: .96rem; }
.profile-box-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.profile-box-links { margin-bottom: 0 !important; }
@media (max-width: 520px) { .profile-box { grid-template-columns: 1fr; } }
.more-posts { margin-top: 3rem; }

/* Search form */
.search-form { margin: 1.5rem 0; max-width: 32rem; }
.search-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.search-row { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .7rem .85rem; font: inherit; border: 1px solid #b9c3cf; border-radius: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #d5deea; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-heading { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-location { display: flex; align-items: center; gap: .4rem; }
.social { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.social a:hover { background: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-legal li { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Sitemap */
.sitemap-list li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .related, .profile-box, .more-posts, .breadcrumbs, .hero-actions { display: none !important; }
	body { font-size: 12pt; }
	a { color: inherit; }
}
