/* Codex design pass, 2026-10-26. Shared public polish; church layout rules are scoped. */
:root {
  --warm: #dfbd83;
  --warm-light: #f5ead8;
  --warm-border: rgba(223, 189, 131, .22);
  --warm-soft: rgba(223, 189, 131, .065);
}
body { background: radial-gradient(ellipse at 85% 0, rgba(184, 136, 74, .075), transparent 38rem), var(--bg); }
[hidden]:not([hidden="until-found"]) { display: none !important; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.btn-secondary { background: var(--surface-soft); border: 1px solid var(--warm-border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--warm); }
.quiet-divider { display: flex; align-items: center; justify-content: center; gap: .85rem; margin: 2.25rem 0; color: var(--warm); }
.quiet-divider-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--warm-border)); }
.quiet-divider-line:last-child { transform: rotate(180deg); }
.quiet-divider svg { width: 36px; height: 25px; flex: none; opacity: .8; }
.quiet-divider-label { font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; color: #b7aa97; }
.church-page .pub-wrap, .directory-page .pub-wrap { max-width: 1160px; padding-inline: clamp(1rem, 3vw, 2rem); }
.church-page .pub-wrap > *, .directory-page .pub-wrap > * { min-width: 0; }
.church-page h1, .directory-page h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; color: var(--warm-light); overflow-wrap: anywhere; text-wrap: balance; }
.directory-eyebrow { display: block; margin: .75rem 0 .65rem; font-size: .69rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--warm); }
.directory-page .biserici-desc { max-width: 48rem; line-height: 1.8; margin: .8rem 0 1.4rem; }
.directory-page .biserici-form { padding: 1rem; background: linear-gradient(120deg, var(--warm-soft), rgba(17, 29, 46, .7)); border: 1px solid var(--warm-border); border-radius: 1rem; gap: .65rem; }
.directory-page .biserici-form :is(input, select, button) { min-height: 44px; }
.directory-page .biserici-search { min-width: min(100%, 15rem); padding: .75rem .9rem; }
.directory-page .biserici-judet-select { max-width: 100%; }
.directory-page .judete-grid { gap: .4rem; }
.directory-page .judete-grid .pill { padding: .35rem .7rem; }
.directory-page .section-title { border-bottom-color: var(--warm-border); }
.directory-page .church-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.directory-page .church-card { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 1rem; background: linear-gradient(155deg, #182334, #111c2b); border-color: rgba(185, 169, 141, .17); box-shadow: 0 8px 28px rgba(0, 0, 0, .12); transition: border-color .22s, box-shadow .22s, transform .22s; }
.church-card-media { display: grid; place-items: center; width: 100%; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at center, rgba(223, 189, 131, .09), transparent 75%), #101a29; color: var(--warm); }
.church-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.church-card-media svg { width: 66px; height: 66px; opacity: .5; }
.directory-page .church-card-main { padding: 1.1rem 1.15rem .75rem; gap: .5rem; flex: 1; }
.directory-page .church-name { white-space: normal; overflow: visible; font-size: 1.1rem; line-height: 1.45; overflow-wrap: anywhere; color: var(--warm-light); }
.directory-page .church-judet { color: #a4b0c0; font-size: .8rem; }
.directory-page .church-card-meta { margin: 0 1.15rem; padding: .8rem 0 1rem; justify-content: space-between; border-top: 1px solid var(--warm-border); gap: .6rem; }
.church-detail { font-size: .74rem; color: #c0b397; text-decoration: none; }
.directory-page .church-card-meta .pill { font-size: .7rem; }
.directory-page .pagination-btn { min-width: 42px; height: 42px; }
.church-page .profil-hero { display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: none; margin: 1.3rem 0 2rem; border: 1px solid var(--warm-border); border-radius: 1.25rem; background: radial-gradient(ellipse at center, rgba(223, 189, 131, .09), transparent 80%), #101927; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.church-page .profil-hero img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.church-page .profil-hero-credit { pointer-events: auto; max-width: calc(100% - 1.5rem); white-space: normal; border-radius: .5rem; }
.church-page .profil-title-row { align-items: baseline; gap: .75rem; }
.church-page .profil-meta { margin-top: .7rem; line-height: 1.75; }
.church-page .profil-descriere { max-width: 76ch; color: #cbd3de; line-height: 1.85; }
.church-page .profil-descriere p { line-height: inherit; }
.church-page .profil-info-card { background: linear-gradient(125deg, var(--warm-soft), var(--surface) 70%); border-color: var(--warm-border); }
.church-page .profil-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.church-page .profil-info-item { min-width: 0; overflow-wrap: anywhere; }
.church-page .profil-info-label { color: #bfae91; }
.church-page .profil-nearby-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: .7rem; }
.church-page .profil-nearby-item { min-width: 0; overflow-wrap: anywhere; padding: 1rem; }
.church-page .profil-cta { background: radial-gradient(ellipse at top, rgba(223, 189, 131, .12), transparent 80%), var(--surface); border-color: var(--warm-border); }
.church-page .profil-cta h3 { color: var(--warm-light); }
.church-page .profil-cta-split > *, .church-page .profil-shop-grid > * { min-width: 0; }
.church-page .profil-pilgrimages a { min-width: 0; }
.church-page .profil-pil-body strong { overflow-wrap: anywhere; }
.church-page .profil-pil-body span { white-space: normal; }
.gd-activation { display: grid; gap: .6rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--warm-border); border-radius: .85rem; background: var(--warm-soft); }
.gd-activation label { color: var(--warm-light); font-weight: 600; font-size: .9rem; }
.gd-activation input { width: min(100%, 17rem); min-height: 44px; padding: .65rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: .5rem; color: var(--text); color-scheme: dark; font: inherit; }
.gd-activation p { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.gd-scheduled { border: 1px solid var(--warm-border); border-radius: 1rem; background: linear-gradient(125deg, var(--warm-soft), var(--surface)); padding: 1.25rem; margin: 1rem 0; }
.gd-scheduled-label { color: var(--warm); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.gd-scheduled h2 { font-size: 1.6rem; margin: .5rem 0; color: var(--warm-light); }
.gd-scheduled p { font-size: .88rem; color: var(--muted); line-height: 1.8; margin: .5rem 0 0; }
.gd-scheduled strong { color: var(--text); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .directory-page .church-card:hover, .directory-page .church-card:focus-within { transform: translateY(-3px); border-color: rgba(223, 189, 131, .48); box-shadow: 0 15px 35px rgba(0, 0, 0, .22); }
  .directory-page .church-card:hover .church-card-media img { transform: scale(1.035); }
}
@media (max-width: 960px) { .directory-page .church-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .gd-head { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .gd-head .gd-dep { grid-column: 1 / -1; margin: .4rem 0 0; justify-content: space-between; }
  .directory-page .church-list { grid-template-columns: 1fr; gap: 1rem; }
  .directory-page .biserici-form :is(input, select) { width: 100%; flex-basis: 100%; }
  .directory-page .biserici-form button { flex: 1; }
  .church-page .profil-hero { aspect-ratio: 4 / 3; border-radius: .85rem; }
  .church-page .profil-info-grid { grid-template-columns: minmax(0, 1fr); }
  .church-page .profil-managed { flex-wrap: wrap; }
  .church-page .profil-pil-img { width: 70px; height: 70px; }
  .church-page .profil-shop-head { flex-wrap: wrap; }
  .quiet-divider { gap: .6rem; margin: 1.75rem 0; }
  .quiet-divider-label { letter-spacing: .06em; font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-page .church-card, .church-card-media img, .church-page .profil-shop-media img { transition: none; transform: none; }
}
