/* Final visual system. Image frames have a definite ratio; no min-height gaps. */
:root {
  --surface-stone: #f0eee6;
  --accent-line: #d8c8a8;
  --focus-ring: #326d5c;
}
h1, h2 { letter-spacing: -.025em; text-wrap: pretty; }
.home-hero-copy h1 { letter-spacing: -.035em; }
.icon { stroke-width: 1.65; }
.back { align-items: center; gap: 8px; }
.back .icon { width: 17px; height: 17px; }
.button, button.primary, button.secondary, .card-save { box-shadow: 0 1px 2px rgba(10,38,32,.04); }
.button.light { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(0,0,0,.06); }
.button:active, button.primary:active, button.secondary:active { transform: translateY(0); }
.button.secondary:hover, button.secondary:hover { background: #eef2eb; }
input, select, textarea { accent-color: var(--pine-700); }
input:focus, select:focus, textarea:focus { border-color: var(--focus-ring); }
.private-service-note > .icon, .private-note-icon { width: 14px; height: 14px; color: var(--gold); flex: none; }
.cta-arrow { width: 18px; height: 18px; flex: none; vertical-align: -.2em; }

/* Fill definite frames rather than resolving 100% against only a min-height. */
.home-hero-visual > picture,
.editorial-photo > picture,
.trust-story-photo > picture,
.guide-promo figure > picture,
.page-hero-visual > picture,
.record-hero > figure > picture,
.auth-photo > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
:is(.home-hero-visual,.editorial-photo,.trust-story-photo,.page-hero-visual,.auth-photo) > picture > img,
.guide-promo figure > picture > img,
.record-hero > figure > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-picture img { object-position: 80% center; }
.editorial-photo, .trust-story-photo {
  min-height: 0;
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  align-self: center;
  background: var(--surface-stone);
  box-shadow: var(--shadow-soft);
}
.trust-story { gap: 54px; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.editorial-split { gap: 54px; }
.trust-story-photo img, .editorial-photo img { object-position: center; }
.guide-promo { gap: 32px; align-items: center; padding: 28px; }
.guide-promo-copy { padding: 24px 8px 24px 20px; }
.guide-promo figure {
  min-height: 0;
  height: auto;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-stone);
}
.guide-promo img { object-position: center; }
.page-hero-visual { min-height: 0; aspect-ratio: 16 / 9; align-self: center; background: var(--surface-stone); }
.record-hero > figure { min-height: 0; height: auto; aspect-ratio: 16 / 9; width: 100%; background: var(--surface-stone); box-shadow: var(--shadow-soft); }
.auth-photo { min-height: 0; height: auto; aspect-ratio: 16 / 11; width: 100%; background: var(--surface-stone); }
.auth-photo img { object-position: 42% center; }
.auth-photo-copy { display: block; padding: 17px 20px; border: 1px solid rgba(255,255,255,.65); }
.auth-photo-copy p { font-size: 13px; line-height: 1.7; }
.auth-photo-copy strong { font-size: 15px; margin-bottom: 3px; }
.article-inline-photo.compact-photo img { aspect-ratio: 16 / 9; }

/* Quiet, consistent hierarchy for editorial and task pages. */
.source-layers > div { grid-template-columns: 28px minmax(125px,.85fr) minmax(0,1.5fr); gap: 14px; padding: 19px 0; }
.source-layers span { font-size: 12px; font-variant-numeric: tabular-nums; }
.source-layers strong { font-size: 13px; }
.source-layers p { font-size: 13px; line-height: 1.75; }
.mini-points span { font-size: 12px; }
.mini-points .icon { width: 18px; height: 18px; }
.feature-num { font-size: 12px; }
.feature-card p { font-size: 14px; line-height: 1.9; }
.feature-icon { border-radius: 14px; background: rgba(230,214,180,.05); }
.trust-strip .icon { width: 25px; height: 25px; }
.trust-strip { border-color: #d9ded5; box-shadow: 0 5px 22px rgba(9,38,31,.035); }
.info-heading > span, .panel-heading > span { border-radius: 12px; }
.price strong, .result-side strong, .deadline-summary, .stat-card strong { font-variant-numeric: tabular-nums; }
.result-card { transition: border-color .2s ease, box-shadow .2s ease; }
.result-card:hover { border-color: #9eafa3; box-shadow: 0 6px 22px rgba(9,38,31,.055); }
.result-card:focus-within { border-color: var(--pine-600); }
.tag.official { background: #edf1e8; border-color: #d6dfcc; color: #35513d; }
.card-save[aria-pressed="true"] { border-color: #adbdaf; background: #e8eee5; color: #254d39; }
.inline-feedback { border-color: #b8c8bb; background: #edf2e9; color: #2d513a; }
.plan.pro { border-color: #355e4f; box-shadow: 0 18px 45px rgba(10,38,32,.15); }
.plan-badge { border: 1px solid rgba(138,105,56,.2); }
.answer-box { background: #eff2e9; border-color: #d4dfca; }
.check-list li::before { content: none; }
.check-list .list-check { position: absolute; left: 0; top: .8em; width: 16px; height: 16px; color: var(--gold); }
.footer-trust { border-top-color: rgba(232,213,168,.2); }
.guide-body .article-conversion a.textlink { color: var(--cream); }

@media (max-width: 1120px) and (min-width: 901px) {
  .home-hero-copy { padding-inline: 34px; }
  .home-hero-copy h1 { font-size: clamp(31px,3.3vw,38px); }
  .source-layers > div { grid-template-columns: 26px minmax(0,1fr); gap: 4px 12px; }
  .source-layers p { grid-column: 2; }
}
@media (max-width: 900px) {
  .editorial-split, .trust-story { grid-template-columns: 1fr; gap: 30px; }
  .trust-story-photo, .editorial-photo { max-width: 760px; margin-inline: auto; }
  .guide-promo { gap: 24px; padding: 26px; }
  .guide-promo-copy { padding: 10px; }
  .guide-promo figure { aspect-ratio: 16 / 9; }
  .auth-photo { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .home-hero-visual { min-height: 0; height: auto; aspect-ratio: auto; }
  .hero-data-card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: 12px 16px 16px; box-shadow: none; background: var(--cream); }
  .home-hero-visual > picture { position: relative; inset: auto; height: auto; }
  .home-hero-visual > picture > img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
  .home-hero-visual::after { display: none; }
  .home-hero-visual { background: var(--sage-50); }
  .trust-strip { margin-top: 0; }
  .trust-story, .editorial-split { gap: 26px; }
  .source-layers > div { grid-template-columns: 25px minmax(0,1fr); gap: 4px 12px; padding: 16px 0; }
  .source-layers strong { font-size: 14px; }
  .source-layers p { grid-column: 2; font-size: 13px; }
  .trust-story-photo, .editorial-photo { border-radius: 16px; }
  .guide-promo { width: calc(100% - 32px); padding: 22px; gap: 22px; margin-bottom: 50px; }
  .guide-promo-copy { padding: 0; }
  .guide-promo figure { border-radius: 12px; }
  .page-hero-visual { border-radius: 16px; }
  .record-hero > figure { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .auth-photo { height: auto; min-height: 0; aspect-ratio: auto; }
  .auth-photo > picture { position: relative; inset: auto; height: auto; }
  .auth-photo > picture > img { height: auto; aspect-ratio: 16 / 9; }
  .auth-photo-copy { position: relative; inset: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 17px; background: var(--cream); }
  .auth-photo-copy strong { font-size: 14px; }
  .auth-photo-copy p { font-size: 13px; }
  .page-hero-visual picture[data-photo="search"] img { object-position: 24% center; }
  .page-hero-visual picture[data-photo="membership"] img { object-position: 42% center; }
  .feature-icon { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; }
}
