/* aljabbarmosque.com — design tokens + components */
:root {
  --paper: #fbf8f1;
  --paper-2: #f4eee1;
  --card: #ffffff;
  --ink: #1b2622;
  --ink-2: #3c4a45;
  --muted: #66746e;
  --line: #e5dccb;
  --emerald: #0f5a4b;
  --emerald-2: #0b4539;
  --emerald-3: #072e26;
  --gold: #a87b22;
  --gold-2: #d9b25f;
  --gold-soft: #f3e6c6;
  --focus: #d9b25f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 38, 34, .06), 0 8px 24px -12px rgba(27, 38, 34, .18);
  --wrap: 1180px;
  --read: 720px;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-arab: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; font-optical-sizing: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--emerald); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.eyebrow { font: 600 12px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--emerald-3); color: #cfe0da; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 38px; }
.topbar a { color: #e9d7a8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font: 600 21px/1.05 var(--f-display); display: block; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav-toggle { display: none; }
#site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
#site-nav a, .nav-group summary { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; }
#site-nav a:hover, .nav-group summary:hover, #site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--emerald); }
.nav-group { position: relative; }
.nav-group summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.nav-group[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-group ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-search { display: inline-flex !important; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0 !important; border: 1px solid var(--line); border-radius: 50% !important; margin-left: 6px; }
.nav-search svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; color: var(--ink); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  #site-nav { display: none; position: fixed; inset: 64px 0 0 0; background: var(--paper); overflow-y: auto; padding: 12px 20px 40px; border-top: 1px solid var(--line); }
  #site-nav.open { display: block; }
  #site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  #site-nav > ul > li { border-bottom: 1px solid var(--line); }
  #site-nav a, .nav-group summary { padding: 14px 4px; font-size: 17px; border-radius: 0; }
  #site-nav a:hover, .nav-group summary:hover { background: none; }
  .nav-group ul { position: static; box-shadow: none; border: 0; padding: 0 0 10px 12px; min-width: 0; background: none; }
  .nav-group ul a { padding: 10px 4px; font-size: 16px; }
  .nav-search { width: auto; height: auto; border: 0; border-radius: 0 !important; margin: 0; justify-content: flex-start; padding: 14px 4px !important; gap: 10px; }
  .nav-search .sr-only { position: static; width: auto; height: auto; clip: auto; }
  body.nav-open { overflow: hidden; }
  .topbar-links { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--emerald-3); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 46, 38, .94) 0%, rgba(7, 46, 38, .78) 42%, rgba(7, 46, 38, .25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 130px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 64px); max-width: none; margin-bottom: 18px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p.lede { font-size: clamp(17px, 1.6vw, 19px); color: #d7e6e0; max-width: 52ch; margin: 0 0 28px; }
.hero .eyebrow { color: var(--gold-2); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold-2); color: var(--emerald-3); }
.btn-gold:hover { background: #e7c67e; color: var(--emerald-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-line { border-color: var(--line); color: var(--emerald); background: var(--card); }
.btn-line:hover { border-color: var(--emerald); color: var(--emerald); }

/* prayer strip */
.prayer { position: relative; z-index: 2; margin-top: -78px; }
.prayer-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.prayer-head h2 { font-size: 20px; margin: 0 0 2px; }
.prayer-head p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.prayer-head p strong { color: var(--emerald); }
.prayer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.prayer-list li { text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--paper); border: 1px solid transparent; }
.prayer-list span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prayer-list b { display: block; font: 600 22px/1.2 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.prayer-list li.is-next { background: var(--emerald); }
.prayer-list li.is-next span { color: var(--gold-2); }
.prayer-list li.is-next b { color: #fff; }
.prayer-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.prayer-foot a { font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .prayer-card { grid-template-columns: 1fr; }
  .prayer-list { grid-template-columns: repeat(3, 1fr); }
  .prayer-foot { flex-direction: column; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.section-head a::after { content: " →"; }
.rule { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 10px; }
.rule svg { width: 16px; height: 16px; }

/* quick links */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--gold-2); transform: translateY(-2px); color: var(--ink); }
.quick svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 12px; }
.quick strong { display: block; font: 600 19px/1.3 var(--f-display); margin-bottom: 4px; }
.quick span { font-size: 14.5px; color: var(--muted); line-height: 1.55; display: block; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quick { gap: 10px; } .quick a { padding: 16px; } .quick svg { width: 24px; height: 24px; margin-bottom: 8px; } .quick strong { font-size: 16.5px; } .quick span { font-size: 13.5px; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid-4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--paper-2); margin-bottom: 14px; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--emerald); }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* placeholder art for posts without a photo */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(circle at 30% 20%, rgba(217, 178, 95, .25), transparent 55%),
  linear-gradient(135deg, var(--emerald-2), var(--emerald-3)); color: var(--gold-2); }
.ph svg { width: 34%; max-width: 120px; opacity: .55; }
.ph span { position: absolute; left: 14px; bottom: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #e9d7a8; }
.img-missing img { display: none; }

/* lead story */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; }
.lead-main .card-media { aspect-ratio: 16 / 9; }
.lead-main h3 { font-size: clamp(24px, 2.6vw, 32px); }
.lead-main p { -webkit-line-clamp: 4; font-size: 16.5px; }
.lead-list { display: flex; flex-direction: column; gap: 0; }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini:first-child { padding-top: 0; }
.mini .card-media { aspect-ratio: 1 / 1; margin: 0; border-radius: 10px; }
.mini h3 { font-size: 16.5px; margin: 0 0 4px; line-height: 1.3; }
.mini h3 a { color: var(--ink); text-decoration: none; }
.mini h3 a:hover { color: var(--emerald); }
.mini .meta { margin: 0; font-size: 12.5px; }
.mini .ph span { display: none; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } }

