/* Hallmark v2.0.0 | custom: reference-led editorial schedule | signature: split monthly agenda */
/* critique: the dense source poster becomes a readable web schedule without losing its hierarchy */
:root {
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", sans-serif;
  --ink: #000000;
  --ink-strong: #000000;
  --signal: #af6446;
  --paper: #f2edde;
  --paper-alt: #f2edde;
  --canvas: #f2edde;
  --white: #f2edde;
  --line: #000000;
  --shade: rgba(0, 0, 0, 0.54);
  --shade-soft: rgba(0, 0, 0, 0.12);
  --focus: #000000;
  --brand-primary: #af6446;
  --brand-accent: #000000;
  --container: 2200px;
  --radius: 2px;
  --shadow: none;
  --card-shadow: none;
  --card-shadow-hover: none;
  --download-shadow: none;
  --card-radius: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a:active { opacity: .72; }
.schedule-skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-180%); }
.schedule-skip:focus { transform: translateY(0); }

.schedule-nav { min-height: 70px; padding: .65rem max(1.25rem, calc((100% - var(--container)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--white); border-bottom: 1px solid var(--line); }
.schedule-nav > a:last-child { font-size: .84rem; font-weight: 700; text-decoration: none; }
.schedule-nav__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; }
.schedule-nav__brand > span { white-space: nowrap; }
.schedule-nav__brand img { width: auto; height: 46px; object-fit: contain; }
.schedule-nav__mark { display: grid; place-items: center; min-width: 48px; min-height: 44px; padding: .2rem .45rem; background: var(--brand-primary); color: var(--ink); font-size: 1.3rem; }

.schedule-hero { position: relative; min-height: clamp(430px, 42vw, 680px); display: grid; place-items: start center; isolation: isolate; overflow: clip; }
.schedule-hero > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.schedule-hero__shade { position: absolute; inset: 0; z-index: -2; background: color-mix(in oklab, var(--ink) 52%, transparent); }
.schedule-hero__content { width: min(var(--container), calc(100% - 2.5rem)); min-width: 0; padding: clamp(1rem, 3vw, 2.5rem) 0; display: grid; justify-items: center; text-align: center; color: var(--white); }
.schedule-title-block { min-width: 0; overflow-wrap: break-word; text-shadow: 0 3px 18px var(--shade); }
.schedule-title-block h1 { margin: -.05em 0 0; font-family: var(--font-display); font-size: clamp(4.2rem, 9vw, 8.5rem); line-height: 1; text-wrap: balance; font-weight: 500; }
.schedule-title-block h1 small { display: block; font-size: .27em; line-height: 1.35; font-weight: 400; }
.schedule-title-block h1 b { display: block; font: inherit; }
.schedule-title-block p { margin: 1.3rem 0 0; color: var(--white); font-weight: 800; text-transform: uppercase; }

.schedule-board { position: relative; z-index: 1; width: fit-content; max-width: calc(100% - 2.5rem); margin: clamp(-26.5rem, -29vw, -13.5rem) auto 0; padding: 0; overflow: clip; background: var(--canvas); box-shadow: var(--shadow); }
.schedule-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); }
.schedule-actions > div { display: grid; gap: .15rem; }
.schedule-actions strong { color: var(--ink-strong); }
.schedule-actions span { color: var(--ink); font-size: .78rem; }
.schedule-actions__tools { display: flex; align-items: end; gap: .7rem; }
.schedule-month-select { display: grid; gap: .25rem; }
.schedule-month-select select { min-height: 44px; padding: .65rem 2.2rem .65rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink-strong); font: inherit; font-weight: 700; }
.schedule-month-select select:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.schedule-download { min-height: 44px; padding: .75rem 1rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; background: var(--signal); color: var(--ink); font-weight: 500; text-decoration: none; box-shadow: var(--download-shadow); transition: none; }
.schedule-download:hover { transform: translateY(-1px); }
.schedule-columns { display: grid; grid-template-columns: minmax(0, 1fr); width: fit-content; max-width: 100%; gap: 0; padding: 0; }
.schedule-board { container: schedule / inline-size; }
.schedule-table { display: grid; grid-template-columns: max-content max-content fit-content(28rem) fit-content(18rem) fit-content(45rem); justify-self: center; width: fit-content; max-width: 100%; min-width: 0; max-height: calc(100dvh - 96px); overflow-y: auto; overflow-x: clip; scrollbar-gutter: stable; overscroll-behavior: contain; gap: .72rem 0; padding: .8rem; background: var(--canvas); scrollbar-color: var(--ink) var(--paper-alt); }
.schedule-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; min-width: 0; overflow: clip; border-radius: var(--card-radius); background: var(--paper); box-shadow: var(--card-shadow); transition: transform 150ms ease, box-shadow 150ms ease; }
.schedule-row:nth-child(odd) { background: var(--paper-alt); }
.schedule-row:not(.schedule-row--head):hover { transform: none; box-shadow: none; }
.schedule-row > * { min-width: 0; padding: .88rem .8rem; overflow: hidden; border-right: 1px solid var(--line); font-size: clamp(.94rem, 1.07vw, 1.12rem); line-height: 1.42; text-overflow: ellipsis; white-space: nowrap; }
.schedule-row > *:last-child { border-right: 0; }
.schedule-row:not(.schedule-row--head) > *:first-child { color: var(--ink-strong); font-weight: 400; text-transform: none; }
.schedule-category { color: var(--signal); font-weight: 400; text-transform: none; }
.schedule-row--head { position: sticky; z-index: 3; top: 0; background: var(--ink-strong) !important; color: var(--paper); box-shadow: none; }
.schedule-row--head span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.05; text-align: center; }
.schedule-note { margin: 0 1.2rem; padding: 1.1rem 0; border-top: 3px solid var(--signal); color: var(--ink-strong); font-weight: 700; text-align: center; }
.schedule-empty { margin: 0 1.2rem; padding: 5rem 1rem; border: 1px solid var(--line); text-align: center; }
.schedule-empty strong { display: block; font-family: var(--font-display); font-size: 2rem; }
.schedule-empty p { margin: .6rem 0 0; }

