/* «سماء اليوم» (/sky/) — Astrolabe & Folio. Tokens fall back to SPEC values until main.css defines them. */
.sky {
	color: var(--ink); padding-bottom: 64px; }
.sky .num, .sky time, .moon-cal { font-variant-numeric: tabular-nums; }
.sky h1, .sky h2, .sky h3 { font-family: var(--f-display); letter-spacing: 0; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.sky a:where(:not(.btn)) { color: var(--gold-hi); }
.sky a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }

/* head */
.sky-head { padding: 24px 0 16px; }
.sky-kicker { margin: 0 0 8px; font: 500 14px/22px var(--f-body); color: var(--ink-2); }
.sky-kicker span:first-child { color: var(--rubric); }
.sky-head h1 { font-size: 32px; line-height: 44px; font-weight: 700; margin: 0 0 12px; text-align: start; }
.sky-head h1 .num { color: var(--gold-hi); }
.sky-lede { margin: 0; max-width: 37.2em; font-size: 18px; line-height: 34px; color: var(--ink-2); }
.sky-lede strong, .sky-lede b { color: var(--ink); font-weight: 600; }
.sky .divider--ticks { height: 9px; margin: 8px 0 32px; border-top: 1px solid var(--rule);
	background: repeating-linear-gradient(to left, var(--rule) 0 1px, transparent 1px 8px) top / 100% 5px no-repeat,
		repeating-linear-gradient(to left, var(--rule-strong) 0 1px, transparent 1px 40px) top / 100% 9px no-repeat; }

/* moon instrument */
.sky-top { display: grid; gap: 32px; }
.sky-moon { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sky-moon__svg { width: min(280px, 78vw); height: auto; display: block; }
.sky-ring { fill: none; stroke: var(--rule-strong); stroke-width: .6; }
.sky-ring--in { stroke: var(--rule); }
.sky-tick { stroke: var(--rule-strong); stroke-width: .5; }
.sky-tick--major { stroke: var(--gold); stroke-width: .8; }
.moon-dark { fill: var(--night-3); }
.moon-lit { fill: var(--vellum); }
.moon-rim { fill: none; stroke: var(--gold); stroke-width: .8; }
.moon-maria circle { fill: var(--vellum-ink); opacity: .07; }
.sky-moon figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.sky-moon__name { font: 700 24px/36px var(--f-display); color: var(--ink); }
.sky-moon__pct { font: 600 44px/52px var(--f-body); color: var(--gold-hi); }
.sky-moon__meta { font: 500 14px/22px var(--f-body); color: var(--ink-2); }

/* facts */
.sky-facts h2, .sky-cal h2, .sky-notes h2, .sky-method h2 { font-size: 24px; line-height: 36px; font-weight: 700; margin: 0 0 4px; }
.sky-asof, .sky-sub { margin: 0 0 16px; font-size: 14px; line-height: 22px; color: var(--ink-3); }
.sky .almanac-table { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.sky .almanac-table > div { padding: 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.sky .almanac-table > div:not(.is-wide) { padding-inline-end: 12px; }
.sky .nowrap { white-space: nowrap; }
.sky .almanac-table > div.is-wide { grid-column: 1 / -1; }
.sky .almanac-table dt { font: 500 13px/20px var(--f-body); color: var(--ink-3); margin: 0 0 2px; }
.sky .almanac-table dd { margin: 0; font-size: 16px; line-height: 28px; color: var(--ink); }
.sky .almanac-table dd small { display: block; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.sky .almanac-table a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 28px; }
.sky .almanac-table a:hover { text-decoration: underline; }
.sky .glyph-sm { width: 18px; height: 18px; color: var(--gold); }
.sky-notice { margin: 16px 0 0; padding: 10px 14px; border-inline-start: 2px solid var(--rubric); background: var(--night-2); font-size: 15px; line-height: 26px; }

/* 30-day calendar */
.sky-cal { margin-top: 48px; }
.moon-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
	border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.moon-cal__d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 10px;
	border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); min-width: 0; }
.mc-wd { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.mc-day { font: 600 16px/22px var(--f-body); color: var(--ink); white-space: nowrap; }
.mc-day small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.mc-moon { width: 30px; height: 30px; display: block; }
.mc-ev { font-size: 12px; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.has-ev .mc-ev { color: var(--gold-hi); font-weight: 600; }
.moon-cal__d.is-today { background: var(--night-2); box-shadow: inset 0 -2px 0 var(--rubric); }
.moon-cal__d.is-today .mc-wd { color: var(--rubric); font-weight: 600; }

/* notes */
.sky-notes { margin-top: 48px; }
.sky .divider--khatam { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.sky .divider--khatam::before, .sky .divider--khatam::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.sky .divider--khatam svg { width: 20px; height: 20px; }
.sky .divider--khatam rect { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.sky-notes__grid { display: grid; gap: 24px; margin-top: 16px; }
.sky-note { border-top: 1px solid var(--rule); padding-top: 16px; }
.sky-note h3 { font-size: 19px; line-height: 30px; font-weight: 600; margin: 0 0 8px; }
.sky-note .rubric { color: var(--rubric); font-weight: 600; }
.sky-note p, .sky-sunline, .sky-method p { margin: 0 0 12px; font-size: 18px; line-height: 34px; color: var(--ink); max-width: 37.2em; }
.sky-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.sky-more:hover { text-decoration-color: currentColor; }
.sky-sunline { margin-top: 24px; color: var(--ink-2); }
.sky .note--symbolic { margin: 16px 0 0; padding: 8px 0; border-block: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--ink-3); }

/* method */
.sky-method { margin-top: 48px; padding: 24px 16px; background: var(--night-2); border: 1px solid var(--rule); border-radius: 14px; }
.sky-method p { font-size: 16px; line-height: 28px; color: var(--ink-2); }
.sky-method p:last-child { margin-bottom: 0; }

/* one-line strip (used on other pages via burj_sky_strip()) */
.sky-strip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2, #B9B6C8); text-decoration: none; font-size: 14px; line-height: 22px; }
.sky-strip b { font-weight: 600; color: var(--ink, #F2EDE3); font-variant-numeric: tabular-nums; }
.sky-strip__moon { flex: none; }

@media (min-width: 640px) {
	.moon-cal { grid-template-columns: repeat(10, minmax(0, 1fr)); }
	.sky-method { padding: 32px; }
}
@media (min-width: 960px) {
	.sky { padding-bottom: 96px; }
	.sky-head h1 { font-size: 44px; line-height: 60px; }
	.sky-top { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
	.sky-moon__svg { width: 360px; }
	.sky .almanac-table > div:not(.is-wide) { padding-inline-end: 16px; }
	.sky-facts h2, .sky-cal h2, .sky-notes h2, .sky-method h2 { font-size: 30px; line-height: 44px; }
	.sky-cal, .sky-notes, .sky-method { margin-top: 80px; }
	.moon-cal { grid-template-columns: repeat(15, minmax(0, 1fr)); }
	.sky-notes__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
	.sky-note p, .sky-sunline { font-size: 19px; line-height: 36px; }
	.sky-method { max-width: 760px; }
}

/* «المزيد من السماء» link row */
.sky-links { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--rule); }
.sky-links__h { margin: 0 0 4px; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.sky-links ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.sky-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; text-decoration: none; }
.sky-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sky-links .icon { color: var(--gold); }
@media (min-width: 960px) { .sky-links { margin-top: 48px; } }
