:root {
  --gold: #9a6f16;
  --gold-dark: #65470b;
  --gold-soft: #d6b66d;
  --purple: #4b2354;
  --paper: #fffdf8;
  --ink: #2d2418;
  --muted: #665a44;
  --danger: #9b2c2c;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8f1df, #e8d5a8) fixed;
  font-family: Arial, Helvetica, sans-serif;
}

a { color: var(--gold-dark); }

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - 1080px) / 2));
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--gold-soft);
  box-shadow: 0 2px 14px rgba(83, 58, 18, .08);
}

.brand { font: bold 1.25rem Arial, Helvetica, sans-serif; text-decoration: none; color: #6c4a0a; }
.brand span { color: var(--gold); margin-right: 5px; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a, .link-button { border: 0; background: none; font: inherit; color: #5d513b; text-decoration: none; cursor: pointer; padding: 4px 0; }
.site-header nav a:hover, .link-button:hover { color: var(--gold-dark); text-decoration: underline; }
.nav-icon-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-icon-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon-link.active { color: var(--gold-dark); font-weight: bold; }
.nav-icon-link .heart-menu-icon { fill: none; }
.site-header form { margin: 0; }
.page-shell { width: min(1080px, calc(100% - 32px)); margin: 32px auto; }
.site-footer { padding: 8px 20px 28px; text-align: center; color: #735f35; font-size: .9rem; }

.hero, .panel, .article {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(83, 58, 18, .15);
}

.hero { text-align: center; padding: 38px clamp(16px, 4vw, 40px); }
.cross { display: block; color: var(--gold); font-size: 42px; margin-bottom: 8px; }
h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; color: #6c4a0a; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; }
.lead { margin: 0 auto 28px; max-width: 650px; color: var(--muted); line-height: 1.6; }

.calendar { max-width: 880px; margin: auto; }
.calendar-nav { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin-bottom: 14px; }
.calendar-nav h2 { margin: 0; font-size: 1.45rem; text-transform: capitalize; }
.round-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f4ead0; text-decoration: none; font-size: 1.45rem; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.weekdays div { padding: 7px 2px; color: #796a4a; font-size: .78rem; font-weight: bold; text-transform: uppercase; }
.calendar-day { position: relative; min-width: 0; min-height: 84px; padding: 8px; text-align: left; color: var(--ink); background: #fff; border: 1px solid #e5d8bb; border-radius: 9px; font: inherit; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
.calendar-day:hover { border-color: var(--gold); background: #fffbf0; transform: translateY(-1px); }
.calendar-day:focus-visible { outline: 3px solid rgba(154, 111, 22, .3); outline-offset: 2px; }
.calendar-day.empty { background: rgba(240, 232, 211, .45); border-style: dashed; }
.calendar-day.today { background: #fff9e8; }
.calendar-day.selected { border: 2px solid var(--gold); background: #fff7de; box-shadow: inset 0 0 0 2px #f3dfa9, 0 5px 12px rgba(83, 58, 18, .12); }
.day-number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-weight: bold; }
.selected .day-number { background: var(--gold); color: white; }
.saint-indicator { position: absolute; left: 50%; top: 54%; display: inline-flex; align-items: center; justify-content: center; min-width: 31px; height: 31px; padding: 0 6px; transform: translate(-50%, -50%); border-radius: 18px; color: white; background: var(--purple); box-shadow: 0 3px 8px rgba(75, 35, 84, .24); }
.saint-indicator-icon { font-size: 1rem; line-height: 1; }
.saint-count { margin-left: 3px; font-size: .7rem; font-weight: bold; }
.today-dot { position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.day-details { margin-top: 18px; min-height: 164px; padding: 24px; border: 1px solid #d9c48e; border-radius: 12px; background: linear-gradient(135deg, #fffdf8, #fbf2dd); text-align: center; }
.day-saints-panel[hidden] { display: none; }
.day-saints-panel.active { animation: reveal-day .28s ease-out; }
.selected-date-label { color: var(--gold); font-size: .74rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.day-details h2 { margin: 5px 0 8px; font-size: 1.35rem; }
.day-details p { margin: 0 auto 16px; color: var(--muted); }
.day-details .empty-day { margin-bottom: 0; font-style: italic; }
.calendar-saint-list { max-width: 900px; margin: 0 auto; padding: 0 18px; border: 1px solid #e7dcc4; border-radius: 12px; background: white; }
.calendar-saint .directory-saint-content { flex: 1; }
.calendar-saint h2 { display: block; }

@keyframes reveal-day {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.button { display: inline-block; padding: 11px 18px; border: 0; border-radius: 8px; color: white; background: #8b6415; font-weight: bold; text-decoration: none; cursor: pointer; }
.button:hover { color: white; background: var(--gold-dark); }
.button.secondary { color: #55421c; background: #ead8ad; }
.button.danger { background: var(--danger); }
.button.small { padding: 7px 11px; font-size: .86rem; }

.article { max-width: 850px; margin: auto; padding: clamp(26px, 6vw, 60px); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
.article > h1 { text-align: center; color: var(--purple); font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 8px; }
.article-subtitle { text-align: center; color: #666; margin-bottom: 34px; }
.article-content h2 { margin-top: 38px; padding-bottom: 7px; border-bottom: 2px solid #a77b28; color: var(--purple); font-size: 1.45rem; }
.article-content h3 { color: var(--purple); }
.article-content .destaque { background: #f8f5f1; border-left: 5px solid #a77b28; padding: 18px 20px; margin: 22px 0; }
.article-content .frase { padding: 18px 28px; margin: 25px 0; border-block: 1px solid #ddd; text-align: center; color: var(--purple); font-size: 1.15rem; font-style: italic; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-content th, .article-content td { padding: 10px; border: 1px solid #d5d0c8; text-align: left; vertical-align: top; }
.article-content th { background: var(--purple); color: white; }
.article-actions { margin-bottom: 24px; }

.panel { padding: clamp(20px, 4vw, 38px); }
.panel h1 { margin-top: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.saint-admin-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; margin: 0 0 20px; padding: 16px; border: 1px solid #ddcfad; border-radius: 10px; background: #fffaf0; }
.saint-admin-search { flex: 1 1 300px; margin-bottom: 0; }
.form-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: #55472d; font-weight: 600; cursor: pointer; }
.form-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control { position: relative; width: 2.5rem; height: 1.3rem; border: 1px solid #9f906d; border-radius: 2rem; background: #cfc7b5; transition: background-color .15s, border-color .15s; }
.switch-control::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 6px); height: calc(1.3rem - 6px); border-radius: 50%; background: white; transition: transform .15s; }
.form-switch input:checked + .switch-control { border-color: var(--purple); background: var(--purple); }
.form-switch input:checked + .switch-control::after { transform: translateX(1.2rem); }
.form-switch input:focus-visible + .switch-control { outline: 3px solid rgba(92, 45, 105, .25); outline-offset: 2px; }
.filter-count { margin-left: auto; padding-bottom: 10px; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: white; }
.data th, .data td { padding: 11px; border-bottom: 1px solid #e1d7c1; text-align: left; }
.data th { color: #5d491f; background: #f7efd9; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: bold; color: #55472d; }
.field input:not([type=checkbox]), .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid #bea976; border-radius: 7px; font: inherit; background: white; }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.content-editor { min-height: 520px; font-family: Consolas, monospace; font-size: .9rem; }
.section-editor { grid-column: 1 / -1; margin: 14px 0 24px; }
.section-editor-header, .section-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-editor-header h2 { margin: 0; }
.section-card { margin-top: 16px; padding: 18px; border: 1px solid #d8c69d; border-radius: 10px; background: #fffaf0; }
.section-card .content-editor { min-height: 260px; }
.section-card-actions { display: flex; align-items: center; gap: 8px; }
.move-section { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #bca979; border-radius: 6px; background: white; color: var(--purple); font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.move-section:hover:not(:disabled), .move-section:focus-visible:not(:disabled) { border-color: var(--purple); background: #f4eaf6; }
.move-section:disabled { opacity: .35; cursor: not-allowed; }
.remove-section { border: 0; background: none; color: var(--danger); font-weight: bold; cursor: pointer; }
.validation, .field-validation-error { color: #a12323; }
.notice { padding: 12px 15px; margin-bottom: 18px; background: #eaf5e7; border-left: 4px solid #43853b; }
.warning { padding: 12px 15px; background: #fff1d5; border-left: 4px solid #c98b16; }
.login { max-width: 520px; margin: 80px auto; text-align: center; }
.access-gate form { max-width: 340px; margin: 22px auto 0; }
.access-gate .field { text-align: left; }

.directory-hero { margin-bottom: 22px; }
.alphabet-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 850px; margin: 0 auto 24px; }
.alphabet-nav a, .alphabet-nav span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; font-weight: bold; text-decoration: none; }
.alphabet-nav a { color: white; background: var(--purple); transition: transform .18s ease, background .18s ease; }
.alphabet-nav a:hover { color: white; background: #33153a; transform: translateY(-2px); }
.alphabet-nav span { color: #a89d86; background: #eee7d8; }
.saint-search { position: relative; display: flex; align-items: center; max-width: 720px; margin: auto; }
.saint-search svg { position: absolute; left: 15px; width: 20px; height: 20px; fill: none; stroke: #776540; stroke-width: 2; stroke-linecap: round; }
.saint-search input { width: 100%; padding: 14px 105px 14px 45px; border: 1px solid #bea976; border-radius: 10px; background: white; font: inherit; box-shadow: inset 0 1px 3px rgba(83, 58, 18, .08); }
.saint-search input:focus { outline: 3px solid rgba(154, 111, 22, .2); border-color: var(--gold); }
#search-count { position: absolute; right: 13px; color: #796a4a; font-size: .82rem; }
.saint-directory { display: grid; gap: 18px; }
.letter-card { scroll-margin-top: 18px; overflow: hidden; border: 1px solid var(--gold-soft); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 24px rgba(83, 58, 18, .1); }
.letter-card-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: white; background: linear-gradient(120deg, var(--purple), #65316f); }
.letter-card-header > span { font: bold 1.65rem Arial, Helvetica, sans-serif; }
.letter-card-header small { opacity: .84; }
.letter-card-body { padding: 4px 20px; }
.directory-saint { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #e7dcc4; text-align: left; }
.directory-saint:last-child { border-bottom: 0; }
.directory-saint h2 { display: inline; margin: 0 10px 5px 0; color: var(--purple); font-size: 1.2rem; }
.feast-date { display: inline-block; color: var(--gold); font-size: .82rem; font-weight: bold; }
.directory-saint p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.directory-actions, .ranking-buttons { display: flex; align-items: center; gap: 8px; }
.directory-empty { text-align: center; }
.directory-empty h2 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ranking-hero { margin-bottom: 22px; }
.period-selector { display: inline-flex; gap: 7px; padding: 6px; border: 1px solid #d9c48e; border-radius: 12px; background: #f3ead5; }
.period-option { cursor: pointer; }
.period-option input { position: absolute; opacity: 0; pointer-events: none; }
.period-option span { display: block; min-width: 110px; padding: 11px 18px; border-radius: 8px; color: #6c5b39; font-weight: bold; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.period-option input:checked + span { color: white; background: var(--purple); box-shadow: 0 4px 10px rgba(75, 35, 84, .22); }
.period-option input:focus-visible + span { outline: 3px solid rgba(154, 111, 22, .3); outline-offset: 2px; }
.ranking-card { overflow: hidden; border: 1px solid var(--gold-soft); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 24px rgba(83, 58, 18, .1); }
.ranking-card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; color: white; background: linear-gradient(120deg, var(--purple), #65316f); }
.ranking-card-header h2 { margin: 2px 0 0; color: white; font-size: 1.45rem; text-transform: capitalize; }
.ranking-card-header small { opacity: .84; }
.ranking-label { font-size: .7rem; font-weight: bold; letter-spacing: .11em; opacity: .75; text-transform: uppercase; }
.ranking-card-body { padding: 4px 22px; }
.ranking-saint { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid #e7dcc4; }
.ranking-saint:last-child { border-bottom: 0; }
.rank-position { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #6b5933; background: #eee4cc; font: bold 1.25rem Arial, Helvetica, sans-serif; }
.rank-1 { color: #5c4307; background: linear-gradient(135deg, #ffe8a0, #d9a51d); box-shadow: 0 3px 10px rgba(173, 125, 15, .25); }
.rank-2 { color: #4f5358; background: linear-gradient(135deg, #f1f3f4, #aeb4bb); }
.rank-3 { color: #603818; background: linear-gradient(135deg, #e9bd91, #b56f37); }
.ranking-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ranking-saint h3 { margin: 0; color: var(--purple); font-size: 1.2rem; }
.ranking-saint p { margin: 7px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.ranking-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 145px; }
.view-total { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-dark); font-size: .82rem; font-weight: bold; }
.view-total svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ranking-empty { padding: 50px 20px; text-align: center; }
.ranking-empty h2 { margin: 0 0 8px; }
.ranking-empty p { margin: 0 0 20px; color: var(--muted); }

.favorite-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d5b9bd; border-radius: 50%; color: #9b5962; background: #fff; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.favorite-toggle:hover { color: #a51f38; border-color: #bc6573; background: #fff4f5; transform: scale(1.06); }
.favorite-toggle:focus-visible { outline: 3px solid rgba(165, 31, 56, .22); outline-offset: 2px; }
.favorite-toggle svg { width: 21px; height: 21px; fill: transparent; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s ease; }
.favorite-toggle.active { color: white; border-color: #a51f38; background: #b52a43; box-shadow: 0 3px 9px rgba(165, 31, 56, .22); }
.favorite-toggle.active svg { fill: currentColor; }
.favorites-hero { margin-bottom: 22px; }
.favorites-hero-icon { display: block; margin-bottom: 8px; color: #b52a43; font-size: 42px; line-height: 1; }
.favorites-empty { padding-block: 48px; text-align: center; }
.favorites-empty > span { display: block; color: #b88a91; font-size: 54px; line-height: 1; }
.favorites-empty h2 { margin: 10px 0 8px; }
.favorites-empty p { margin: 0 0 20px; color: var(--muted); }

.gallery-upload { margin: 24px 0 32px; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.admin-photo-card { overflow: hidden; padding-bottom: 15px; border: 1px solid #ddcfad; border-radius: 12px; background: white; text-align: center; }
.admin-photo-card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.admin-photo-card p { min-height: 38px; margin: 12px; color: var(--muted); font-size: .9rem; }
.admin-photo-card form { margin: 0 12px; }
.gallery-empty { padding: 26px; border: 1px dashed #c9b785; border-radius: 10px; text-align: center; color: var(--muted); }
.saint-gallery { margin-top: 42px; }
.saint-gallery > h2, .saint-video-gallery > h2 { padding-bottom: 7px; border-bottom: 2px solid #a77b28; color: var(--purple); }
.saint-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.gallery-thumbnail { overflow: hidden; height: 145px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #eee; cursor: zoom-in; }
.gallery-thumbnail:hover, .gallery-thumbnail:focus-visible { border-color: var(--gold); outline: none; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-thumbnail:hover img { transform: scale(1.04); }
.gallery-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 44px 14px 14px; border: 0; border-radius: 14px; background: #17130d; color: white; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.gallery-dialog::backdrop { background: rgba(15, 10, 5, .82); backdrop-filter: blur(3px); }
.gallery-dialog img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: auto; object-fit: contain; }
.gallery-dialog p { margin: 10px 0 0; text-align: center; }
.gallery-close { position: absolute; top: 7px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.14); font-size: 1.5rem; cursor: pointer; }
.saint-video-gallery { margin-top: 42px; }
.saint-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.saint-video-card { overflow: hidden; border: 1px solid #ddcfad; border-radius: 12px; background: #fff; }
.saint-video-card h3 { margin: 0; padding: 12px 15px 14px; color: var(--purple); font-size: 1rem; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #17130d; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reading-complete { margin-top: 40px; padding-top: 25px; border-top: 1px solid #ddd2ba; text-align: center; }
.reading-complete form { margin: 0; }
.progress-update-alert, .progress-inline-alert { padding: 10px 13px; border-left: 4px solid #c98b16; background: #fff1d5; color: #69480d; }
.progress-update-alert { margin-bottom: 14px; }
.progress-inline-alert { display: inline-block; margin-top: 10px; font-size: .84rem; }

.progress-hero { margin-bottom: 22px; }
.progress-hero-icon { display: block; margin-bottom: 8px; color: var(--purple); font-size: 45px; }
.progress-summary { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 25px; }
.progress-pie { position: relative; display: grid; place-content: center; width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(#d4c7aa 0 calc(var(--unknown) * 1%), #d99727 calc(var(--unknown) * 1%) calc((var(--unknown) + var(--updated)) * 1%), var(--purple) calc((var(--unknown) + var(--updated)) * 1%) 100%); }
.progress-pie::before { position: absolute; inset: 24px; border-radius: 50%; background: #fffdf8; box-shadow: 0 0 0 1px rgba(108,74,10,.08); content: ""; }
.progress-pie span, .progress-pie small { position: relative; z-index: 1; }
.progress-pie span { color: #4b2354; font: bold 1.75rem Arial, Helvetica, sans-serif; }
.progress-pie small { color: #5f5546; font-weight: 600; }
.progress-legend { display: grid; gap: 10px; text-align: left; }
.progress-legend span { display: flex; align-items: center; gap: 8px; }
.progress-legend i { width: 13px; height: 13px; border-radius: 50%; }
.legend-unknown { background: #d4c7aa; }
.legend-updated { background: #d99727; }
.legend-known { background: var(--purple); }
.progress-selector a { min-width: 150px; padding: 11px 18px; border-radius: 8px; color: #6c5b39; font-weight: bold; text-decoration: none; }
.progress-selector a.active { color: white; background: var(--purple); box-shadow: 0 4px 10px rgba(75,35,84,.22); }
.progress-status-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: bold 1.25rem Arial, Helvetica, sans-serif; }
.progress-status-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-unknown { color: #6b5933; background: #eee4cc; }
.status-updated { color: white; background: #d99727; }
.status-known { color: white; background: var(--purple); }
.notification-option { display: flex; align-items: flex-start; gap: 12px; padding: 18px; margin: 24px 0; border: 1px solid #d8c69d; border-radius: 10px; background: #fffaf0; cursor: pointer; }
.notification-option input { margin-top: 4px; transform: scale(1.2); }
.notification-option span { display: grid; gap: 5px; }
.notification-option small { color: var(--muted); line-height: 1.5; }
.contribution-panel, .account-panel { max-width: 780px; margin: auto; }
.contribution-message { min-height: 260px !important; }
.contribution-list { display: grid; gap: 16px; }
.contribution-card { padding: 20px; border: 1px solid #d8c69d; border-left: 5px solid var(--gold); border-radius: 10px; background: white; }
.contribution-card.reviewed { opacity: .72; border-left-color: #6b8f61; }
.contribution-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.contribution-card h2 { margin: 4px 0; font-size: 1.25rem; }
.contribution-card time, .contribution-author { color: var(--muted); font-size: .84rem; }
.contribution-text { padding: 15px; margin: 14px 0; border-radius: 8px; background: #faf5e9; white-space: pre-wrap; line-height: 1.55; }

@media (max-width: 700px) {
  .site-header { align-items: center; flex-direction: column; gap: 9px; }
  .site-header nav { justify-content: center; flex-wrap: wrap; width: 100%; gap: 8px 12px; font-size: .88rem; }
  .nav-icon-link { gap: 4px; }
  .nav-icon-link svg { width: 16px; height: 16px; }
  .page-shell { width: min(100% - 18px, 1080px); margin-top: 16px; }
  .hero { padding-inline: 10px; }
  .weekdays, .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 54px; padding: 3px; border-radius: 7px; }
  .day-number { width: 22px; height: 22px; font-size: .8rem; }
  .saint-indicator { top: 61%; min-width: 24px; height: 24px; padding: 0 4px; }
  .saint-indicator-icon { font-size: .78rem; }
  .saint-count { font-size: .6rem; }
  .today-dot { right: 4px; bottom: 4px; width: 5px; height: 5px; }
  .day-details { min-height: 150px; padding: 20px 12px; }
  .calendar-saint-list { padding-inline: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .alphabet-nav { gap: 5px; }
  .alphabet-nav a, .alphabet-nav span { width: 29px; height: 29px; font-size: .86rem; }
  .saint-search { display: block; }
  .saint-search input { padding-right: 44px; }
  #search-count { position: static; display: block; margin-top: 8px; text-align: center; }
  .letter-card-body { padding-inline: 14px; }
  .directory-saint { align-items: flex-start; flex-direction: column; gap: 12px; }
  .directory-saint .button { width: 100%; text-align: center; }
  .directory-actions { width: 100%; }
  .directory-actions .button { flex: 1; width: auto; }
  .period-selector { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 4px; }
  .period-option span { min-width: 0; padding: 10px 5px; font-size: .85rem; }
  .ranking-card-header { align-items: flex-start; padding: 16px; }
  .ranking-card-header h2 { font-size: 1.2rem; }
  .ranking-card-body { padding-inline: 14px; }
  .ranking-saint { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .rank-position { width: 38px; height: 38px; font-size: 1rem; }
  .ranking-meta { grid-column: 2; align-items: stretch; min-width: 0; }
  .ranking-meta .button { text-align: center; }
  .ranking-buttons { width: 100%; }
  .ranking-buttons .button { flex: 1; }
  .progress-summary { flex-direction: column; }
  .progress-selector { grid-template-columns: 1fr; }
  .progress-selector a { min-width: 0; padding: 10px 7px; font-size: .82rem; }
  .gallery-thumbnail { height: 120px; }
  .contribution-card header { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .article-actions { display: none; }
  body { background: white; }
  .page-shell { width: 100%; margin: 0; }
  .article { max-width: none; padding: 0; border: 0; box-shadow: none; }
}
