/* Shared styles for the printable pages (agenda.html, invitations.html).
   Header, menu, and footer mirror index.html so the pages feel like one
   site; the letter-size sheets themselves carry their own inline styles
   from the Claude Design files. */

:root {
  --navy: #14343f;
  --teal: #1e4b5a;
  --teal-dark: #143540;
  --gold: #a9762f;
  --gold-muted: #c29a5c;
  --gold-deep: #8a5f22;
  --gold-deeper: #7a5318;
  --cream: #f1e4cf;
  --cream-light: #f6eee1;
  --text-body: #4a463f;
  --text-dark: #2b2926;
  --text-muted: #6d675e;
  --text-faint: #8a8378;
  --border-light: #e5e1da;
  --border-cream: #dccdb4;
  --navy-cream: #ebd9bc;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text-dark);
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
h1 {
  font-family: "Libre Baskerville", Georgia, serif;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-size: 14px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */
.sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header {
  border-bottom: 1px solid var(--border-light);
  border-top: 4px solid var(--gold);
  background: #fff;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
@media (min-width: 640px) {
  .site-header .inner {
    padding: 16px 32px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand:hover {
  text-decoration: none;
}
.brand-text {
  min-width: 0;
}
.brand-bar {
  width: 3px;
  height: 32px;
  background: var(--teal);
  flex: none;
}
.brand-name {
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.nav-links a {
  color: #4a463f;
}
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.nav-links[hidden] {
  display: none;
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-cream);
  flex: none;
}
.lang-toggle button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 11px;
  background: transparent;
  color: var(--text-faint);
}
.lang-toggle button.active {
  background: var(--teal);
  color: #fff;
}
.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  border: 1px solid var(--border-cream);
  width: 38px;
  height: 34px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--navy);
}
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .brand-sub {
    display: none;
  }
  .brand-of {
    display: none;
  }
  .site-header .inner {
    gap: 12px;
  }
  .header-actions {
    gap: 10px;
  }
  .lang-toggle button {
    font-size: 11.5px;
    padding: 7px 8px;
  }
}
@media (max-width: 420px) {
  .brand-name {
    font-size: 13.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }
  .lang-toggle button {
    font-size: 11px;
    padding: 7px 7px;
    letter-spacing: 0.03em;
  }
}
.mobile-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav[hidden],
.mobile-nav ul[hidden] {
  display: none;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 20px 14px;
}
.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  border-color: var(--gold-muted);
  background: rgba(255, 255, 255, 0.55);
  color: var(--gold-deeper);
}
.btn-secondary:hover {
  background: #fff;
  border-color: var(--gold);
  text-decoration: none;
}

/* ---------- Page intro ---------- */
.doc-main {
  background: var(--cream);
  padding-bottom: 56px;
}
.doc-intro {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 28px;
}
.doc-intro [hidden] {
  display: none;
}
.doc-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.doc-intro h1 {
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.15;
  font-size: clamp(28px, 4.6vw, 40px);
}
.doc-lede {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--text-body);
  line-height: 1.6;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.doc-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
@media (min-width: 700px) {
  .doc-hint {
    display: none;
  }
}

/* ---------- Letter-size sheets ---------- */
/* Each .page from Claude Design sizes its type in cqh (a percentage of the
   sheet's height), so the sheet only needs a width and a letter aspect ratio
   to scale the whole design down on phones. */
.sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 16px;
}
.sheets[hidden] {
  display: none !important;
}
.sheet {
  margin: 0;
  width: 100%;
  max-width: 8.5in;
}
.sheet figcaption {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 8px;
}
.sheet .page {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  box-shadow: 0 10px 30px rgba(20, 52, 63, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--gold);
  background: var(--navy);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}
@media (min-width: 640px) {
  .site-footer .inner {
    padding: 34px 32px;
  }
}
.site-footer [hidden] {
  display: none;
}
.footer-org {
  font-size: 14px;
  color: var(--navy-cream);
}
.footer-disclaimer {
  flex-basis: 100%;
  max-width: 720px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--navy-cream);
  opacity: 0.75;
}

