/* «الأنواء والمواسم» — /anwaa/ and /anwaa/{slug}/ — "Astrolabe & Folio" (SPEC.md). Loaded only on these pages. */
.anwaa {
	--t-winter: #8FB0E6; --t-spring: #C2B47A; --t-summer: #E58A6B; --t-autumn: #D9B45A;
	--season: var(--t-autumn);
	color: var(--ink); font-family: var(--f-body);
	padding-bottom: 48px;
}
.anwaa.anwaa-t--winter { --season: var(--t-winter); } .anwaa.anwaa-t--spring { --season: var(--t-spring); }
.anwaa.anwaa-t--summer { --season: var(--t-summer); } .anwaa.anwaa-t--autumn { --season: var(--t-autumn); }
.anwaa .num, .anwaa table, .anwaa dd { font-variant-numeric: tabular-nums; }
.anwaa a:where(:not(.btn)) { color: var(--gold-hi); text-underline-offset: 3px; }
.anwaa a:focus-visible, .anwaa summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.anwaa-muted { color: var(--ink-3); font-size: 14px; }

/* header */
.anwaa-head { padding: 16px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.anwaa-eyebrow { margin: 0 0 8px; color: var(--rubric); font: 500 14px/22px var(--f-body); }
.anwaa-head h1 { margin: 0 0 12px; font: 700 32px/44px var(--f-display); color: var(--ink); text-align: start; }
.anwaa-lede { margin: 0; max-width: 37.2em; color: var(--ink-2); font-size: 18px; line-height: 34px; }

/* «نحن الآن في» card */
.anwaa-now { background: var(--night-2); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 16px; margin-bottom: 48px; position: relative; }
.anwaa-now::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 16px; height: 2px; background: var(--season); border-radius: 2px; }
.anwaa-now__k { margin: 0; color: var(--rubric); font: 500 14px/22px var(--f-body); }
.anwaa-now__name { margin: 4px 0; font: 700 32px/44px var(--f-display); }
.anwaa-now__name a { color: var(--ink); text-decoration: none; }
.anwaa-now__name a:hover { color: var(--gold-hi); }
.anwaa-now--season .anwaa-now__name { font: 600 24px/36px var(--f-body); }
.anwaa-now__dates { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 22px; }
.anwaa-band { position: relative; height: 10px; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; margin: 12px 0 16px;
	background: repeating-linear-gradient(to left, transparent 0 calc(10% - 1px), var(--rule) calc(10% - 1px) 10%); }
.anwaa-band span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--gold); border-radius: 999px; }
.anwaa-now__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.anwaa-now__grid > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.anwaa-now__grid > div:nth-child(odd) { padding-inline-end: 12px; }
.anwaa-now__grid > div:nth-child(even) { padding-inline-start: 12px; border-inline-start: 1px solid var(--rule); }
.anwaa-now__grid dt { color: var(--ink-3); font-size: 13px; line-height: 20px; }
.anwaa-now__grid dd { margin: 2px 0 0; font-size: 16px; line-height: 26px; }
.anwaa-now__grid b { color: var(--gold-hi); font-weight: 600; font-size: 20px; }
.anwaa-now__sum { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; line-height: 28px; }

/* sections */
.anwaa-sec { margin-bottom: 48px; }
.anwaa h2 { position: relative; margin: 0 0 12px; padding-top: 16px; font: 700 24px/36px var(--f-display); color: var(--ink); }
.anwaa h2::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 6px;
	background: linear-gradient(var(--rule), var(--rule)) bottom / 100% 1px no-repeat,
		repeating-linear-gradient(to left, var(--rule-strong) 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat; }
.anwaa-note { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; line-height: 22px; }