/* visit block */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.visit-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; }
.facts svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.facts strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- page header / breadcrumbs ---------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 300px at 85% -10%, rgba(217, 178, 95, .16), transparent 60%), var(--paper); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 10px; }
.page-head p { color: var(--ink-2); max-width: 64ch; margin: 0; font-size: 17.5px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--emerald); }

/* ---------- article ---------- */
.article-head { padding: 40px 0 8px; }
.article-head .wrap, .article-body, .article-foot { max-width: calc(var(--read) + 40px); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.byline span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-img { max-width: 980px; margin: 26px auto 8px; padding: 0 20px; }
.hero-img img { width: 100%; border-radius: var(--radius); }
.article-body { margin: 0 auto; padding: 24px 20px 8px; }
.prose { font-size: 18px; line-height: 1.8; color: #24302c; overflow-wrap: break-word; }
.prose > * { margin: 0 0 1.15em; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose a { color: var(--emerald); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: 10px; margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-2); font-family: var(--f-display); font-size: 20px; font-style: italic; color: var(--ink-2); }
.prose .ar, .ar { font-family: var(--f-arab); font-size: 1.55em; line-height: 2.1; text-align: right; color: var(--emerald-2); background: linear-gradient(90deg, transparent, var(--gold-soft)); padding: .45em .8em; border-radius: 10px; }
.prose .ar strong, .ar strong { font-weight: 400; }
.prose li.ar { background: none; padding: 0; }
.prose strong:lang(ar), .prose [lang="ar"] { font-family: var(--f-arab); }
.prose .has-text-align-center, .prose .aligncenter { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose .readmore { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 18px; font-size: 16px; line-height: 1.5; }
.prose .readmore span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.prose .readmore a { font-weight: 600; text-decoration: none; color: var(--ink); }
.prose .readmore a:hover { color: var(--emerald); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt iframe, .yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { padding: 0; cursor: pointer; background: #000; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; border-radius: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: #d42a2a; border-radius: 14px; transition: transform .15s; }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-btn:hover .yt-play { transform: scale(1.08); }
.article-foot { margin: 0 auto; padding: 8px 20px 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.tags a, .chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); background: var(--card); }
.tags a:hover { border-color: var(--emerald); color: var(--emerald); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share a { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper-2); text-decoration: none; color: var(--ink-2); }
.share a:hover { background: var(--emerald); color: #fff; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.pn a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--card); line-height: 1.45; font-weight: 600; }
.pn a span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.pn a:hover { border-color: var(--emerald); }
.pn .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } .pn .next { grid-column: auto; text-align: left; } }

/* ---------- archive ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subnav a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; text-decoration: none; color: var(--ink-2); }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.pager a:hover { border-color: var(--emerald); color: var(--emerald); }
.pager [aria-current="page"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 20px; padding: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- static pages ---------- */
.page-body { max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 36px 20px 64px; }
.notice { background: var(--gold-soft); border: 1px solid #ead7a6; border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.6; color: #4f3f17; }
.notice a { color: #6b4f12; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.contact-list a { font-weight: 600; text-decoration: none; }
.pt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose .pt, .pt { display: table; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; min-width: 620px; }
.pt th, .pt td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.pt thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); position: sticky; top: 0; }
.pt tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.pt tr.is-today { background: var(--gold-soft); }
.pt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pt-bar h2 { margin: 0; font-size: 24px; }
.pt-bar button { font: 600 14px var(--f-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink-2); }
.pt-bar button:hover { border-color: var(--emerald); color: var(--emerald); }

/* search */
.search-box { display: flex; gap: 8px; max-width: 640px; margin-top: 18px; }
.search-box input { flex: 1; min-width: 0; font: 400 17px var(--f-body); padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.search-box input:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.search-box button { font: 600 15px var(--f-body); padding: 0 20px; border-radius: 12px; border: 0; background: var(--emerald); color: #fff; cursor: pointer; }
.search-count { color: var(--muted); font-size: 14px; }
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result h2 { font-size: 21px; margin: 0 0 6px; }
.result h2 a { text-decoration: none; color: var(--ink); }
.result p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.result .eyebrow { margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--emerald-3); color: #bcd0c9; font-size: 15px; margin-top: 0; }
.site-footer a { color: #e5ecea; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.foot-grid h2 { font: 600 13px/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand .brand-sub { color: #9db8ae; }
.foot-brand p { margin: 0 0 12px; line-height: 1.65; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 13.5px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #93ada4; }
.disclaimer { font-size: 13px; color: #93ada4; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .site-footer, .share, .pn, .related { display: none !important; } body { background: #fff; } }

.prayer-card.stack { grid-template-columns: 1fr; }
.prayer-card.stack .prayer-list { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 640px) { .prayer-card.stack .prayer-list { grid-template-columns: repeat(3, 1fr); } }
.prose .prayer-list li { margin: 0; }
.prose .prayer-head h2 { margin: 0 0 2px; font-size: 20px; }