/* ---------- Print: just the sheets, one per letter page ---------- */
@page {
  size: letter;
  margin: 0;
}
@media print {
  .skip-link,
  .sticky-wrap,
  .mobile-nav,
  .doc-intro,
  .site-footer,
  .sheet figcaption {
    display: none !important;
  }
  html,
  body {
    margin: 0;
    background: #fff;
  }
  .doc-main {
    padding: 0;
    background: none;
  }
  .sheets {
    display: block;
    padding: 0;
  }
  .sheet {
    max-width: none;
    break-after: page;
  }
  .sheet:last-child {
    break-after: auto;
  }
  /* Exact inches rather than width + aspect-ratio: rounding in the ratio can
     push a sliver onto an extra blank sheet. */
  .sheet .page {
    width: 8.5in;
    height: 11in;
    aspect-ratio: auto;
    box-shadow: none;
  }
  /* The designs' soft drop shadows print as solid gray boxes in PDF viewers
     such as Preview, so paper copies go without them. */
  .sheet .page * {
    box-shadow: none !important;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- Menu dropdown (flyer languages) ---------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropbtn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #4a463f;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropbtn .caret {
  font-size: 10px;
  color: var(--gold-deep);
}
.nav-dropbtn.is-current {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.nav-dropmenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(20, 52, 63, 0.14);
  padding: 6px 0;
  z-index: 60;
}
.nav-dropmenu[hidden] {
  display: none;
}
.nav-dropmenu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-body);
  white-space: nowrap;
}
.nav-dropmenu a:hover {
  background: var(--cream-light);
  text-decoration: none;
}
.mobile-sub-label {
  display: block;
  padding: 14px 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-nav .mobile-sub a {
  padding-left: 16px;
}

/* ---------- Agenda: fill the screen ---------- */
/* Wider than the 8.5in the flyer uses: the program fills the window instead
   of sitting small in the middle. Everything scales with it, since the design
   sizes its type against the sheet. */
.agenda-sheets {
  padding: 0 12px;
}
.agenda-sheets .sheet {
  max-width: min(100%, 1100px);
}

/* ---------- Agenda page: the program as a web page ---------- */
/* Navy band, matching the other full-width bands on the site. */
.agenda-hero {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  padding: 26px 0 24px;
  text-align: center;
}
.agenda-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}
.agenda-hero h1 {
  font-weight: 400;
  color: var(--navy-cream);
  margin: 9px 0 0;
  line-height: 1.15;
  font-size: clamp(23px, 3.2vw, 31px);
}

.agenda-body {
  background: #fff;
  padding: 34px 0 44px;
}
.agenda-col {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
/* The program sits on its own card rather than a full-width band of tan. */
.agenda-card {
  background: var(--cream-light);
  border: 1px solid var(--border-cream);
  box-shadow: 0 2px 14px rgba(20, 52, 63, 0.07);
  padding: 24px 26px 26px;
}
@media (max-width: 620px) {
  .agenda-card {
    padding: 18px 18px 20px;
  }
}
.agenda-heading {
  font-family: "Lato", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 26px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-cream);
}
.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-item {
  padding: 13px 0;
}
.agenda-presiding .agenda-item {
  padding: 7px 0;
  border-bottom: none;
}
/* Dotted leaders, as on the printed program, that fold into a stack when
   there is not enough room for one line. */
.agenda-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.agenda-label {
  font-family: "Lato", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  flex: none;
}
.agenda-dots {
  flex: 1;
  border-bottom: 1px dotted var(--gold-muted);
  transform: translateY(-4px);
}
.agenda-value {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
  flex: none;
  text-align: right;
}
.agenda-note {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16.5px;
  line-height: 1.45;
  color: #4a6470;
  margin-top: 3px;
}
.agenda-note.work {
  font-style: italic;
}
/* The hymn number links to the Church's music library, so it needs to look
   like a link without shouting over the hymn title beside it. */
.agenda-note a {
  color: var(--teal);
  border-bottom: 1px solid rgba(30, 75, 90, 0.35);
}
.agenda-note a:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
  text-decoration: none;
}
.agenda-note.credit {
  font-size: 15px;
}
@media (max-width: 620px) {
  .agenda-row {
    display: block;
  }
  .agenda-dots {
    display: none;
  }
  .agenda-value {
    display: block;
    text-align: left;
    font-size: 19px;
    margin-top: 2px;
  }
}
/* Translation arrangements for this session, echoing the card above it. */
.agenda-translation {
  max-width: 34em;
  margin: 24px auto 0;
  padding: 14px 18px 16px;
  background: var(--cream-light);
  border: 1px solid var(--border-cream);
  border-left: 3px solid var(--gold);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
}
.agenda-place {
  max-width: 34em;
  margin: 22px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

@media print {
  .agenda-sheets {
    display: block !important;
  }
  .agenda-sheets[hidden] {
    display: none !important;
  }
  .agenda-sheets .sheet {
    width: auto;
    max-width: none;
  }
}