.schedule-footer { margin-top: 0; padding: 1.4rem max(1.25rem, calc((100% - var(--container)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--ink-strong); color: var(--white); }
.schedule-footer > div { display: grid; gap: .2rem; }
.schedule-footer span, .schedule-footer a { font-size: .82rem; }
.schedule-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.schedule-footer a { text-decoration: none; }

@media (max-width: 1050px) {
  .schedule-hero { min-height: 430px; }
  .schedule-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .schedule-nav { min-height: 62px; }
  .schedule-nav__brand > span:last-child { display: none; }
  .schedule-nav__brand img { height: 38px; }
  .schedule-hero { min-height: 430px; }
  .schedule-hero__content { gap: 2rem; padding-bottom: 2.5rem; }
  .schedule-title-block h1 { font-size: clamp(3.2rem, 18vw, 5rem); line-height: .86; }
  .schedule-board { width: min(100% - 1rem, var(--container)); margin-top: -7rem; }
  .schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-actions__tools { align-items: stretch; flex-direction: column; }
  .schedule-month-select select { width: 100%; }
  .schedule-download { width: 100%; }
  .schedule-columns { padding: 0; gap: 0; }
  .schedule-table { display: block; max-height: none; overflow: visible; padding: .55rem; }
  .schedule-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; margin-bottom: .75rem; padding: .75rem; gap: .65rem; }
  .schedule-row--head { display: none; }
  .schedule-row > * { min-width: 0; padding: 0; overflow: visible; border: 0; font-size: 1rem; text-overflow: clip; white-space: normal; }
  .schedule-row > *::before { display: block; margin-bottom: .15rem; color: var(--ink); content: attr(data-label); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
  .schedule-row > *:nth-child(3), .schedule-row > *:nth-child(4), .schedule-row > *:nth-child(5) { grid-column: 1 / -1; }
  .schedule-note { margin-inline: .5rem; font-size: .82rem; }
  .schedule-footer { align-items: flex-start; flex-direction: column; }
}

/* Fit compact columns to their longest content; let speaker/topic use remaining space. */
.schedule-table { table-layout: auto; }
.schedule-table th:nth-child(1), .schedule-table td:nth-child(1),
.schedule-table th:nth-child(2), .schedule-table td:nth-child(2),
.schedule-table th:nth-child(4), .schedule-table td:nth-child(4) { width: 1%; white-space: nowrap; }
.schedule-table th:nth-child(3), .schedule-table td:nth-child(3) { width: 22%; }
.schedule-table th:nth-child(5), .schedule-table td:nth-child(5) { width: auto; }
@media (max-width: 680px) {
  .schedule-table th:nth-child(1), .schedule-table td:nth-child(1),
  .schedule-table th:nth-child(2), .schedule-table td:nth-child(2),
  .schedule-table th:nth-child(4), .schedule-table td:nth-child(4) { min-width: max-content; }
}

@media print {
  .schedule-nav { display: none; }
  .schedule-hero { min-height: 320px; }
  .schedule-board { width: 100%; margin-top: 0; box-shadow: none; }
  .schedule-footer { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .schedule-row, .schedule-download { transition: none; }
}

@container schedule (inline-size < 680px) {
  .schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-actions__tools { align-items: stretch; flex-direction: column; }
  .schedule-download { inline-size: 100%; }
}

/* MANNA · calibrated schedule type: headings lead, rows remain scan-friendly */
.schedule-title-block h1 { font-size: clamp(3.25rem, 6.5vw, 6.5rem); }
.schedule-title-block p { margin-top: 1rem; font-size: .875rem; font-weight: 400; }
.schedule-actions strong { font-size: 1rem; font-weight: 500; }
.schedule-actions span { font-size: .8125rem; }
.schedule-row > * { padding-block: .7rem; font-size: clamp(.875rem, .2vw + .82rem, 1rem); line-height: 1.35; }
.schedule-row--head span { font-size: 1.25rem; font-weight: 500; }
.schedule-note { font-size: .875rem; font-weight: 400; }
.schedule-footer span, .schedule-footer a { font-size: .875rem; }

@media (max-width: 680px) {
  .schedule-title-block h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .schedule-row > * { font-size: .9375rem; }
}

/* Keep the mosque photograph present but subordinate to the schedule content. */
.schedule-hero { min-height: clamp(320px, 34vw, 520px); }
.schedule-board { margin-top: clamp(-9rem, -12vw, -5rem); }

@media (max-width: 680px) {
  .schedule-hero { min-height: 340px; }
  .schedule-board { margin-top: -5rem; }
}

/* 3D agenda cards: keep the live agenda above the fold and the archive calm. */
:root {
  --card-surface: #fffdf7;
  --progress: #0c8b5d;
  --upcoming: #b76b35;
  --completed: #787267;
  --card-shadow: 0 12px 0 rgba(0, 0, 0, .08), 0 24px 42px rgba(0, 0, 0, .13);
  --card-shadow-hover: 0 16px 0 rgba(0, 0, 0, .08), 0 30px 52px rgba(0, 0, 0, .18);
  --card-radius: 22px;
}

.schedule-hero { min-height: 190px; place-items: center; }
.schedule-hero > img { object-position: center 46%; }
.schedule-hero__content { width: min(var(--container), calc(100% - 2.5rem)); padding: 1.35rem 0; display: flex; align-items: end; justify-content: space-between; text-align: left; }
.schedule-title-block h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .92; text-transform: none; }
.schedule-title-block__eyebrow { margin: 0 0 .35rem !important; font-size: .78rem !important; letter-spacing: .08em; text-transform: uppercase !important; }
.schedule-title-block p:last-child { margin: .45rem 0 0; font-size: .86rem; text-transform: none; }
.schedule-board { width: min(var(--container), calc(100% - 2.5rem)); max-width: none; margin: -26px auto 2rem; padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.schedule-actions { border: 1px solid rgba(0, 0, 0, .12); border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.schedule-columns { display: grid; width: 100%; gap: 2rem; padding: 1.5rem 0 0; }
.schedule-section { display: grid; gap: .85rem; }
.schedule-section + .schedule-section { margin-top: .6rem; }
.schedule-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.schedule-section__heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1; }
.schedule-section__heading p { margin: 0; color: var(--completed); font-size: .86rem; }
.schedule-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); width: 100%; max-height: none; overflow: visible; gap: 1rem; padding: .35rem 0 1rem; background: transparent; }
.schedule-card { min-height: 215px; padding: 1.2rem 1.25rem 1.15rem; display: flex; flex-direction: column; gap: .7rem; background: var(--card-surface); border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--card-radius); box-shadow: var(--card-shadow); transform: perspective(900px) translateY(0) rotateX(0deg); transition: transform 180ms ease, box-shadow 180ms ease; }
.schedule-card:hover, .schedule-card:focus-visible { box-shadow: var(--card-shadow-hover); transform: perspective(900px) translateY(-6px) rotateX(1deg); }
.schedule-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.schedule-card__meta, .schedule-card__details { display: flex; justify-content: space-between; gap: .7rem; font-size: .78rem; }
.schedule-card__meta { color: var(--ink-strong); font-weight: 700; }
.schedule-card__status { color: var(--progress); }
.schedule-card--upcoming { border-top: 5px solid var(--upcoming); }
.schedule-card--upcoming .schedule-card__status { color: var(--upcoming); }
.schedule-card--completed { border-top: 5px solid var(--completed); opacity: .82; }
.schedule-card--completed .schedule-card__status { color: var(--completed); }
.schedule-card__category { margin: .2rem 0 0; color: var(--signal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-card h3 { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.75rem); line-height: 1.05; text-wrap: balance; }
.schedule-card__details { margin-top: auto; padding-top: .75rem; border-top: 1px solid rgba(0, 0, 0, .12); color: var(--ink); }
.schedule-card__details span:last-child { text-align: right; }
.schedule-row:not(.schedule-row--head):hover { transform: translateY(-2px); }

@media (max-width: 680px) {
  .schedule-hero { min-height: 150px; }
  .schedule-hero__content { width: calc(100% - 2rem); padding: 1rem 0; }
  .schedule-title-block h1 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
  .schedule-title-block__eyebrow { font-size: .68rem !important; }
  .schedule-title-block p:last-child { font-size: .75rem; }
  .schedule-board { width: calc(100% - 1.2rem); margin-top: -18px; }
  .schedule-columns { padding-top: 1rem; }
  .schedule-section__heading { display: block; }
  .schedule-section__heading p { margin-top: .35rem; }
  .schedule-table { grid-template-columns: 1fr; }
  .schedule-card { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-card { transition: none; }
  .schedule-card:hover, .schedule-card:focus-visible { transform: none; }
}

/* Visitor schedule restored to the original readable table layout. */
.schedule-columns { display: block; width: 100%; padding: 1rem 0 0; }
.schedule-table-wrap { width: 100%; max-height: calc(100dvh - 120px); overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.schedule-table { width: 100%; min-width: 980px; max-height: none; display: table; table-layout: fixed; border-collapse: separate; border-spacing: 0; padding: 0; background: var(--paper); }
.schedule-table thead { position: sticky; inset-block-start: 0; z-index: 3; }
.schedule-table th, .schedule-table td { padding: .75rem .7rem; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); color: var(--ink); font-size: clamp(.82rem, .2vw + .78rem, 1rem); line-height: 1.35; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.schedule-table th { background: var(--ink-strong); color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-align: center; white-space: nowrap; }
.schedule-table th:nth-child(1) { width: 16%; }
.schedule-table th:nth-child(2) { width: 12%; }
.schedule-table th:nth-child(3) { width: 24%; }
.schedule-table th:nth-child(4) { width: 16%; }
.schedule-table th:nth-child(5) { width: 32%; }
.schedule-table tbody tr:nth-child(odd) { background: var(--paper-alt); }
.schedule-table tbody tr:hover { background: color-mix(in oklab, var(--signal) 8%, var(--paper)); }
.schedule-table tbody th { background: transparent; color: var(--ink-strong); font-family: var(--font-body); font-size: inherit; font-weight: 500; text-align: left; white-space: nowrap; }
.schedule-table td:nth-child(4) { color: var(--signal); font-weight: 600; }
.schedule-table td::before, .schedule-table th::before { content: none; }
.schedule-card { display: none !important; }

@media (max-width: 680px) {
  .schedule-table-wrap { max-height: calc(100dvh - 100px); margin-inline: 0; }
  .schedule-table { min-width: 760px; table-layout: auto; }
  .schedule-table th, .schedule-table td { padding: .62rem .5rem; font-size: .78rem; }
  .schedule-table th { font-size: .82rem; }
  .schedule-table th:nth-child(1) { min-width: 9.5rem; }
  .schedule-table th:nth-child(2) { min-width: 7rem; }
  .schedule-table th:nth-child(3) { min-width: 12rem; }
  .schedule-table th:nth-child(4) { min-width: 9rem; }
  .schedule-table th:nth-child(5) { min-width: 18rem; }
}