/* year ring */
.anwaa-ringwrap { display: grid; gap: 24px; align-items: start; }
.anwaa-ring { width: 100%; max-width: 360px; height: auto; margin-inline: auto; display: block; overflow: visible; }
.anwaa-ring__rim { fill: none; stroke: var(--rule); stroke-width: 1; }
.anwaa-ring__tick { stroke: var(--rule-strong); stroke-width: 1; }
.anwaa-ring__month { fill: var(--ink-2); font: 500 15px var(--f-body); }
.anwaa-ring__arc { fill: none; stroke-width: 34; opacity: .72; transition: opacity .15s; }
.anwaa-ring a:hover .anwaa-ring__arc, .anwaa-ring a:focus .anwaa-ring__arc, .anwaa-ring__arc.is-now { opacity: 1; }
.anwaa-ring__arc.is-now { stroke-width: 42; }
.anwaa-ring a:focus { outline: none; }
.anwaa-ring a:focus-visible .anwaa-ring__arc { stroke-width: 40; }
.anwaa-ring__num { fill: #0B0F24; font: 600 13px var(--f-body); font-variant-numeric: tabular-nums; pointer-events: none; }
.anwaa-ring__today { stroke: var(--rubric); stroke-width: 2.5; stroke-linecap: round; }
.anwaa-ring__dot { fill: var(--rubric); }
.anwaa-ring__ck { fill: var(--rubric); font: 500 14px var(--f-body); }
.anwaa-ring__cn { fill: var(--ink); font: 700 26px var(--f-display); }
.anwaa-ring__cd { fill: var(--gold-hi); font: 600 16px var(--f-body); font-variant-numeric: tabular-nums; }
.anwaa-t--winter.anwaa-ring__arc { stroke: var(--t-winter); } .anwaa-t--spring.anwaa-ring__arc { stroke: var(--t-spring); }
.anwaa-t--summer.anwaa-ring__arc { stroke: var(--t-summer); } .anwaa-t--autumn.anwaa-ring__arc { stroke: var(--t-autumn); }
.anwaa-sw, .anwaa-legend__n { background: var(--t-autumn); }
.anwaa-sw.anwaa-t--winter, .anwaa-legend__n.anwaa-t--winter { background: var(--t-winter); }
.anwaa-sw.anwaa-t--spring, .anwaa-legend__n.anwaa-t--spring { background: var(--t-spring); }
.anwaa-sw.anwaa-t--summer, .anwaa-legend__n.anwaa-t--summer { background: var(--t-summer); }
.anwaa-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.anwaa-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

.anwaa-legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.anwaa-legend li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--rule); padding: 4px 0; }
.anwaa-legend li a { font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 0; }
.anwaa-legend li a:hover { color: var(--gold-hi); }
.anwaa-legend li.is-now a, .anwaa-legend li.is-cur a { color: var(--gold-hi); }
.anwaa-legend__n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; color: #0B0F24; font: 600 13px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.anwaa-legend__d { margin-inline-start: auto; color: var(--ink-3); font-size: 14px; }
.anwaa-pill { display: inline-block; padding: 0 8px; border: 1px solid var(--rubric); border-radius: 999px; color: var(--rubric); font-size: 13px; line-height: 20px; font-weight: 500; }

/* tables */
.anwaa-tablewrap { margin: 0 0 16px; }
.anwaa-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.anwaa-table caption { text-align: start; padding-bottom: 8px; color: var(--ink-2); font-size: 14px; }
.anwaa-table th, .anwaa-table td { text-align: start; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.anwaa-table thead th { color: var(--gold-hi); font-weight: 600; font-size: 14px; border-bottom-color: var(--rule-strong); }
.anwaa-table tbody th { font-weight: 600; white-space: nowrap; }
.anwaa-table tbody th a { color: var(--ink); }
.anwaa-table tr.is-now { background: var(--night-3); }
.anwaa-table td:last-child { color: var(--ink-2); }
.anwaa-table td.num { white-space: nowrap; }
@media (max-width: 759px) { /* stacked rows on phones */
	.anwaa-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.anwaa-table, .anwaa-table tbody, .anwaa-table tr, .anwaa-table th, .anwaa-table td { display: block; }
	.anwaa-table caption { display: block; }
	.anwaa-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.anwaa-table tr.is-now { padding-inline: 12px; border-radius: 10px; }
	.anwaa-table th, .anwaa-table td { border: 0; padding: 2px 0; }
	.anwaa-table tbody th { font-size: 18px; line-height: 30px; padding-bottom: 4px; }
	.anwaa-table td { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
	.anwaa-table td::before { content: attr(data-l); color: var(--ink-3); font-size: 13px; }
	.anwaa-table:not(.anwaa-table--stars) td[data-l="النجوم"] { display: none; }
	.anwaa-table--stars td { display: inline-grid; grid-template-columns: auto auto; margin-inline-end: 16px; }
}

/* prose */
.anwaa-prose p, .anwaa-main > p { max-width: 37.2em; font-size: 18px; line-height: 34px; color: var(--ink); margin: 0 0 16px; }
.anwaa-main h2 { margin-top: 40px; }
.anwaa-years { display: grid; gap: 4px; font-size: 14px !important; line-height: 22px !important; color: var(--ink-3) !important; }
.anwaa-stars { margin: 8px 0 16px; border-top: 1px solid var(--rule); max-width: 37.2em; }
.anwaa-stars > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.anwaa-stars dt { font: 600 19px/30px var(--f-display); color: var(--gold-hi); }
.anwaa-stars dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 28px; }
.anwaa-proverb { margin: 24px 0; padding: 4px 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); max-width: 37.2em; }
.anwaa-proverb blockquote { margin: 0; }
.anwaa-proverb blockquote p { margin: 0 0 4px; font: 600 22px/34px var(--f-display); color: var(--ink); }
.anwaa-proverb figcaption { color: var(--ink-2); font-size: 14px; line-height: 22px; }
.anwaa-list { list-style: none; margin: 0 0 16px; padding: 0; max-width: 37.2em; }
.anwaa-list li { position: relative; padding: 10px 0; padding-inline-start: 24px; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 30px; }
.anwaa-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 22px; width: 7px; height: 7px; background: var(--season); transform: rotate(45deg); }

