/* Xyncema File — ink navy on paper, stamp red reserved for the refusals. Documents read as a stacked list of
   small forms, because that is what they are; the summary panel is the only thing that raises its voice. */

[data-theme="documents"] body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.df-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.df-muted { color: var(--muted); }
.df-h1, .df-h2, .df-h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
.df-h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); }
.df-h2 { font-size: clamp(1.5rem, 1.28rem + 1.3vw, 2.15rem); }
.df-h3 { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); }
.df-h4 { font: 600 0.975rem/1.35 var(--font-body); margin: 0; }
.df-h2 a, .df-h3 a { color: inherit; text-decoration: none; }
.df-h2 a:hover, .df-h3 a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.df-eyebrow { display: inline-block; font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.85rem; }
.df-lead { font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1rem); line-height: 1.75; color: var(--muted); }

/* ---------- Header ---------- */
.df-notice { background: var(--surface-2); color: var(--on-surface-2); font-size: 0.8125rem; line-height: 1.45; padding: 0.5rem 0; }
.df-notice p { margin: 0; }
.df-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 243, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.df-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.df-logo { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; color: var(--text); margin-right: auto; }
.df-logo svg { width: 1.45rem; height: 1.45rem; color: var(--primary); align-self: center; }
.df-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: -0.03em; }
.df-logo small { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.df-nav { display: flex; gap: 1.3rem; }
.df-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.df-nav a:hover, .df-nav a[aria-current="page"] { border-bottom-color: var(--primary); }
.df-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; padding: 0.6rem; color: var(--text); cursor: pointer; }
.df-toggle svg { width: 100%; height: 100%; }
.df-mobile { display: none; flex-direction: column; padding-bottom: 1rem; }
.df-mobile a { padding: 0.85rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.df-mobile[data-open] { display: flex; }
@media (max-width: 1020px) { .df-nav, .df-header .df-btn { display: none; } .df-toggle { display: block; } }

/* ---------- Buttons ---------- */
.df-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.3rem; border-radius: var(--radius-btn); border: 1.5px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 600 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.df-btn:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.df-btn--line { background: var(--surface); color: var(--primary); }
.df-btn--line:hover { background: #E7EDF5; }
.df-btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.df-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #FFFFFF; }
.df-btn svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Sections ---------- */
.df-section { padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem); }
.df-section--pale { background: var(--surface); }
.df-section--deep { background: var(--surface-2); color: var(--on-surface-2); }
.df-section--deep .df-eyebrow { color: var(--primary-on-dark); }
.df-section--deep .df-info { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.df-section--deep .df-info p { color: #C3D2E4; }
.df-section--deep :focus-visible { outline-color: var(--primary-on-dark); }
.df-head { display: grid; gap: 0.7rem; margin-bottom: 1.9rem; max-width: 48rem; }

/* ---------- Hero ---------- */
.df-hero { position: relative; overflow: hidden; display: grid; }
.df-hero__media, .df-hero__inner { grid-area: 1 / 1; }
.df-hero__media { position: relative; min-height: min(60vh, 560px); }
.df-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.df-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 38, 0.55) 0%, rgba(14, 24, 38, 0.66) 45%, rgba(14, 24, 38, 0.94) 100%); }
.df-hero__inner { position: relative; z-index: 1; display: grid; align-content: end; padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); color: #FFFFFF; }
.df-hero .df-eyebrow { color: #E8A797; }
.df-hero h1 { max-width: 17ch; }
.df-hero__copy { max-width: 56ch; line-height: 1.75; margin: 1.1rem 0 1.6rem; color: #D2DBE6; }
.df-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Checklist ---------- */
.df-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.df-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 2.4vw, 1.7rem); }
.df-form { display: grid; gap: 1.8rem; }
.df-set { border: 0; margin: 0; padding: 0; min-width: 0; min-inline-size: 0; }
.df-set > legend { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); padding: 0; margin-bottom: 0.85rem; }
.df-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.df-chips label { position: relative; }
.df-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.df-chips span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.05rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 0.9375rem; cursor: pointer; }
.df-chips label:has(input:checked) span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.df-chips label:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 2px; }

