/* ---------------------------------------------------------------------------
   West Sacramento Ward Bulletin

   One column, big type, big buttons. The reader is over 75 and on a phone.
   Nothing moves. Everything that matters is a visible button or a labelled box.
   Print: the same page on one letter sheet, single-sided.
   --------------------------------------------------------------------------- */

:root {
  --ink: #1b1736;
  --ink-soft: #4a4660;
  --muted: #6b6882;
  --line: #d9d6e8;
  --paper: #f6f5fb;
  --card: #ffffff;
  --accent: #1b3a6b;
  --accent-dark: #122a4f;
  --accent-soft: #e7edf6;
  --ok: #2f6b3a;
  --ok-soft: #e4f3e6;
  --warn: #8a4b11;
  --warn-soft: #fbeedb;
  --bad: #9b2c2c;
  --bad-soft: #fbe5e5;
  --hl-blue: #1d4ed8;
  --hl-red: #b91c1c;
  --hl-green: #15803d;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
/* Hidden means hidden, whatever else styles it (a .button is inline-block). */
[hidden] { display: none !important; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; color: var(--accent-dark); border-bottom: 2px solid var(--accent-soft); padding-bottom: 0.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.95em; }
.big-code { font-size: 1.3rem; letter-spacing: 0.03em; background: #fff; padding: 0.1em 0.4em; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 0.5rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

/* Header and footer --------------------------------------------------------- */
/* The title bar stays put; everything else scrolls under it. The editor bar
   is a sibling, not a child, so it scrolls away and does not eat phone space. */
.site-header { background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; }
.site-title { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.editor-bar { background: var(--accent-dark); color: #fff; font-size: 0.95rem; }
.editor-bar-inner { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; padding: 0.5rem 1rem; }
.editor-bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.editor-bar a { color: #fff; }
.editor-flag { font-weight: 600; opacity: 0.9; }

.site-footer { margin-top: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-submit { color: var(--ink); background: var(--accent-soft); padding: 0.75rem 1rem; border-radius: var(--radius); }
.footer-fine { font-size: 0.9rem; }
.footer-version { font-size: 0.8rem; opacity: 0.7; }

/* Cards and the hero -------------------------------------------------------- */
main { padding-top: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.1rem; margin: 0 0 1rem; }
.card-narrow { max-width: 28rem; margin-left: auto; margin-right: auto; }
.hero-image { margin: 1.5rem 0 0.25rem; }
.hero-image img { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: cover; object-position: center 30%; }
.hero-credit { margin: 0.25rem 0 0; text-align: right; font-size: 0.75rem; color: var(--muted); }
.hero-credit a { color: var(--muted); }
.header-preview { max-width: 14rem; height: auto; border-radius: 8px; vertical-align: middle; }
.hero { text-align: center; padding: 1.25rem 0.5rem 0.5rem; }
.hero-ward { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.hero-date { font-size: 1.6rem; margin: 0.2rem 0 0.4rem; }
.hero-meta { margin: 0; }
.hero-address { color: var(--muted); font-size: 0.95rem; }
.hero-welcome { margin-top: 0.5rem; font-style: italic; color: var(--ink-soft); }
/* Paper only: the line pointing a handed-out copy to the site. */
.print-only { display: none; }
.print-view .print-only { display: block; }
@media print { .print-only { display: block !important; } }
.print-line { margin: 0 0 4pt; padding: 2pt 4pt; border: 1pt solid #000; text-align: center; font-weight: 700; font-size: 10pt; color: #000; }
.edit-link { margin: -0.4rem 0 0.75rem; font-size: 0.9rem; }

/* The program --------------------------------------------------------------- */
.program { margin: 0; }
.prow { display: flex; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dotted var(--line); }
.prow:last-child { border-bottom: 0; }
.prow dt { flex: 0 0 9rem; color: var(--muted); font-size: 0.95rem; margin: 0; padding-top: 0.1rem; }
.prow dd { margin: 0; flex: 1; }
.prow-center { justify-content: center; text-align: center; font-variant: small-caps; letter-spacing: 0.05em; color: var(--ink-soft); }
/* The people at the front (presiding, conducting, music, chorister) sit apart from the meeting itself. */
.prow-divider { padding: 0; margin: 0.35rem 0 0.5rem; border-bottom: 2px solid var(--accent-soft); }
.prow-wide dd { flex-basis: 100%; }
.special-title { font-weight: 700; font-variant: normal; letter-spacing: 0; color: var(--ink); }
.hymn { font-family: var(--serif); font-style: italic; }
.hymn-number { font-family: var(--serif); font-style: normal; color: var(--ink); margin-left: 0.3rem; white-space: nowrap; }
.leader { display: none; }

/* The program, laid out like the printed one the ward is used to: a serif
   face, the title centred, each line a label, a dotted leader and the name
   on the right. Wraps sensibly on a narrow phone. */
.program-card { font-family: var(--serif); }
.program-title { text-align: center; border-bottom: 0; margin-bottom: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.program-date { text-align: center; margin: 0 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--ink-soft); color: var(--ink-soft); }
.program-classic .prow { flex-direction: row; align-items: baseline; gap: 0.4rem; border-bottom: 0; padding: 0.3rem 0; }
.program-classic .prow dt { flex: 0 0 auto; font-size: 1rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.program-classic .leader { display: block; flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted #b7b3c9; transform: translateY(-0.3em); }
.program-classic .prow dd { flex: 0 1 auto; text-align: right; }
.program-classic .prow-center { justify-content: center; }
.program-classic .prow-center dd { text-align: center; font-weight: 600; }
.program-classic .prow-hymn { padding-bottom: 0; }
.prow-sub { padding: 0 0 0.35rem 1.2rem; }
.program-classic a.hymn, .program-classic a.hymn-number { text-decoration: none; color: var(--accent); }
.program-classic .hymn-number { margin-left: 0; }
.program-notes { margin-top: 0.75rem; }

@media screen and (max-width: 480px) {
  .prow { flex-direction: column; gap: 0; }
  .prow dt { flex-basis: auto; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
}

/* Second hour --------------------------------------------------------------- */
.hour-head { margin: 0.6rem 0 0.4rem; font-size: 1.05rem; color: var(--accent-dark); }
.override { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.9rem; }
.override summary { cursor: pointer; font-weight: 600; padding: 0.3rem 0; }
.talk-loader { margin-top: 0.75rem; }
.hour-head .muted { font-weight: 400; }
.cfm { display: flex; gap: 1rem; align-items: flex-start; margin: 0.5rem 0 0.75rem; }
.cfm-image { flex: 0 0 11rem; }
.cfm-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.cfm-text { flex: 1; }
@media screen and (max-width: 560px) {
  .cfm { flex-direction: column; }
  .cfm-image { flex-basis: auto; width: 100%; }
}
.cfm-label { margin: 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cfm-scripture { margin: 0.1rem 0; font-weight: 700; font-size: 1.1rem; }
.cfm-quote { margin: 0 0 0.5rem; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.cfm-thumb { width: 8rem; border-radius: 8px; }
.lessons { margin-top: 0.5rem; }

/* Announcements ------------------------------------------------------------- */
.announcements { list-style: none; margin: 0; padding: 0; }
.announcement { display: flex; gap: 0.9rem; padding: 0.6rem 0; border-bottom: 1px dotted var(--line); }
.announcement:last-child { border-bottom: 0; }
.announcement-date { flex: 0 0 7rem; font-weight: 700; color: var(--accent-dark); padding-top: 0.05rem; }
.announcement-body { flex: 1; min-width: 0; display: flow-root; }
/* A picture with an announcement: small beside the words, large on a tap. */
.announcement-picture { float: right; width: 6.5rem; margin: 0.15rem 0 0.4rem 0.75rem; text-align: center; text-decoration: none; color: var(--muted); }
.announcement-picture img { display: block; width: 100%; height: auto; max-height: 8rem; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.enlarge-hint { display: block; font-size: 0.8rem; line-height: 1.2; margin-top: 0.2rem; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4.5rem 0.75rem 1rem; cursor: pointer; }
.lightbox img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; border-radius: 4px; background: #fff; }
.lightbox-close { position: absolute; top: 0.75rem; right: 0.75rem; min-height: 48px; padding: 0.55rem 1.2rem; font: inherit; font-size: 1.15rem; font-weight: 700; color: #111; background: #fff; border: 0; border-radius: 999px; cursor: pointer; }
.lightbox-note { color: #fff; margin: 0.75rem 0 0; font-size: 1rem; }
body.lightbox-open { overflow: hidden; }
.announcement-picture-edit { margin: 1rem 0; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; }
.announcement-picture-edit summary { font-weight: 700; cursor: pointer; padding: 0.2rem 0; }
.announcement-title { font-weight: 700; display: block; }
.announcement .rich { margin-top: 0.15rem; }
.subhead { margin-top: 1rem; color: var(--ink-soft); }
.tag { display: inline-block; font-size: 0.75rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); vertical-align: middle; }
.tag-org { margin-top: 0.2rem; }
@media screen and (max-width: 480px) {
  .announcement { flex-direction: column; gap: 0.1rem; }
  .announcement-date { flex-basis: auto; }
}

/* Rich text from the editor ------------------------------------------------- */
.rich p { margin: 0 0 0.5rem; }
.rich p:last-child { margin-bottom: 0; }
.rich h3 { font-size: 1.05rem; margin: 0.5rem 0 0.25rem; }
.rich ul, .rich ol, .rich-box ul, .rich-box ol { margin: 0.25rem 0 0.5rem; padding-left: 1.4rem; }
/* A second level sits snug under its item. */
.rich li > ul, .rich li > ol, .rich-box li > ul, .rich-box li > ol { margin: 0.1rem 0 0.2rem; }
.rich ul.list-plain, .rich-box ul.list-plain { list-style: none; }
.rich ul.list-check, .rich-box ul.list-check { list-style: none; }
.rich ul.list-check > li::before, .rich-box ul.list-check > li::before { content: "\2713"; display: inline-block; width: 1.2em; margin-left: -1.2em; color: var(--ok); font-weight: 700; }
.hl-blue { color: var(--hl-blue); }
.hl-red { color: var(--hl-red); }
.hl-green { color: var(--hl-green); }

/* Contacts ------------------------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact { display: grid; grid-template-columns: 11rem 1fr auto; gap: 0.2rem 0.8rem; padding: 0.4rem 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.contact:last-child { border-bottom: 0; }
.contact-calling { color: var(--muted); font-size: 0.9rem; }
.contact-name { font-weight: 600; }
.contact-ways { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.95rem; }
@media screen and (max-width: 560px) {
  .contact { grid-template-columns: 1fr; gap: 0; padding: 0.55rem 0; }
}

/* Missionary meals: a shaded box, noticed without shouting ------------------- */
.card-meals { background: #fbf6ea; border-color: #ecdcb8; display: flex; gap: 1rem; align-items: flex-start; }
.card-meals h2 { border-bottom-color: #ecdcb8; }
/* The organizations' newsletters, shaded like the meals box to set it apart (Jon, 2026-11-07). */
.card-newsletters { background: #fbf6ea; border-color: #ecdcb8; }
.card-newsletters h2 { border-bottom-color: #ecdcb8; }
.meals-image { flex: 0 0 9rem; }
.meals-image img { width: 100%; height: auto; display: block; }
.meals-text { flex: 1; min-width: 0; }
.meals-address { font-weight: 600; }
.meals-missionaries { margin-bottom: 0.5rem; }
/* The ward word, easy to find and read (Jon, 2026-11-01). */
.ward-word { display: inline-block; font-size: 1.3em; line-height: 1.2; padding: 0.05em 0.5em; background: #fff; border: 2px solid #b8862b; border-radius: 6px; letter-spacing: 0.06em; white-space: nowrap; }
.print-view .ward-word { font-size: 9.5pt; padding: 0 2pt; border: 0.75pt solid #000; border-radius: 2pt; }
@media print { .ward-word { font-size: 9.5pt; padding: 0 2pt; border: 0.75pt solid #000; border-radius: 2pt; } }
@media screen and (max-width: 560px) {
  .card-meals { flex-direction: column; }
  .meals-image { flex-basis: auto; width: 100%; }
}
@media print { .card-meals { background: none; border: 1px solid #000; padding: 0.3rem 0.5rem; } .meals-image { display: none; } }

/* Links --------------------------------------------------------------------- */
.link-buttons { display: flex; flex-direction: column; gap: 0.6rem; }
.link-buttons .button { text-align: center; }
.sunday-nav { display: flex; justify-content: space-between; margin: 1rem 0; font-size: 0.95rem; }

/* Buttons and forms --------------------------------------------------------- */
.button {
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  min-height: 48px; line-height: 1.3;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button-big { font-size: 1.1rem; padding: 0.85rem 1.4rem; }
.button-small { font-size: 0.95rem; padding: 0.45rem 0.9rem; min-height: 40px; }
.button-quiet { background: #fff; color: var(--accent); }
.button-quiet:hover { background: var(--accent-soft); color: var(--accent-dark); }
.button-danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.button-danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.inline { display: inline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.danger-zone { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem 0.5rem; margin: 0 0 1rem; }
/* A long web address must not widen the page on a phone (Jon, 2026-10-31:
   the newsletter's boxes ran off the left of an iPhone). A fieldset will not
   shrink below its longest unbroken word unless told it may, and the words
   themselves may break anywhere once they would not fit. */
fieldset { min-width: 0; }
.rich, .rich-box, .preview-list, .item-text, .contact-ways, .announcement-body { overflow-wrap: anywhere; }
legend { font-weight: 700; color: var(--accent-dark); padding: 0 0.4rem; }
.field { margin: 0 0 0.9rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field .req { color: var(--bad); }
.hint { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.field-error-text { margin: 0 0 0.3rem; color: var(--bad); font-weight: 600; }
input[type="text"], input[type="password"], input[type="date"], input[type="url"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px;
}
input:focus, select:focus, textarea:focus, .rich-box:focus { outline: 3px solid #9db4dc; outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
input.narrow { width: 5rem; }
.field-error input, .field-error textarea { border-color: var(--bad); }
.field-check label { display: flex; gap: 0.6rem; align-items: center; cursor: pointer; }
.field-check input { width: 1.4rem; height: 1.4rem; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media screen and (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.speakers { margin: 0.5rem 0; }
.speakers-legend { font-weight: 600; margin-bottom: 0.3rem; }
.speaker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media screen and (max-width: 480px) { .speaker-row { grid-template-columns: 1fr; } }
.inline-form { margin-top: 1rem; }
.plain-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.plain-table th, .plain-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plain-table input[type="text"] { min-height: 40px; padding: 0.3rem 0.5rem; }
.plain-list { padding-left: 1.2rem; }

/* The simple editor --------------------------------------------------------- */
/* Quiet until used (Jon, 2026-10-31: a page of boxes, each with a row of
   big outlined buttons, felt busy). The toolbar is a thin strip joined to
   the top of its box, and stays faint until that box is being typed in.
   Nothing hides or moves: the buttons are always there and always work. */
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 0.1rem; padding: 0.15rem; border: 2px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--paper); }
.rich-toolbar button {
  font: inherit; font-size: 0.85rem; min-height: 36px; padding: 0.15rem 0.55rem; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.rich-toolbar button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.field-rich:not(:focus-within) .rich-toolbar button { opacity: 0.55; }
.field-rich:focus-within .rich-toolbar { border-color: var(--accent); }
.rich-toolbar .swatch { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 50%; vertical-align: -0.05em; margin-right: 0.3em; }
.rich-box { min-height: 9rem; padding: 0.6rem 0.7rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.is-rich .rich-box { border-radius: 0 0 8px 8px; }
@media (max-width: 480px) { .rich-toolbar button { padding: 0.15rem 0.4rem; } }
.rich-box:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rich-box p { margin: 0 0 0.5rem; }
.rich-box h3 { font-size: 1.05rem; margin: 0.5rem 0 0.25rem; }
[data-rich-editor].is-rich textarea { display: none; }

/* Notices ------------------------------------------------------------------- */
.notice { padding: 0.8rem 1rem; border-radius: var(--radius); margin: 0 0 1rem; border: 1px solid transparent; }
.notice-title { font-weight: 700; margin: 0; }
.notice-detail { margin: 0.25rem 0 0; }
.notice-success { background: var(--ok-soft); border-color: #bfe3c5; color: var(--ok); }
.notice-problem { background: var(--bad-soft); border-color: #f0c1c1; color: var(--bad); }
.notice-info { background: var(--accent-soft); border-color: #c3d0e6; color: var(--accent-dark); }
.notice-hidden { background: var(--warn-soft); border: 2px solid var(--warn); color: var(--warn); }
.tag-hidden { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 4px; padding: 0 0.35rem; }

/* The reminder after sign-in: a box over the page. */
.popup-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(18, 42, 79, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.popup { background: #fff; color: var(--ink); border-top: 6px solid var(--warn); border-radius: var(--radius); padding: 1.2rem 1.3rem; max-width: 30rem; width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); font-size: 1.05rem; }
.popup h2 { margin-top: 0; }
.popup .button { width: 100%; text-align: center; }

/* Shown or hidden: the first thing on the program form. */
.program-form fieldset.visibility { border: 3px solid var(--ok); background: var(--ok-soft); border-radius: var(--radius); padding: 0.6rem 1rem 0.9rem; margin: 0 0 1.5rem; }
.program-form fieldset.visibility-hidden { border-color: var(--warn); background: var(--warn-soft); }
.visibility legend { font-weight: 700; font-size: 1.15rem; padding: 0.15rem 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.visibility-choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; font-size: 1.05rem; cursor: pointer; }
.visibility-choice input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--accent); }
.visibility-sub { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.info-bubble { margin-top: 0.4rem; }
.info-bubble summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent-dark); font-weight: 600; padding: 0.3rem 0; }
.info-bubble summary::-webkit-details-marker { display: none; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: #fff; font: italic 700 1rem Georgia, serif; flex: none; }
.info-bubble-text { margin-top: 0.4rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.info-bubble-text p { margin: 0 0 0.6rem; }
.info-bubble-text p:last-child { margin-bottom: 0; }

/* Lists in the editor ------------------------------------------------------- */
.item-list { list-style: none; margin: 0.5rem 0 1rem; padding: 0; }
.item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.5rem; }
.item-main { display: block; padding: 0.7rem 0.9rem; color: inherit; text-decoration: none; }
.item-main:hover { background: var(--accent-soft); }
.item-title { display: block; font-weight: 700; }
.item-sub { display: block; color: var(--muted); font-size: 0.9rem; }
.item-text { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }
.item-waiting { border-left: 5px solid var(--warn); }
.item-finished { opacity: 0.65; }
.item-showing { border-left: 5px solid var(--ok); }
.contact-order { list-style: none; padding: 0; counter-reset: contact; }
.item-row { display: flex; align-items: stretch; }
.item-row .item-main { flex: 1; }
.move-buttons { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.4rem; border-left: 1px solid var(--line); }
.move-buttons form { margin: 0; }
.move-buttons .button { min-width: 3rem; padding: 0.3rem 0.6rem; }
.move-buttons .button[disabled] { opacity: 0.35; cursor: default; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1rem 0; }
@media screen and (max-width: 560px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-card { display: block; padding: 0.9rem 1rem; border: 2px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; background: #fff; }
.menu-card:hover { border-color: var(--accent); }
.menu-card-attention { border-color: var(--warn); background: var(--warn-soft); }
.menu-card-wide { display: block; margin: 1rem 0 0.5rem; padding: 1.2rem 1.2rem; border-width: 3px; }
.menu-card-wide .menu-card-title { font-size: 1.4rem; }
.menu-card-title { display: block; font-weight: 700; font-size: 1.1rem; color: var(--accent-dark); }
.menu-card-text { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.2rem; }

.speakers-index dt, .speakers-by-sunday dt { font-weight: 600; color: var(--ink); }
.report-tabs { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.report-tabs .button { flex: 1 1 0; min-width: 0; padding-left: 0.4rem; padding-right: 0.4rem; text-align: center; justify-content: center; }
.report-periods { margin: 0 0 1rem; font-size: 0.95rem; }
.visit-span { margin: 0 0 1rem; font-size: 1.1rem; }

/* The Visits page */
.visit-began { background: var(--accent-soft); border-radius: var(--radius); padding: 0.5rem 0.8rem; font-size: 0.95rem; }
.visit-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.8rem 0 1.2rem; }
@media screen and (min-width: 640px) { .visit-tiles { grid-template-columns: repeat(4, 1fr); } }
.visit-tile { background: var(--accent-soft); border-radius: var(--radius); padding: 0.7rem 0.8rem; display: flex; flex-direction: column; }
.visit-tile-n { font-size: 1.8rem; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.visit-tile-label { font-weight: 600; }
.visit-tile-hint { font-size: 0.8rem; color: var(--muted); }
.visit-bars { list-style: none; padding: 0; margin: 0.3rem 0 0.8rem; }
.visit-bars li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; padding: 0.3rem 0; font-size: 0.95rem; }
.visit-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.visit-bar { grid-column: 1 / -1; height: 0.45rem; border-radius: 0.25rem; background: var(--accent); }
.visit-table-wrap { overflow-x: auto; }
.visit-newsletters { list-style: none; padding: 0; margin: 0.3rem 0 0.8rem; }
.visit-newsletters li { display: flex; flex-direction: column; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.visit-nl-name { font-weight: 700; color: var(--accent-dark); }
.visit-nl-from { font-size: 0.9rem; }
.visit-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.3rem 0 0.8rem; }
.visit-table th, .visit-table td { text-align: left; padding: 0.35rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.visit-table th { font-size: 0.85rem; color: var(--ink-soft); }
.visit-table td:not(:first-child), .visit-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit-inline-bar { display: inline-block; height: 0.45rem; border-radius: 0.25rem; background: var(--accent); vertical-align: middle; }
.spoke { display: inline-block; }
.history { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.history li { padding: 0.4rem 0; border-bottom: 1px dotted var(--line); display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; }
.history-when { color: var(--muted); flex: 0 0 9.5rem; }
.history-who { font-weight: 600; }
.handover h2 { margin-top: 1.25rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Help ---------------------------------------------------------------------- */
.howto ol, .howto ul { padding-left: 1.3rem; }
.howto li { margin-bottom: 0.45rem; }
.howto-contents { line-height: 1.9; }
.howto-video { margin: 1rem 0 0; text-align: center; }
.howto-video video { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.howto-video figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
@media print { .howto-video { display: none; } }

/* QR sign ------------------------------------------------------------------- */
.qr-card { text-align: center; }
.qr svg { width: min(80vw, 22rem); height: auto; }
.qr-url { font-size: 1.4rem; font-weight: 700; margin: 0.5rem 0; }
.qr-what { font-size: 1.2rem; margin: 0 0 0.75rem; color: var(--ink-soft); }
/* The same boxed note as the lesson door sheets in the Ward Helper app. */
.qr-how { margin: 0 auto 1rem; padding: 0.7rem 1.2rem; max-width: 26rem; border: 3px solid #b45309; border-radius: 1rem; background: #fffbeb; }
.qr-how-lead { display: block; font-size: 1.6rem; font-weight: 700; color: #92400e; }
.qr-how-text { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
@media print { .qr-how { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Print: one letter sheet, single-sided ------------------------------------ */
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  html { font-size: 10.5pt; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer .footer-links, .site-footer .footer-version, .edit-link, .sunday-nav, .notice-info, .no-print, .card-links, .tag-org { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  main { padding-top: 0; }
  .card { border: 0; padding: 0; margin: 0 0 0.6rem; break-inside: avoid; }
  .hero { padding: 0 0 0.3rem; }
  .hero-date { font-size: 16pt; }
  h2 { font-size: 12pt; border-bottom: 1px solid #000; color: #000; margin-bottom: 0.3rem; }
  .prow { padding: 0.1rem 0; border-bottom: 0; }
  .prow-divider { border-bottom: 1px solid #000; margin: 0.2rem 0; }
  .prow dt { flex-basis: 8rem; color: #333; }
  .prow-center { font-weight: 700; }
  .cfm-image { display: none; }
  .hero-image { display: none; }
  .announcement { padding: 0.15rem 0; border-bottom: 0; }
  .announcement-date { flex-basis: 6rem; }
  .contact { grid-template-columns: 10rem 1fr auto; padding: 0.1rem 0; border-bottom: 0; }
  .site-footer { margin-top: 0.6rem; padding: 0.4rem 0 0; border-top: 1px solid #000; color: #000; }
  .footer-submit { background: none; padding: 0; border: 1px solid #000; padding: 0.2rem 0.4rem; }
  a { color: #000; text-decoration: none; }
  .program-classic .leader { border-bottom-color: #000; }
}
.print-view .site-footer .footer-links { display: none; }
.qr-page .site-footer { display: none; }
@media print { .qr-page .qr-card { page-break-inside: avoid; } }


/* One sheet of paper -------------------------------------------------------
   The printout in the shape of the paper bulletin: date across the top, the
   program and the second hour on the left, activities on the right, the
   leaders across the bottom in two columns. These rules apply when printing,
   and to the "Print the Ward Bulletin" view on a screen wide enough to show a sheet,
   so what is seen there is what comes out of the printer. */
@page { size: letter portrait; margin: 0.4in; }
/* An iPhone lays a page out at its own screen width when it prints. Laying
   the printout out at the paper's width on every device keeps it one sheet
   (Jon, 2026-10-20: an iPhone printed two and a half pages). */
@media print { html, body { width: 7.7in !important; min-width: 7.7in !important; margin: 0 !important; padding: 0 !important; } }
@media print { .screen-only { display: none !important; } }
.print-view .screen-only { display: none; }
/* Floats in the corner of the screen, outside the sheet, so it never takes a place in the sheet's grid. */
.print-back { position: fixed; top: 0.75rem; left: 0.75rem; right: 0.75rem; z-index: 20; margin: 0; max-width: 26rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.print-back p { margin: 0 0 0.4rem; }
.print-hint { font-size: 0.85rem; color: var(--muted); margin: 0 !important; }
/* On a phone the bar sits above the page instead of over it. */
@media screen and (max-width: 819px) { .print-back { position: static; max-width: none; margin: 0 0 1rem; } }
@media print { .print-back { display: none !important; } }
@media print {
body { background: #fff !important; color: #000;}
.site-header,
.editor-bar,
.skip,
.hero-image,
.sunday-nav,
.edit-link,
.card-links,
.cfm-image,
.meals-image,
.tag-org,
.official-schedule,
.notice-info,
.notice-hidden,
.no-print,
.footer-links,
.footer-version,
.cfm .button,
.card-meals .button,
.leader-hidden { display: none !important;}
main.wrap { max-width: calc(7.7in / var(--fit, 1)); margin: 0 auto; padding: 0; display: block; font-size: 9pt; line-height: 1.22;}
.flow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.28in; align-items: start;}
.flow-col { min-width: 0;}
.hero { column-span: all; padding: 0 0 4pt; margin: 0 0 4pt; border-bottom: 1.5pt solid #000;}
.hero-ward { font-size: 7.5pt; margin: 0; color: #000;}
.hero-date { font-size: 14pt; margin: 0;}
.hero-meta,
.hero-address,
.hero-welcome { font-size: 8.5pt; margin: 0; color: #000;}
.card { border: 0 !important; border-radius: 0; padding: 0 !important; margin: 0 0 6pt !important; background: none !important; box-shadow: none; break-inside: avoid;}
#program,
#today,
#meals { break-inside: avoid;}
#announcements { break-inside: auto !important;}
.announcement { break-inside: avoid;}
h2, .subhead { break-after: avoid;}
#contacts { column-span: all; margin-top: 8pt !important; padding-top: 2pt !important;}
h2 { font-size: 10.5pt; margin: 0 0 3pt; padding: 0 0 1pt; border-bottom: 0.75pt solid #000; color: #000;}
h3 { font-size: 9.5pt;}
.program-card { font-size: 9pt;}
.program-title { font-size: 12pt; border-bottom: 0; padding: 0; margin: 0;}
.program-date { font-size: 8.5pt; margin: 0 0 3pt; padding: 0 0 2pt; color: #000; border-bottom: 0.75pt solid #000;}
.program-classic .prow { padding: 0.6pt 0;}
.program-classic .prow dt { font-size: 9pt;}
.program-classic .leader { border-bottom: 1pt dotted #000;}
.prow-sub { padding: 0 0 1pt 10pt; font-size: 8.5pt;}
.prow-divider { margin: 2pt 0 !important; border-bottom: 0.75pt solid #000 !important;}
.program-classic a.hymn,
.program-classic a.hymn-number,
a { color: #000 !important; text-decoration: none !important;}
.hour-head { font-size: 9.5pt; margin: 3pt 0 1pt; color: #000;}
.cfm { margin: 0 0 2pt; display: block;}
.cfm-label,
.cfm-scripture,
.cfm-quote { margin: 0; font-size: 9pt;}
.lessons .prow { padding: 0.6pt 0;}
.card-meals { display: block; border: 0.75pt solid #000 !important; padding: 3pt 5pt !important;}
.card-meals h2 { font-size: 10pt; border-bottom: 0; margin-bottom: 1pt;}
.meals-text p,
.meals-missionaries,
.meals-address { margin: 0 0 2pt; font-size: 8.5pt;}
.announcements { margin: 0;}
.announcement { padding: 1.5pt 0; gap: 5pt; border-bottom: 0 !important; flex-direction: row;}
.announcement-date { flex: 0 0 5.6em; font-size: 8.5pt; color: #000;}
.announcement-title { font-size: 9pt;}
.announcement .rich { font-size: 8.5pt;}
.rich p { margin: 0 0 1pt;}
.rich ul,
.rich ol { margin: 0 0 1pt;}
.subhead { margin: 3pt 0 1pt; font-size: 9.5pt; color: #000;}
.contact-list { columns: 2; column-gap: 0.28in;}
.contact { display: flex !important; justify-content: space-between; align-items: baseline; gap: 4pt; padding: 0.4pt 0 !important; border-bottom: 0 !important; break-inside: avoid; font-size: 8.5pt;}
.contact-calling { font-size: 8pt; color: #000; flex: 1 1 auto;}
.contact-name { flex: 0 0 auto;}
.contact-ways { flex: 0 0 auto; font-size: 8.5pt;}
.contact-ways .muted { display: none;}
.site-footer { margin: 4pt 0 0; padding: 2pt 0 0; border-top: 0.75pt solid #000; font-size: 8pt; color: #000;}
.site-footer .wrap { max-width: calc(7.7in / var(--fit, 1)); padding: 0;}
.footer-submit { background: none !important; padding: 0 !important; margin: 0 0 1pt; border: 0 !important;}
.footer-fine { margin: 0; font-size: 7.5pt; }
.hero-meta br { display: none; }
.hero-address::before { content: " · "; }
.hero-date { font-size: 13pt; }
.lessons .prow { flex-direction: row !important; gap: 6pt !important; padding: 0.3pt 0 !important; border-bottom: 0 !important; }
.lessons .prow dt { flex: 0 0 9em !important; font-size: 8.5pt !important; text-transform: none !important; letter-spacing: 0 !important; color: #000 !important; }
.lessons .prow dd { font-size: 8.5pt; }
.hour-head { margin: 2pt 0 0.5pt; }
.cfm-label, .cfm-scripture, .cfm-quote { font-size: 8.5pt; line-height: 1.15; }
main.wrap { font-size: 8.5pt; }
.meals-text p, .meals-missionaries, .meals-address { font-size: 8pt; margin: 0 0 1pt; }
.announcement { padding: 1pt 0; }
.contact { font-size: 8pt; padding: 0 !important; }
.contact-calling { font-size: 7.5pt; }
}
@media screen and (min-width: 820px) {
.print-view { background: #e9e8ef; }
.print-view main.wrap { background: #fff; padding: calc(0.4in / var(--fit, 1)); box-shadow: 0 2px 12px rgba(0,0,0,.18); margin: 1rem auto; width: calc(8.5in / var(--fit, 1)); max-width: calc(8.5in / var(--fit, 1)); box-sizing: border-box; }
body.print-view { color: #000; }
.print-view .site-header,
.print-view .editor-bar,
.print-view .skip,
.print-view .hero-image,
.print-view .sunday-nav,
.print-view .edit-link,
.print-view .card-links,
.print-view .cfm-image,
.print-view .meals-image,
.print-view .tag-org,
.print-view .official-schedule,
.print-view .notice-info,
.print-view .no-print,
.print-view .footer-links,
.print-view .footer-version,
.print-view .cfm .button,
.print-view .card-meals .button,
.print-view .leader-hidden { display: none !important;}
.print-view main.wrap { display: block; font-size: 9pt; line-height: 1.22;}
.print-view .flow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.28in; align-items: start;}
.print-view .flow-col { min-width: 0;}
.print-view .hero { column-span: all; padding: 0 0 4pt; margin: 0 0 4pt; border-bottom: 1.5pt solid #000;}
.print-view .hero-ward { font-size: 7.5pt; margin: 0; color: #000;}
.print-view .hero-date { font-size: 14pt; margin: 0;}
.print-view .hero-meta,
.print-view .hero-address,
.print-view .hero-welcome { font-size: 8.5pt; margin: 0; color: #000;}
.print-view .card { border: 0 !important; border-radius: 0; padding: 0 !important; margin: 0 0 6pt !important; background: none !important; box-shadow: none; break-inside: avoid;}
.print-view #program,
.print-view #today,
.print-view #meals { break-inside: avoid;}
.print-view #announcements { break-inside: auto !important;}
.announcement { break-inside: avoid;}
h2, .subhead { break-after: avoid;}
.print-view #contacts { column-span: all; margin-top: 8pt !important; padding-top: 2pt !important;}
.print-view h2 { font-size: 10.5pt; margin: 0 0 3pt; padding: 0 0 1pt; border-bottom: 0.75pt solid #000; color: #000;}
.print-view h3 { font-size: 9.5pt;}
.print-view .program-card { font-size: 9pt;}
.print-view .program-title { font-size: 12pt; border-bottom: 0; padding: 0; margin: 0;}
.print-view .program-date { font-size: 8.5pt; margin: 0 0 3pt; padding: 0 0 2pt; color: #000; border-bottom: 0.75pt solid #000;}
.print-view .program-classic .prow { padding: 0.6pt 0;}
.print-view .program-classic .prow dt { font-size: 9pt;}
.print-view .program-classic .leader { border-bottom: 1pt dotted #000;}
.print-view .prow-sub { padding: 0 0 1pt 10pt; font-size: 8.5pt;}
.print-view .prow-divider { margin: 2pt 0 !important; border-bottom: 0.75pt solid #000 !important;}
.print-view .program-classic a.hymn,
.print-view .program-classic a.hymn-number,
.print-view a { color: #000 !important; text-decoration: none !important;}
.print-view .hour-head { font-size: 9.5pt; margin: 3pt 0 1pt; color: #000;}
.print-view .cfm { margin: 0 0 2pt; display: block;}
.print-view .cfm-label,
.print-view .cfm-scripture,
.print-view .cfm-quote { margin: 0; font-size: 9pt;}
.print-view .lessons .prow { padding: 0.6pt 0;}
.print-view .card-meals { display: block; border: 0.75pt solid #000 !important; padding: 3pt 5pt !important;}
.print-view .card-meals h2 { font-size: 10pt; border-bottom: 0; margin-bottom: 1pt;}
.print-view .meals-text p,
.print-view .meals-missionaries,
.print-view .meals-address { margin: 0 0 2pt; font-size: 8.5pt;}
.print-view .announcements { margin: 0;}
.print-view .announcement { padding: 1.5pt 0; gap: 5pt; border-bottom: 0 !important; flex-direction: row;}
.print-view .announcement-date { flex: 0 0 5.6em; font-size: 8.5pt; color: #000;}
.print-view .announcement-title { font-size: 9pt;}
.print-view .announcement .rich { font-size: 8.5pt;}
.print-view .rich p { margin: 0 0 1pt;}
.print-view .rich ul,
.print-view .rich ol { margin: 0 0 1pt;}
.print-view .subhead { margin: 3pt 0 1pt; font-size: 9.5pt; color: #000;}
.print-view .contact-list { columns: 2; column-gap: 0.28in;}
.print-view .contact { display: flex !important; justify-content: space-between; align-items: baseline; gap: 4pt; padding: 0.4pt 0 !important; border-bottom: 0 !important; break-inside: avoid; font-size: 8.5pt;}
.print-view .contact-calling { font-size: 8pt; color: #000; flex: 1 1 auto;}
.print-view .contact-name { flex: 0 0 auto;}
.print-view .contact-ways { flex: 0 0 auto; font-size: 8.5pt;}
.print-view .contact-ways .muted { display: none;}
.print-view .site-footer { margin: 4pt 0 0; padding: 2pt 0 0; border-top: 0.75pt solid #000; font-size: 8pt; color: #000;}
.print-view .site-footer .wrap { max-width: calc(7.7in / var(--fit, 1)); padding: 0;}
.print-view .footer-submit { background: none !important; padding: 0 !important; margin: 0 0 1pt; border: 0 !important;}
.print-view .footer-fine { margin: 0; font-size: 7.5pt; }
.print-view .hero-meta br { display: none; }
.print-view .hero-address::before { content: " · "; }
.print-view .hero-date { font-size: 13pt; }
.print-view .lessons .prow { flex-direction: row !important; gap: 6pt !important; padding: 0.3pt 0 !important; border-bottom: 0 !important; }
.print-view .lessons .prow dt { flex: 0 0 9em !important; font-size: 8.5pt !important; text-transform: none !important; letter-spacing: 0 !important; color: #000 !important; }
.print-view .lessons .prow dd { font-size: 8.5pt; }
.print-view .hour-head { margin: 2pt 0 0.5pt; }
.print-view .cfm-label, .print-view .cfm-scripture, .print-view .cfm-quote { font-size: 8.5pt; line-height: 1.15; }
.print-view main.wrap { font-size: 8.5pt; }
.print-view .meals-text p, .print-view .meals-missionaries, .print-view .meals-address { font-size: 8pt; margin: 0 0 1pt; }
.print-view .announcement { padding: 1pt 0; }
.print-view .contact { font-size: 8pt; padding: 0 !important; }
.print-view .contact-calling { font-size: 7.5pt; }
}


/* The missionary meals QR code: paper only. A phone reading the page has the
   button; someone holding the printed sheet has the code. */
.meals-qr { display: none; }
@media print {
  .meals-qr { display: block; float: right; width: 0.9in; margin: 0 0 2pt 6pt; text-align: center; font-size: 6.5pt; line-height: 1.1; }
  .meals-qr svg { display: block; width: 0.9in; height: 0.9in; }
}
@media screen and (min-width: 820px) {
  .print-view .meals-qr { display: block; float: right; width: 0.9in; margin: 0 0 2pt 6pt; text-align: center; font-size: 6.5pt; line-height: 1.1; }
  .print-view .meals-qr svg { display: block; width: 0.9in; height: 0.9in; }
}

/* --- Organization newsletters (2026-10-31) ---------------------------------
   The bulletin's cards and type, so it feels the same, under a masthead of its
   own, so it is plain that this is the newsletter. */
.newsletter-back { margin: 1rem 0; }
.newsletter-back .button { font-size: 1.05rem; }
.newsletter-masthead { text-align: center; margin: 0 0 1rem; padding: 1.1rem 0.75rem 1rem; background: var(--accent-soft); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.newsletter-kicker { margin: 0.3rem 0 0; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05rem; }
.newsletter-name { margin: 0.1rem 0; font-family: var(--serif); font-size: 1.9rem; color: var(--accent-dark); }
.newsletter-issue { margin: 0.2rem 0 0; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.95rem; color: var(--ink-soft); }
.newsletter-edit { text-align: right; margin: -0.4rem 0 0.6rem; }
.newsletter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.link-sub { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
@media print { .newsletter-back, .newsletter-edit { display: none !important; } }

/* Editing an issue: one box per section, and what fills in shown beforehand. */
.newsletter-edit-section { scroll-margin-top: 5rem; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.9rem 0.2rem; margin: 0 0 1rem; background: #fff; }
.newsletter-edit-section > .section-fields { border: 0; margin: 0; padding: 0.4rem 0 0; min-width: 0; }
/* Folded to one line until tapped; the words Open and Close say what a tap does. */
.section-summary { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 0.35rem 0 0.75rem; list-style: none; }
.section-summary::-webkit-details-marker { display: none; }
.section-summary-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fold-hint { flex: none; font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; background: #fff; }
.fold-hint::before { content: "Open \25BE"; }
details[open] > .section-summary .fold-hint::before { content: "Close \25B4"; }
details[open] > .section-summary { border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Every section at a glance, with Up and Down. */
.section-order { scroll-margin-top: 5rem; list-style: none; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); margin: 0 0 0.75rem; padding: 0.15rem 0.6rem; }
.section-order li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.section-order li:last-child { border-bottom: 0; }
.section-order-num { flex: none; min-width: 1.6rem; font-weight: 700; color: var(--muted); }
.section-order-name { flex: 1; min-width: 0; overflow-wrap: break-word; line-height: 1.3; }
.section-order-name a { font-weight: 700; }
.section-order li.is-left-out .section-order-name a { color: var(--muted); }
.section-order-moves { flex: none; display: flex; gap: 0.4rem; }
.section-order-moves .button { min-width: 2.9rem; min-height: 2.75rem; padding: 0 0.6rem; font-size: 1.25rem; line-height: 1; }
.section-order-moves .button[disabled] { visibility: hidden; }
.section-summary .muted { font-weight: 400; font-size: 0.9rem; }
.fold-all-row { margin: 0 0 0.6rem; }
.newsletter-edit-section.is-left-out { border-style: dashed; background: var(--paper); }
.newsletter-add { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 0.6rem 0.9rem 0.2rem; margin: 0 0 1rem; }
.newsletter-add legend { font-weight: 700; padding: 0 0.4rem; }
.preview-list { margin: 0.2rem 0 0.5rem; padding-left: 1.2rem; }
.section-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.enter-saves { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The QR sign, printed: one Letter page filled, like the Ward Helper lesson door sheets. */
@media print {
  .qr-page .qr-card { border: 0; padding: 0.3in 0 0; margin: 0; }
  .qr-page .qr-card h1 { font-size: 28pt; line-height: 1.15; margin: 0 0 0.1in; border: 0; }
  .qr-page .qr-what { font-size: 17pt; margin: 0 0 0.25in; }
  .qr-page .qr-how { max-width: 6.2in; padding: 0.15in 0.4in; border-radius: 0.3in; margin: 0 auto 0.3in; }
  .qr-page .qr-how-lead { font-size: 26pt; }
  .qr-page .qr-how-text { font-size: 17pt; }
  .qr-page .qr svg { width: 4.4in; height: 4.4in; }
  .qr-page .qr-url { font-size: 18pt; margin-top: 0.2in; }
}

/* Under a contact's phone and email: where each shows. */
.show-ticks { margin-top: -0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: center; }
.show-ticks-label { flex-basis: 100%; color: var(--ink-soft); font-size: 0.95rem; }
.show-ticks label { display: flex; gap: 0.45rem; align-items: center; font-weight: 400; }
.show-ticks input { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); }

/* Pictures in newsletters (2026-10-31). */
.newsletter-picture { margin: 0.9rem 0 0; }
.newsletter-picture img { display: block; width: 100%; height: auto; border-radius: 8px; }
.rich li > .newsletter-picture, .announcement-body > .newsletter-picture { margin: 0.5rem 0 0.7rem; }
/* "Use this to make a heading": the toolbar's button, drawn as it looks there. */
.howto-heading { margin: 0.4rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
.howto-heading p { margin: 0 0 0.3rem; }
.howto-heading p:last-child { margin: 0; }
.toolbar-sample { display: inline-block; font-size: 0.85rem; padding: 0.15rem 0.55rem; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink-soft); vertical-align: 0.05em; }
.newsletter-picture figcaption { margin-top: 0.3rem; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }
.pictures-edit { margin: 0.5rem 0 0.75rem; }
.picture-edit { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.6rem; margin: 0 0 0.6rem; border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 5rem; }
.picture-waiting { border: 2px solid var(--warn); background: var(--warn-soft); }
.picture-thumb { flex: 0 0 7.5rem; width: 7.5rem; height: auto; border-radius: 6px; }
.picture-fields { flex: 1; min-width: 0; }
.picture-people { border: 0; padding: 0; margin: 0 0 0.5rem; }
.picture-people legend { font-weight: 700; padding: 0; margin-bottom: 0.2rem; }
.picture-people .choice, .ward-choices .choice { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.25rem 0; }
.ward-choices .choice input { margin-top: 0.3em; flex: none; }
.picture-people input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.1rem; accent-color: var(--accent); }
.picture-add { margin: 0.25rem 0 0.2rem; }
.picture-input-js { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
@media (max-width: 480px) { .picture-edit { flex-direction: column; } .picture-thumb { width: 100%; flex-basis: auto; } }

/* Copy for email (2026-10-31). */
.email-steps { padding-left: 1.3rem; }
.email-steps li { margin-bottom: 0.3rem; }
.email-subject { font-weight: 700; padding: 0.5rem 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.email-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.copy-status { min-height: 1.4em; font-weight: 700; color: var(--ok); }
.email-tip { padding: 0.5rem 0.7rem; border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 0 6px 6px 0; }
.email-version { margin: 0.5rem 0; }
.email-version summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 0.3rem 0; }
.email-preview { border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.8rem; background: #fff; overflow-wrap: anywhere; }
.email-preview h2 { font-size: 1.2rem; border: 0; margin: 0 0 0.2rem; }
.email-preview h3 { font-size: 1.05rem; margin: 1rem 0 0.3rem; }
#email-plain { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }

/* The quick actions at the top of an issue, and beside each issue in the list (2026-10-31). */
.issue-top-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1rem; }
.issue-top-actions .hint { margin: 0; flex-basis: 100%; }
.item-side { display: flex; align-items: center; padding: 0.5rem 0.9rem; border-left: 1px solid var(--line); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.item-side:hover { background: var(--accent-soft); }

/* The sections of an issue: a faint shade behind, each section a white card
   on it, so the parts to edit stand apart (Jon, 2026-10-31: subtle). The
   shade reaches the card's edges. */
.sections-area { background: #eef1f7; margin: 1.25rem -1.1rem; padding: 0.9rem 1.1rem 0.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sections-area > h2 { margin-top: 0.2rem; }
.sections-area .newsletter-edit-section { background: #fff; box-shadow: 0 1px 3px rgba(27, 23, 54, 0.08); }
.sections-area .newsletter-edit-section.is-left-out { background: var(--paper); box-shadow: none; }
.sections-area .newsletter-add { background: rgba(255, 255, 255, 0.6); }

/* --- The newsletter on paper and in a PDF (2026-10-31) ----------------------
   Its own look, like a printed newsletter: a masthead in the serif face, two
   columns, the presidency in a band across the foot. On a screen the sheet is
   shown on a grey desk, as it will print. Every rule here is under
   .newsletter-print, so the one-sheet bulletin's print rules, written for the
   bulletin, do not reach it (and these do not reach the bulletin). */
.newsletter-print { background: #e7e9ef; }
.newsletter-print .site-footer { display: none; }
.newsletter-print main.wrap { max-width: 8.5in; }
.nl-sheet { background: #fff; margin: 1rem auto 2rem; padding: 0.55in 0.55in 0.4in; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12); font-family: var(--serif); color: #222; line-height: 1.45; }
.nl-mast { text-align: center; margin: 0 0 0.25in; padding: 0 0 0.12in; border-bottom: 3px double var(--accent); }
.nl-ward { margin: 0; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--ink-soft); }
.nl-org { margin: 0.1rem 0 0; font-family: var(--serif); font-size: 2.7rem; line-height: 1.05; color: var(--accent-dark); border: 0; }
.nl-kicker { margin: 0.15rem 0 0.35rem; font-style: italic; font-size: 1.15rem; color: var(--accent); }
.nl-issue { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.nl-issue::before, .nl-issue::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.nl-columns { column-count: 1; }
@media screen and (min-width: 820px) { .nl-columns { column-count: 2; column-gap: 0.4in; column-rule: 1px solid #ddd; } }
.nl-section { margin: 0 0 0.2in; }
.nl-section h2, .nl-band h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--accent-dark); margin: 0 0 0.35rem; padding: 0 0 0.15rem; border-bottom: 1px solid var(--accent); break-after: avoid; }
.nl-sheet .rich p { margin: 0 0 0.5rem; }
.nl-sheet .announcements { margin: 0; }
.nl-sheet .announcement { display: block; padding: 0.25rem 0 0.4rem; border-bottom: 0; break-inside: avoid; }
.nl-sheet .announcement-date { display: block; font-family: var(--font); font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; }
.nl-sheet .announcement-title { font-family: var(--font); }
.nl-sheet .newsletter-picture { break-inside: avoid; margin: 0.4rem 0 0.6rem; }
.nl-sheet .newsletter-picture img { border-radius: 3px; }
.nl-sheet .program { font-family: var(--font); }
.nl-band { margin: 0.15in 0 0; padding: 0.12in 0.18in; background: var(--accent-soft); border-top: 2px solid var(--accent); break-inside: avoid; }
.nl-band .contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.6in, 1fr)); gap: 0.05in 0.3in; }
.nl-band .contact { display: block; padding: 0.05in 0; border: 0; font-family: var(--font); }
.nl-band .contact-calling, .nl-band .contact-name { display: block; }
.nl-band .contact-ways { display: block; font-size: 0.9rem; }
.nl-foot { margin: 0.2in 0 0.05in; text-align: center; font-family: var(--font); font-size: 0.9rem; }
.nl-fine { margin: 0; text-align: center; font-family: var(--font); font-size: 0.72rem; color: var(--muted); }
@media screen and (max-width: 819px) { .nl-sheet { padding: 1rem; margin: 0.5rem 0 1rem; } .nl-org { font-size: 2.1rem; } }
@media print {
  .newsletter-print { background: #fff; }
  .newsletter-print main.wrap { max-width: none !important; font-size: 11pt !important; line-height: 1.4 !important; }
  .nl-sheet { margin: 0; padding: 0; box-shadow: none; }
  .nl-columns { column-count: 2; column-gap: 0.35in; column-rule: 0.75pt solid #ccc; }
  .nl-org { font-size: 30pt; }
  .nl-section h2, .nl-band h2 { font-size: 14pt !important; color: var(--accent-dark) !important; border-bottom: 0.75pt solid var(--accent) !important; }
  .nl-band, .nl-mast, .nl-issue::before, .nl-issue::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .newsletter-print .notice-hidden { display: none !important; }
}
/* The bulletin's print rules squeeze contacts onto one line and set
   announcement details at 8.5pt, with !important; inside the newsletter
   sheet the newsletter's own sizes win. */
@media print {
  .nl-sheet .rich, .nl-sheet .announcement-body, .nl-sheet .announcement .rich { font-size: 10.5pt !important; line-height: 1.4 !important; }
  .nl-sheet .announcement-title { font-size: 10.5pt !important; }
  .nl-sheet .announcement-date { font-size: 9pt !important; }
  .nl-band .contact-list { columns: auto !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4pt 0.3in !important; }
  .nl-band .contact { display: block !important; font-size: 10pt !important; padding: 2pt 0 !important; }
  .nl-band .contact-calling { display: block !important; font-size: 8.5pt !important; color: #333 !important; text-transform: uppercase; letter-spacing: 0.04em; }
  .nl-band .contact-name { display: block !important; font-weight: 700; }
  .nl-band .contact-ways { display: block !important; font-size: 9.5pt !important; }
  .nl-band .contact-ways a { margin-right: 0.6em; }
}
/* On paper the presidency sits side by side in one row where it fits, so
   the band is short and shares the last page rather than taking a page of
   its own. */
@media print {
  .nl-band { padding: 6pt 10pt !important; margin-top: 8pt !important; }
  .nl-band h2 { margin-bottom: 3pt !important; }
  .nl-band .contact-list { grid-template-columns: repeat(auto-fit, minmax(1.7in, 1fr)) !important; }
}
/* On paper a picture is no taller than about a fifth of the page; it keeps
   its shape, a little narrower and centred, so the words stay the main thing. */
@media print {
  .nl-sheet .newsletter-picture img { max-height: 2.1in; width: auto; max-width: 100%; margin: 0 auto; }
  .nl-sheet .newsletter-picture figcaption { text-align: center; }
}
/* The presidency: a shaded box at the end of the columns. */
.nl-box { background: var(--accent-soft); border-top: 2px solid var(--accent); padding: 0.1in 0.14in; break-inside: avoid; }
.nl-box .contact { display: block; padding: 0.04in 0; border: 0; font-family: var(--font); }
.nl-box .contact-calling { display: block; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; }
.nl-box .contact-name { display: block; font-weight: 700; }
.nl-box .contact-ways { display: block; font-size: 0.9rem; }
.nl-box .contact-ways a { margin-right: 0.6em; }
@media print {
  .nl-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nl-box .contact-list { columns: auto !important; }
  .nl-box .contact { display: block !important; font-size: 10pt !important; padding: 2pt 0 !important; }
  .nl-box .contact-calling { display: block !important; font-size: 8pt !important; color: #333 !important; }
  .nl-box .contact-name { display: block !important; }
  .nl-box .contact-ways { display: block !important; font-size: 9.5pt !important; }
}
@media print {
  .nl-mast { margin-bottom: 0.16in !important; }
  .nl-section { margin-bottom: 0.14in !important; }
  /* The two lines at the foot stay together, never one alone on a page. */
  .nl-foot { break-after: avoid; margin-top: 0.12in !important; }
  .nl-fine { break-before: avoid; }
}
/* Above the sheet, not floating over its masthead. */
.newsletter-print .print-back { position: static; max-width: 8.5in; margin: 1rem auto 0; box-shadow: none; }
