/* Raritan page layer: the dealt kit remains unmodified. */
[hidden] { display: none !important; }
body { background: var(--p-bg); }
main { overflow: clip; }
p, li, dd { text-wrap: pretty; }
a { overflow-wrap: break-word; }
.prose, .document-grid p, .article-record__abstract { max-width: 62ch; }
.prose p { margin: 0 0 var(--s-4); }
.hero__kicker { margin: 0 0 var(--s-4); font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.hero--photo .hero__text { box-shadow: none; }
.hero--photo .hero__lead { max-width: 34ch; }
.hero--photo .btn-row { margin-top: var(--s-6); }
.develop, .photo-frame { position: relative; margin: 0; height: min(560px, var(--ly-fit)); overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.develop > img, .photo-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fact-list { margin: 0 0 var(--s-6); }
.fact-list > div { display: grid; grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.fact-list > div:last-child { border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: var(--t-small); font-weight: 500; }
.fact-list dd { margin: 0; line-height: 1.55; }
.numbered-list, .check-list { margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.numbered-list { counter-reset: item; }
.numbered-list > li { position: relative; padding: var(--s-4) 0 var(--s-4) var(--s-7); border-top: 1px solid var(--line); counter-increment: item; }
.numbered-list > li::before { content: counter(item); position: absolute; left: 0; top: var(--s-4); font: var(--display-weight) var(--t-h3)/1 var(--font-display); color: var(--accent); }
.numbered-list h3 { margin: 0 0 var(--s-2); font-size: var(--t-card); }
.numbered-list p { margin: 0; line-height: 1.6; }
.check-list { padding-left: var(--s-5); list-style: disc; }
.check-list > li { margin-bottom: var(--s-3); padding-left: var(--s-2); line-height: 1.65; }
.check-list > li::marker { color: var(--accent); }
.action-rows a { display: block; color: inherit; text-decoration: none; }
.action-rows a .rows__name { color: var(--accent); }
.publishing-note, .status-guide, .credit-detail { padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.link-stack { display: grid; gap: var(--s-3); justify-items: start; }
#latest-results .service-state { max-width: 24ch; font-size: var(--t-h2); }
.publishing-note h3, .status-guide h3, .credit-detail h3 { margin: 0 0 var(--s-4); }
.publishing-note p, .status-guide p { line-height: 1.65; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); row-gap: var(--s-5); margin-bottom: var(--s-5); }
.document-grid article { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.document-grid h3 { margin: 0 0 var(--s-2); font-size: var(--t-card); }
.document-grid p { margin: 0; line-height: 1.55; }
.document-grid a, .prose a, .credit-list a, .check-list a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }

/* Forms and API state */
.form { column-gap: var(--s-5); row-gap: var(--s-4); }
.form h3, .form > p { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.field__hint, .form__note { margin: var(--s-1) 0 0; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.field input, .field textarea, .field select { background: color-mix(in srgb, var(--p-bg) 72%, white); }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="file"] { padding: 10px; min-height: 52px; }
.field input[type="file"]::file-selector-button { min-height: 32px; margin-right: var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 500 14px var(--font-text); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); align-items: start; }
.form-pair > .form { padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.form__status[role="alert"] { color: var(--error); font-weight: 500; }
.captcha-field { margin: 0; }
.captcha-field[data-provider="none"] { display: none; }
.service-note, .local-notice { padding: var(--s-3) var(--s-4); border-left: 2px solid var(--accent); background: var(--surface); line-height: 1.55; }
.service-state { margin: 0; padding: var(--s-7) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: var(--display-weight) var(--t-h3)/1.35 var(--font-display); }
.error-state { color: var(--error); }

/* API-supplied articles and browser controls */
.article-list { display: grid; }
.article-record { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.article-record:last-child { border-bottom: 1px solid var(--line); }
.article-record h3 { margin: 0 0 var(--s-2); font-size: var(--t-h3); overflow-wrap: anywhere; }
.article-record__authors { margin: 0 0 var(--s-2); font-weight: 500; }
.article-record__meta { margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--t-small); }
.article-record__abstract { margin: 0 0 var(--s-3); line-height: 1.6; white-space: pre-line; }
.article-record__keywords { margin: 0; color: var(--muted); font-size: var(--t-small); }
.browser-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s-4); align-items: end; margin-bottom: var(--s-4); }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: end; max-width: 840px; margin-bottom: var(--s-4); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }
.archive-results, .search-results { margin-top: var(--s-5); }
.credential-receipt, .tracker-result, .confirmation-panel { margin-top: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.credential-receipt h3, .tracker-result h3, .confirmation-panel h3 { margin-top: 0; }
.credential-list { margin: var(--s-5) 0; }
.credential-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.credential-list dt { color: var(--muted); }
.credential-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.workflow-steps li { padding: var(--s-3) 0; border-top: 2px solid var(--line); color: var(--muted); }
.workflow-steps li[data-current] { border-color: var(--accent); color: var(--ink); font-weight: 500; }
.paper-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin: 0 0 var(--s-5); }
.paper-summary div { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.paper-summary dt { color: var(--muted); font-size: var(--t-small); }
.paper-summary dd { margin: var(--s-1) 0 0; }
.proof-panel { margin-top: var(--s-8); }
.proof-object { height: 620px; margin: var(--s-5) 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.proof-object object { display: block; width: 100%; height: 100%; border: 0; }
.office-address { margin: 0 0 var(--s-5); font-style: normal; line-height: 1.7; }
.contact-list { margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { color: var(--accent); }
.credit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-8); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.credit-list li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.credit-list h3 { margin: 0 0 var(--s-2); font-size: var(--t-card); }
.credit-list p { margin: 0; line-height: 1.6; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--photo h1 { font-size: clamp(48px, 5.4vw, 64px); }
  .hero--photo .hero__text { padding: var(--s-6); }
}
@media (min-width: 640px) and (max-width: 1279px) {
  footer.closing > .wrap { row-gap: var(--s-6); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #scope { --h: 2; }
  #scope > .wrap { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  #scope > .wrap > * { min-height: 0; align-self: start; }
  #scope .develop { height: 600px; aspect-ratio: auto; margin-top: 0; }
}
@media (max-width: 1023px) {
  .develop, .photo-frame { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); }
  .form-pair { grid-template-columns: minmax(0, 1fr); }
  .form-pair > .form + .form { margin-top: var(--s-6); }
  .section--document, .section--form, .section--browser { height: auto; min-height: calc(var(--h, 1) * 100svh); }
  .proof-object { height: 560px; }
}
@media (max-width: 639px) {
  .hero--photo { --photo: 36svh; }
  .hero--photo h1 { max-width: 15ch; font-size: 38px; line-height: 1.04; }
  .hero--photo .hero__lead { font-size: 17px; line-height: 1.55; }
  .hero__kicker { line-height: 1.45; }
  .section--document, .section--form, .section--browser { min-height: 100lvh; }
  .document-grid, .credit-list { grid-template-columns: minmax(0, 1fr); }
  .document-grid { row-gap: var(--s-5); }
  .fact-list > div { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .browser-controls, .search-form { grid-template-columns: minmax(0, 1fr); }
  .browser-controls .btn, .search-form .btn { width: 100%; }
  .credential-receipt, .tracker-result, .confirmation-panel { padding: var(--s-4); }
  .credential-list > div, .paper-summary { grid-template-columns: minmax(0, 1fr); }
  .credential-list > div { gap: var(--s-2); }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proof-object { height: 500px; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .close__media[data-moment] { min-height: 220px; }
}
@media (max-width: 359px) {
  .hero--photo { --photo: 30svh; }
  .hero--photo h1 { font-size: 34px; }
  .hero--photo .hero__lead { font-size: 16px; }
  .btn { padding-inline: var(--s-4); }
  .fact-list > div { padding-block: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  .develop, .photo-frame, .close__media { transform: none !important; }
  .proof-object { scroll-behavior: auto; }
}



/* Taste-gate finish: shared split lines, sufficient imagery and quiet mobile rhythm. */
.publishing-note__image, .latest-results__image { height: 260px; margin: 0 0 var(--s-5); aspect-ratio: auto; width: 100%; }
@media (min-width: 1024px) {
  #scope { margin-top: 0; }
}
@media (max-width: 639px) {
  #review { height: calc(2 * 100svh); margin-bottom: 0; }
  #latest .grid > * { grid-column: 1 / -1; }
  .closing__cta .btn { transition: none !important; }
  .publishing-note__image, .latest-results__image { height: 220px; }
  .footer__legal { display: grid; gap: var(--s-3); }
  .footer__legal > span { display: block; }
  .footer__legal > span > a { display: block !important; width: max-content !important; margin-left: 0 !important; }
  .footer__legal a { margin-left: 0; }
}