.df-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.df-doc { padding: 0.9rem 1rem; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); background: var(--bg); display: grid; gap: 0.5rem; }
.df-doc.is-ok { border-left-color: var(--primary); }
.df-doc.is-tight { border-left-color: #B07C10; background: #FBF6E9; }
.df-doc.is-missing { border-left-color: var(--muted); }
.df-doc.is-expired { border-left-color: var(--secondary); background: #FBEFEC; }
.df-doc__head { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: baseline; justify-content: space-between; }
.df-doc__what { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.df-doc__controls { max-width: 22rem; }
.df-state { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 2px; background: #E6E3DB; color: var(--muted); }
.df-state.is-ok { background: #E1E9F2; color: var(--primary); }
.df-state.is-tight { background: #F6EBCF; color: #7A5504; }
.df-state.is-expired { background: var(--secondary); color: var(--on-secondary); }
.df-why { margin: 0; font-size: 0.9rem; line-height: 1.65; }
.df-doc.is-expired .df-why { color: #8C2E19; font-weight: 500; }
.df-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }

/* ---------- Summary ---------- */
.df-sum { position: sticky; top: 6rem; display: grid; gap: 1.1rem; }
.df-tally { margin: 0; font-size: 0.95rem; color: var(--muted); }
.df-tally b { color: var(--text); font-size: 1.15rem; }
.df-bar { height: 8px; border-radius: 4px; background: #E6E3DB; overflow: hidden; }
.df-bar span { display: block; height: 100%; background: var(--primary); }
.df-block { padding: 0.9rem 1rem; border-radius: var(--radius); background: #FBEFEC; border-left: 3px solid var(--secondary); }
.df-block h4 { color: #8C2E19; }
.df-block ul { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.88rem; line-height: 1.55; }
.df-good { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius); background: #E7EEF6; border-left: 3px solid var(--primary); font-size: 0.9rem; line-height: 1.65; }
.df-earliest { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.df-earliest__date { margin: 0.5rem 0 0.5rem; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.df-earliest__why { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }
.df-fee { margin: 0; display: grid; gap: 0.35rem; }
.df-fee > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.df-fee dt { color: var(--muted); margin: 0; }
.df-fee dd { margin: 0; font-weight: 600; }
.df-ok { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 1.1rem; font-weight: 700; color: var(--primary); }
.df-ok svg { flex: none; width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.df-lines { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.df-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.df-lines li b { color: var(--primary); font-weight: 600; }

/* ---------- Content blocks ---------- */
.df-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.df-info { padding: 1.15rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.df-section--pale .df-info { background: var(--bg); }
.df-info p { margin: 0.45rem 0 0; color: var(--muted); line-height: 1.7; font-size: 0.9375rem; }
.df-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 52rem; }
.df-list li { display: flex; gap: 0.6rem; line-height: 1.7; }
.df-list li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.68rem; border-radius: 50%; background: var(--primary); }
.df-faq { display: grid; gap: 0.5rem; max-width: 54rem; }
.df-faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.df-section--pale .df-faq details { background: var(--bg); }
.df-faq summary { padding: 1rem 1.15rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.df-faq summary::-webkit-details-marker { display: none; }
.df-faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.df-faq details[open] summary::after { content: "\2212"; }
.df-faq p { margin: 0; padding: 0 1.15rem 1.15rem; color: var(--muted); line-height: 1.75; }

/* ---------- Cards, table ---------- */
.df-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.df-pc { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.df-section--pale .df-pc { background: var(--bg); }
.df-pc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.df-pc__body { padding: 1.05rem 1.15rem 1.2rem; display: grid; gap: 0.45rem; align-content: start; }
.df-pc__body p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9375rem; }
.df-pc__meta { font-size: 0.8rem !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary) !important; }
.df-tablewrap { overflow-x: auto; padding-bottom: 0.4rem; }
.df-table { width: 100%; min-width: 36rem; border-collapse: collapse; }
.df-table th, .df-table td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.df-table thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.df-table tbody th { font-weight: 600; }

/* ---------- Collection & detail ---------- */
.df-pagehead { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.df-dhead { padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2rem, 3.5vw, 3.25rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.df-crumb { margin: 0 0 1.4rem; font-size: 0.85rem; color: var(--muted); }
.df-crumb a { color: var(--muted); }
.df-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.df-dgrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.df-dmeta { margin: 1rem 0 0; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--primary); }
.df-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.df-thumb { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; }
.df-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.df-thumb:hover img { opacity: 0.85; }

/* ---------- Footer ---------- */
.df-footer { background: var(--surface-2); color: var(--on-surface-2); padding-block: clamp(2.5rem, 4vw, 3.75rem) 2rem; }
.df-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
.df-footer .df-logo { color: var(--on-surface-2); }
.df-footer .df-logo svg { color: var(--primary-on-dark); }
.df-footer .df-logo small { color: #A0AFC2; }
.df-footer__grid p { margin: 0.7rem 0 0; color: #BCCADA; line-height: 1.6; font-size: 0.9375rem; max-width: 32ch; }
.df-footer h3 { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-on-dark); margin: 0 0 0.9rem; }
.df-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.df-footer a { color: var(--on-surface-2); text-decoration: none; font-size: 0.9375rem; }
.df-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.df-footer__note { margin: 2.5rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #A0AFC2; font-size: 0.85rem; line-height: 1.65; }
.df-footer .xy-attribution, .df-footer .xy-attribution a { color: #A0AFC2; }
.df-footer :focus-visible { outline-color: var(--primary-on-dark); }

/* ---------- Narrow ---------- */
@media (max-width: 1000px) {
  .df-grid2 { grid-template-columns: minmax(0, 1fr); }
  .df-sum { position: static; }
  .df-dgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .df-wrap { width: min(100% - 1.75rem, 76rem); } }