/* FAQ + sources */
.anwaa-faq { border-top: 1px solid var(--rule); max-width: 680px; }
.anwaa-faq details, .anwaa-sources { border-bottom: 1px solid var(--rule); }
.anwaa-faq summary, .anwaa-sources summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 0; font: 600 17px/28px var(--f-body); color: var(--ink); }
.anwaa-faq summary::-webkit-details-marker, .anwaa-sources summary::-webkit-details-marker { display: none; }
.anwaa-faq summary::after, .anwaa-sources summary::after { content: "+"; flex: none; color: var(--gold); font-size: 22px; line-height: 1; }
.anwaa-faq details[open] summary::after, .anwaa-sources[open] summary::after { content: "−"; }
.anwaa-faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; line-height: 28px; }
.anwaa-sources { border-top: 1px solid var(--rule); max-width: 680px; }
.anwaa-sources ul { margin: 0 0 16px; padding-inline-start: 20px; }
.anwaa-sources li { font-size: 14px; line-height: 22px; padding: 4px 0; }

/* season page sidebar */
.anwaa-cols { display: grid; gap: 48px; }
.anwaa-side { align-self: start; }
.anwaa-pn { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--rule); margin-bottom: 16px; }
.anwaa-pn__a { display: grid; gap: 2px; padding: 12px 0; min-height: 44px; text-decoration: none; }
.anwaa-pn__a + .anwaa-pn__a { border-inline-start: 1px solid var(--rule); padding-inline-start: 12px; text-align: end; }
.anwaa-pn__a b { color: var(--ink); font: 700 20px/30px var(--f-display); }
.anwaa-pn__a:hover b { color: var(--gold-hi); }
.anwaa-side__now { color: var(--ink-2); font-size: 15px; line-height: 24px; margin: 0 0 16px; }
.anwaa-side__h { margin: 24px 0 4px; color: var(--rubric); font-size: 14px; font-weight: 500; }
.anwaa-legend--side li { min-height: 44px; }
.anwaa-legend--side li.is-cur { box-shadow: inset -2px 0 0 var(--gold); padding-inline-start: 10px; }
.anwaa-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* larger screens */
@media (min-width: 640px) {
	.anwaa-now { padding: 24px; }
	.anwaa-now__grid { grid-template-columns: repeat(3, 1fr); }
	.anwaa-now__grid > div, .anwaa-now__grid > div:nth-child(odd), .anwaa-now__grid > div:nth-child(even) { padding: 12px; border-inline-start: 1px solid var(--rule); }
	.anwaa-now__grid > div:nth-child(3n+1) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (min-width: 960px) {
	.anwaa { padding-bottom: 80px; }
	.anwaa-head h1 { font-size: 44px; line-height: 60px; }
	.anwaa h2 { font-size: 30px; line-height: 44px; }
	.anwaa-sec { margin-bottom: 80px; }
	.anwaa-now { margin-bottom: 80px; }
	.anwaa-now__name { font-size: 44px; line-height: 60px; }
	.anwaa-now--season .anwaa-now__name { font-size: 28px; line-height: 40px; }
	.anwaa-now__grid { grid-template-columns: repeat(5, 1fr); }
	.anwaa-now__grid > div:nth-child(3n+1) { border-inline-start: 1px solid var(--rule); padding-inline-start: 12px; }
	.anwaa-now__grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
	.anwaa-now--season .anwaa-now__grid { grid-template-columns: repeat(4, 1fr); }
	.anwaa-ringwrap { grid-template-columns: 440px 1fr; gap: 48px; }
	.anwaa-ring { max-width: 440px; }
	.anwaa-legend:not(.anwaa-legend--side) { columns: 2; column-gap: 32px; border-top: 0; }
	.anwaa-legend:not(.anwaa-legend--side) li { break-inside: avoid; }
	.anwaa-prose p, .anwaa-main > p { font-size: 19px; line-height: 36px; }
	.anwaa-cols { grid-template-columns: minmax(0, 680px) 320px; justify-content: space-between; }
	.anwaa-side { position: sticky; top: 88px; }
}
@media (prefers-reduced-motion: reduce) { .anwaa * { transition: none !important; } }
