@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/lato-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/lato-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('./fonts/lato-black.ttf') format('truetype');
}

:root {
    color-scheme: light;
    --paper: #faf9f6;
    --forest: #194f43;
    --ink: #29463b;
    --sage: #657e60;
    --muted: #68766c;
    --line: #dce2d6;
    --wash: #f0f2eb;
    --mint: #edf3ee;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Lato', Arial, sans-serif; line-height: 1.65; }
body.bg-white { background-color: var(--paper); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.035em; line-height: 1.2; }
h1, h2 { font-weight: 700; }
::selection { background: #dfeadb; color: var(--forest); }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
input:not([type='checkbox']):not([type='radio']), select, textarea { min-height: 46px; border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--forest); }
button.rounded-full, a.rounded-full { border-radius: 8px; }
.rounded-xl { border-radius: 16px; }
.rounded-lg { border-radius: 10px; }
main { min-width: 0; }

.site-container { width: min(100% - 96px, 1400px); margin-inline: auto; }
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 118px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 16px; color: var(--forest); text-decoration: none; flex-shrink: 0; }
.brand-compass { width: 44px; height: 44px; flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; }
.brand-name { font-size: 29px; line-height: 1.1; font-weight: 900; letter-spacing: -0.025em; }
.brand-tagline { font-size: 10px; line-height: 1.5; margin-top: 7px; letter-spacing: 0.2em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a:not(.button) { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-links > a:not(.button):hover { color: var(--sage); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 56px; padding: 14px 25px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.4; font-weight: 700; transition: background-color 180ms, border-color 180ms, color 180ms; cursor: pointer; }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: #286454; }
.button-outline { color: var(--ink); border-color: #ccd5c7; background: transparent; }
.button-outline:hover { background: var(--wash); border-color: var(--sage); }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 1px solid #a9b9a3; }
.text-link:hover { color: #4e7059; }
.eyebrow { color: var(--forest); font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 19px; }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line::before { content: ''; width: 28px; height: 1px; background: var(--forest); flex-shrink: 0; }

.home-hero { padding: 72px 0 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin: 30px 0 31px; color: var(--forest); font-size: clamp(48px, 4.3vw, 70px); font-weight: 700; line-height: 1.13; letter-spacing: -0.045em; }
.hero-copy h1 span { display: block; color: var(--sage); margin-top: 10px; }
.hero-description { max-width: 510px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 35px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 31px 0 0; font-size: 12px; color: var(--muted); }
.sage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.hero-image { position: relative; width: 100%; min-width: 0; margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 1.4; align-self: stretch; min-height: 430px; background: var(--wash); }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.hero-image::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(15 48 39 / 65%)); pointer-events: none; }
.image-note { position: absolute; top: 23px; right: 23px; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 8px; background: rgb(250 249 246 / 94%); color: var(--forest); font-size: 13px; line-height: 1.6; }
.image-note .brand-compass { width: 27px; height: 27px; }
.hero-image figcaption { position: absolute; z-index: 1; bottom: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: white; font-size: 13px; }
.photo-caption { display: flex; align-items: center; gap: 9px; }
.photo-credit { color: rgb(255 255 255 / 90%); text-decoration: none; font-size: 10px; letter-spacing: 0.06em; }
.photo-credit:hover { text-decoration: underline; }

.status-section { padding-bottom: 62px; }
.status-card { display: flex; align-items: center; gap: 40px; padding: 26px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.status-copy { flex: 1; }
.status-copy h2 { margin: 0 0 6px; font-size: 21px; }
.status-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.status-form { display: flex; gap: 10px; width: min(100%, 490px); }
.status-field { position: relative; flex: 1; min-width: 0; }
.status-field > i { position: absolute; left: 16px; top: 19px; font-size: 14px; color: var(--sage); }
.status-field input { width: 100%; min-height: 56px; padding: 14px 14px 14px 42px; border: 1px solid #ccd5c7; background: white; color: var(--ink); border-radius: 8px; font-size: 14px; text-transform: uppercase; }
.status-field input::placeholder { text-transform: none; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.guide-section { padding: 30px 0 85px; }
.section-heading { margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 2.7vw, 38px); }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-badge { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 8px 14px; border: 1px solid #d6e1cd; border-radius: 24px; color: #526e4d; background: #f3f6ee; font-size: 12px; }
.guide-panel { display: grid; grid-template-columns: 1.08fr 1fr; gap: 50px; padding: 38px; border: 1px solid #dce6d9; border-radius: 16px; background: var(--mint); }
.guide-intro { align-self: center; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 27px; border-radius: 11px; background: #dfeadb; color: var(--forest); font-size: 23px; }
.guide-intro h3 { max-width: 530px; margin: 0 0 22px; color: var(--forest); font-size: clamp(30px, 3vw, 43px); line-height: 1.25; }
.guide-intro > p { max-width: 520px; margin: 0; color: #657461; font-size: 16px; line-height: 1.9; }
.preparation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-top: 30px; padding-top: 27px; border-top: 1px solid #d4e0d0; }
.preparation-list .eyebrow { color: #4e7059; font-size: 10px; letter-spacing: 0.14em; margin-bottom: 12px; }
.preparation-list h4 { color: var(--forest); font-size: 16px; margin: 0 0 8px; letter-spacing: -0.01em; }
.preparation-list p { color: #657461; font-size: 13px; line-height: 1.8; margin: 0; }
.process-card { align-self: stretch; display: flex; flex-direction: column; padding: 32px; border: 1px solid #e0e5dc; border-radius: 12px; background: white; }
.process-card > .eyebrow { color: #75816e; font-size: 10px; }
.process-card > h3 { font-size: 27px; margin: 0 0 25px; }
.process-list { display: grid; gap: 25px; margin: 0 0 29px; padding: 0; list-style: none; }
.process-list li { display: flex; align-items: flex-start; gap: 16px; }
.process-number { font-size: 14px; line-height: 26px; color: var(--sage); font-weight: 700; }
.process-list h4 { margin: 0 0 7px; color: #425a43; font-size: 15px; letter-spacing: 0; }
.process-list p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.process-card .button { width: 100%; margin-top: auto; }

.essentials-section { padding: 76px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.essentials-section .section-heading { align-items: flex-end; }
.essentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 36px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcf9; }
.essential-item { padding: 0 32px; border-left: 1px solid var(--line); }
.essential-item:first-child { padding-left: 0; border-left: 0; }
.essential-item:last-child { padding-right: 0; }
.essential-item > i { color: var(--sage); font-size: 23px; margin-bottom: 19px; }
.essential-item h3 { font-size: 21px; margin: 0 0 12px; }
.essential-item p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.9; }

.site-footer, footer.bg-gray-900 { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
footer.bg-gray-900 .text-white, footer.bg-gray-900 a:hover { color: var(--forest); }
footer.bg-gray-900 .border-gray-800 { border-color: var(--line); }
.site-footer { padding: 52px 0 25px; border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-about > p { font-size: 13px; line-height: 1.9; max-width: 390px; margin: 22px 0 0; }
.footer-grid h3 { margin: 3px 0 17px; color: var(--forest); font-size: 15px; letter-spacing: 0; }
.footer-links { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--forest); text-decoration: underline; }
.footer-bottom { margin-top: 37px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; }

/* Shared editorial and application pages use the same quiet surfaces. */
.editorial-hero { height: auto; min-height: 290px; background: var(--wash); border-bottom: 1px solid var(--line); padding: 58px 0; }
.editorial-hero > div { position: static; display: block; background: transparent; width: min(100% - 64px, 1216px); margin: auto; }
.editorial-hero > div > div { text-align: left; padding: 0; }
.editorial-hero h1 { color: var(--forest); max-width: 970px; font-weight: 700; font-size: clamp(31px, 3.8vw, 49px); line-height: 1.2; margin-bottom: 22px; margin-inline: 0; }
.editorial-hero p { color: var(--muted); line-height: 1.8; margin-inline: 0; }
.editorial-hero p.uppercase { color: var(--sage); letter-spacing: 0.17em; font-size: 11px; }
.page-blog .group.shadow-lg { box-shadow: none; border: 1px solid var(--line); }
.page-blog .group.shadow-lg:hover { box-shadow: 0 6px 24px rgb(36 62 52 / 6%); }
.page-blog .group > .relative > img { opacity: 0.95; }
.transaction-header { background: var(--paper); color: var(--forest); border-bottom: 1px solid var(--line); box-shadow: none; padding: 20px 24px; }
.transaction-header > div { gap: 8px; flex-wrap: wrap; }
.transaction-home { display: inline-flex; align-items: center; gap: 10px; margin-right: 22px; color: var(--forest); text-decoration: none; font-weight: 900; font-size: 21px; }
.transaction-home .brand-compass { width: 31px; height: 31px; }
.page-application input:focus, .page-application select:focus, .page-application textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgb(101 126 96 / 15%); }
.page-application p.text-gray-400 { color: var(--muted); }
.application-preparation { min-height: 0; height: auto; background: var(--mint); gap: 25px; }
.application-preparation h2 { font-size: 24px; color: var(--forest); margin: 0 0 15px; }
.application-preparation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 17px; color: var(--muted); font-size: 14px; }
.application-preparation li { display: flex; align-items: flex-start; gap: 9px; }
.application-preparation li i { color: var(--sage); margin-top: 5px; }
.application-preparation > button { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (min-width: 1800px) {
    .site-container { width: min(100% - 192px, 1680px); }
    .nav-inner { min-height: 132px; }
    .hero-copy h1 { font-size: 82px; }
    .hero-description { max-width: 620px; font-size: 22px; }
    .hero-image { min-height: 510px; }
}

@media (max-width: 1100px) {
    .site-container { width: calc(100% - 64px); }
    .nav-links { gap: 24px; }
    .hero-grid { gap: 36px; }
    .hero-copy h1 { font-size: 50px; }
    .hero-description { font-size: 17px; }
    .hero-image { min-height: 420px; }
    .hero-actions { gap: 20px; }
    .guide-panel { gap: 30px; padding: 28px; }
    .process-card { padding: 26px; }
}

@media (max-width: 1023px) {
    .page-application aside { display: none; }
    .nav-links .nav-secondary { display: none; }
}

@media (min-width: 768px) and (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-copy h1 { font-size: 62px; }
    .hero-description { max-width: 570px; }
    .hero-image { min-height: 0; aspect-ratio: 1.6; }
    .guide-panel { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 90px; }
    .site-container { width: calc(100% - 40px); }
    .nav-inner { min-height: 86px; gap: 14px; }
    .site-brand { gap: 10px; }
    .brand-compass { width: 35px; height: 35px; }
    .brand-name { font-size: 24px; }
    .brand-tagline { font-size: 8px; letter-spacing: 0.14em; margin-top: 5px; }
    .nav-links { gap: 16px; }
    .nav-links .nav-guide { display: none; }
    .nav-links .button { min-height: 44px; padding: 10px 14px; font-size: 13px; gap: 12px; }
    .home-hero { padding: 45px 0 35px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy h1 { font-size: clamp(40px, 8.5vw, 62px); margin: 23px 0; }
    .hero-copy h1 span { margin-top: 7px; }
    .hero-description { max-width: 570px; font-size: 17px; }
    .hero-actions { margin-top: 25px; gap: 22px; }
    .hero-note { margin-top: 23px; }
    .hero-image { aspect-ratio: 1.35; min-height: 0; }
    .image-note { top: 16px; right: 16px; padding: 12px 15px; gap: 12px; font-size: 12px; }
    .hero-image figcaption { left: 18px; right: 18px; bottom: 18px; font-size: 12px; }
    .status-section { padding-bottom: 34px; }
    .status-card { flex-direction: column; align-items: stretch; gap: 21px; padding: 24px; }
    .status-form { width: 100%; }
    .status-form .button { padding-inline: 19px; }
    .guide-section { padding: 20px 0 45px; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 17px; margin-bottom: 25px; }
    .section-heading h2 { font-size: 30px; }
    .guide-panel { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
    .guide-intro h3 { font-size: 34px; }
    .feature-icon { margin-bottom: 22px; }
    .process-card { padding: 25px; }
    .essentials-section { padding: 43px 0; }
    .essentials-section .section-heading { align-items: flex-start; }
    .essentials-grid { grid-template-columns: 1fr; padding: 26px; gap: 25px; }
    .essential-item, .essential-item:first-child, .essential-item:last-child { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .essential-item:first-child { padding-top: 0; border-top: 0; }
    .essential-item > i { margin-bottom: 15px; }
    .site-footer { padding-top: 35px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-about { grid-column: 1 / -1; }
    .editorial-hero { min-height: 0; padding: 40px 0; }
    .editorial-hero > div { width: calc(100% - 40px); }
    .transaction-header { padding: 16px; }
    .transaction-header > div { font-size: 12px; }
    .transaction-home { width: 100%; margin: 0 0 4px; font-size: 20px; }
    .page-application label.text-right { text-align: left; }
    .page-application #form-footer { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
    .page-application #form-footer button { width: 100%; justify-content: center; }
    .page-application .step-indicator .label-text { width: 92px; font-size: 10px; line-height: 1.4; }
    .page-application .connector { width: clamp(32px, 12vw, 64px); }
    .page-application #tdacForm { padding-inline: 20px; }
    .page-policy footer > div > div > div.flex { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
    .site-container { width: calc(100% - 32px); }
    .nav-links .button { gap: 8px; padding-inline: 11px; font-size: 12px; }
    .hero-copy h1 { font-size: 37px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
    .status-card, .guide-panel { padding: 20px; }
    .status-form { flex-direction: column; }
    .status-form .button { width: 100%; }
    .process-card { padding: 20px; }
    .guide-intro h3 { font-size: 30px; }
    .photo-credit { max-width: 65px; text-align: right; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
    body { background: white; }
    .site-nav { position: static; }
}
