/*
Theme Name: Order of Ruth
Description: Purple-and-gold WordPress theme and starter pages for the Order of Ruth.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: order-of-ruth
*/
:root{--plum:#30123e;--deep:#1b1024;--gold:#edcc85;--paper:#faf7f2;--ink:#24182a;--line:#e7d8c7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:1.0625rem/1.65 system-ui,sans-serif}h1,h2,h3,.hero-line,.brand span{font-family:Georgia,serif;line-height:1.13}h1{font-size:clamp(3.5rem,8vw,7.5rem);margin:.12em 0;color:#fff8eb;font-weight:500;letter-spacing:-.055em}h2{font-size:clamp(2.3rem,4.8vw,4rem);margin:.1em 0 .35em;font-weight:500;letter-spacing:-.033em}h3{font-size:clamp(1.55rem,3vw,2.15rem);margin:1.6em 0 .45em;color:var(--plum)}a{color:#541864;text-underline-offset:.22em}a:hover{text-decoration-thickness:.15em}:focus-visible{outline:3px solid #ae607b;outline-offset:5px}.wrap{width:min(1180px,calc(100% - 3rem));margin-inline:auto}.bar{display:flex;justify-content:space-between;gap:1.25rem;align-items:center;padding-block:1rem}header,footer{color:#fff5e6;background:var(--deep)}header{border-bottom:1px solid #765a62}header a,footer a{color:inherit}.brand{text-decoration:none;display:grid;line-height:1.3}.brand span{font-size:1.6rem;color:var(--gold)}.brand small{font-size:.86rem}nav{display:flex;flex-wrap:wrap;column-gap:1.5rem;row-gap:.55rem}nav a{font-size:.94rem;text-decoration:none}nav a:hover{text-decoration:underline}.hero{background:radial-gradient(ellipse at 70% 30%,#4a2059,var(--deep) 78%);color:#f6e9f7;padding:clamp(3rem,7vw,7rem) 0}.hero-grid{display:grid;grid-template-columns:1.04fr 1fr;align-items:center;gap:clamp(1.5rem,4vw,4rem)}.eyebrow{margin:0 0 .7rem;font-size:.88rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:#63336e}.hero .eyebrow{color:var(--gold)}.hero-line{font-size:clamp(1.6rem,3vw,2.85rem);margin:.25rem 0 1rem;color:var(--gold)}.hero p:not(.eyebrow):not(.hero-line){max-width:42ch}.crest{width:100%;display:block;border:1px solid #927358;border-radius:.65rem;box-shadow:0 20px 65px #100913a0}.actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.65rem}.button{display:inline-block;padding:.65rem 1.05rem;background:var(--gold);color:var(--deep);border:1px solid var(--gold);font-weight:700;text-decoration:none;border-radius:.25rem}.button.secondary{background:transparent;color:var(--gold)}.button:hover{text-decoration:underline}.motto{text-align:center;background:#edd9ae;padding:.8rem;font:700 clamp(.87rem,2.5vw,1.15rem) Georgia,serif;letter-spacing:.07em}.motto span{color:#6b1e36;font-size:.64em;margin:0 .6em}.service,.pathways{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.25rem,5vw,5rem);align-items:center;padding-block:clamp(3rem,7vw,6rem)}figure{margin:0}figure img{width:100%;height:auto;display:block;border-radius:.45rem}figcaption,.sources{font-size:.88rem}figcaption{margin-top:.4rem}.history{background:#f1e9f1;padding:clamp(3rem,7vw,6rem) 0}.history h2{max-width:23ch}.timeline{display:grid;grid-template-columns:repeat(4,1fr);margin:2rem 0;background:var(--plum);padding:1rem;border-radius:.45rem}.timeline a{color:#fff5ef;padding:.5rem 1rem;font-size:.94rem}.timeline strong{display:block;color:var(--gold);font:1.65rem Georgia,serif;margin-bottom:.3rem}article{max-width:75ch}article p{margin:.65em 0 1em}.pathways{align-items:start}.pathways>div{border-top:2px solid #a88444;padding-top:1.15rem}details{margin:1rem 0}summary{cursor:pointer;font-weight:650}footer p{margin:0}.skip{position:absolute;top:-5rem;left:1rem;padding:.5rem 1rem;background:white;z-index:1}.skip:focus{top:.5rem}[id]{scroll-margin-top:1rem}@media(max-width:735px){.hero-grid,.service,.pathways{grid-template-columns:1fr}.bar{align-items:flex-start;flex-direction:column}nav{column-gap:1rem}.timeline{grid-template-columns:repeat(2,1fr)}.wrap{width:calc(100% - 2rem)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Blog and historical register */
.bar{flex-wrap:wrap}
nav a[aria-current="page"]{color:var(--gold);text-decoration:underline}
.subhero{background:linear-gradient(110deg,var(--deep),var(--plum));color:#f6e9f7;padding:clamp(2.5rem,6vw,5rem) 0}
.subhero .eyebrow{color:var(--gold)}
.subhero h1{font-size:clamp(2.75rem,7vw,5.5rem);max-width:17ch}
.reading{padding-block:clamp(2rem,5vw,4rem)}
.reading>p,.reading li,.reading dl{max-width:75ch}
.reading h2{font-size:clamp(1.65rem,4vw,2.6rem);margin-top:1.3em}
.reading li+li{margin-top:.55rem}
.table-scroll{overflow:auto;margin:2rem 0 1rem}
table{border-collapse:collapse;width:100%;min-width:620px;background:#fffdf9}
caption{text-align:left;font-weight:700;margin-bottom:.65rem}
th,td{padding:.7rem 1rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
thead{color:#fff5ef;background:var(--plum)}
tbody tr:nth-child(even){background:#f1e9f1}
dt{font-weight:700}
dd{margin:0 0 .85rem}
.blog article{padding:0 0 1rem;border-bottom:1px solid var(--line)}
.blog article:first-child h2{margin-top:0}

.resource-nav {
  flex-basis: 100%;
  width: 100%;
  padding-top: .65rem;
  border-top: 1px solid #765a62;
}

.resource-nav a {
  color: var(--gold);
}

.crest {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 51.7% center;
  clip-path: circle(48.7%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:root {
  --lavender: #f1e9f1;
  --gold-rule: #b6965e;
}

header, footer {
  background: linear-gradient(110deg, var(--deep), var(--plum));
}

header, .resource-nav {
  border-color: var(--gold-rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.brand .brand-crest {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
}

.subhero {
  border-bottom: 4px solid var(--gold-rule);
}

.history, tbody tr:nth-child(even) {
  background: var(--lavender);
}

.blog article, .pathways > div {
  border-color: var(--gold-rule);
}

.jurisdiction-page .feature-grid,
.jurisdiction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.jurisdiction-page .feature-grid article,
.jurisdiction-cards li {
  background: var(--lavender);
  border-top: 3px solid var(--gold-rule);
  padding: 1rem 1.25rem;
}

.jurisdiction-page .feature-grid h2,
.jurisdiction-cards h3 {
  margin: 0 0 .4rem;
  font-size: 1.5rem;
}

.jurisdiction-page figure {
  max-width: 42rem;
  margin: 1.5rem auto;
}

.jurisdiction-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jurisdiction-cards li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.reading .jurisdiction-cards li {
  margin: 0;
}

.region-number {
  background: var(--plum);
  color: var(--gold);
  padding: .1rem .55rem;
  border-radius: .25rem;
}

.region-territory {
  font-weight: 700;
}

.resource-page .feature-grid,
.resource-page .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.resource-page .feature-grid > *,
.resource-page .cards > li {
  margin: 0;
  padding: 1rem;
  background: var(--lavender);
  border-top: 3px solid var(--gold-rule);
}

.resource-page .cards {
  list-style: none;
  padding-left: 0;
}

.resource-page .initiative-line {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.resource-page .initiative-emblem {
  width: 3rem;
  height: auto;
  flex: 0 0 3rem;
}

.resource-page h4 {
  margin: 0;
}

.resource-page .figure-full + .figure-full {
  margin-inline-start: 1rem;
}

.resource-nav a[aria-current="page"] { text-decoration: underline; }
.order-ruth-native { padding-block: 3rem; }

.locations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.locations-map {
  background: linear-gradient(145deg, var(--plum), var(--deep));
  color: var(--paper);
  border: 1px solid var(--gold-rule);
  border-radius: .65rem;
  padding: clamp(.85rem, 3vw, 2rem);
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(2.75rem, auto));
  gap: .4rem;
}
.map-tile {
  grid-column: var(--column);
  grid-row: var(--row);
  display: grid;
  place-items: center;
  border-radius: .25rem;
  background: var(--gold);
  color: var(--deep);
  font-weight: 750;
  text-decoration: none;
}
.map-tile:hover { text-decoration: underline; }
.map-context { background: #4a3853; color: #eee3ee; font-weight: 500; }
.map-planned { background: #d9c0e8; border: 2px dashed #703e87; }
.map-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: 0; list-style: none; font-size: .88rem; }
.map-legend span { display: inline-block; width: .8rem; height: .8rem; background: var(--gold); margin-right: .35rem; }
.map-legend .planned-key { background: #d9c0e8; border: 1px dashed #703e87; }
.map-note { margin-bottom: 0; font-size: .88rem; }
.map-directory { list-style: none; padding: 0; margin: 0; }
.map-directory li { display: grid; padding: .4rem .7rem; border-bottom: 1px solid var(--gold-rule); }
.map-directory li:target { background: #fff1cd; outline: 2px solid var(--gold-rule); }
.map-directory span { font-size: .88rem; }
@media (max-width: 735px) { .locations-layout { grid-template-columns: 1fr; } }

.ruth-calendar-grid { table-layout: fixed; min-width: 0; text-align: center; }
.ruth-calendar-grid th, .ruth-calendar-grid td { padding: .45rem .15rem; text-align: center; }
.ruth-calendar nav { margin: 1rem 0 1.5rem; }
.ruth-event-day { display: inline-flex; min-width: 2rem; min-height: 2rem; align-items: center; justify-content: center; border-radius: .3rem; background: var(--plum); color: var(--gold); }
.ruth-event-detail h1 { color: var(--plum); font-size: clamp(2.2rem, 6vw, 4rem); overflow-wrap: anywhere; }

/* Keep the palette and page canvas consistent alongside builder plugins. */
body.ruth-site {
  --plum: #30123e;
  --deep: #1b1024;
  --gold: #edcc85;
  --paper: #faf7f2;
  --ink: #24182a;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, sans-serif;
}
.ruth-site #main { width: 100%; max-width: none; margin: 0; }
.ruth-site .hero, .ruth-site .subhero {
  background: linear-gradient(110deg, var(--deep), var(--plum));
  color: #f6e9f7;
}
.ruth-site .hero h1, .ruth-site .subhero h1 { color: #fff8eb; }
