/* Preview-only addition (not in Grok's compiled CSS), approved by Mickey 2026-09-27:
   underline in-text links. Nav, buttons, program rows, location cards, crumbs and footer link row all carry
   classes, so they keep Grok's style; only unclassed links in body copy and footer text are underlined. */
a:not([class]){text-decoration-line:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
a:not([class]):hover{color:var(--color-ink)}

/* Contact page (v12.2.5): HubSpot form fields dark with white text to match the site, visible focus.
   These cover a non-iframe render; the iframe render gets the same rules from the onFormReady script in contact.html. */
#gcas-hubspot-form input[type="text"], #gcas-hubspot-form input[type="email"], #gcas-hubspot-form input[type="tel"], #gcas-hubspot-form input[type="number"],
#gcas-hubspot-form select, #gcas-hubspot-form textarea, #gcas-hubspot-form .hs-input {
  background-color: #000000 !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 1px solid #a3a3a3 !important;
}
#gcas-hubspot-form select { padding-top: 0 !important; padding-bottom: 0 !important; }
#gcas-hubspot-form select option { background-color: #000000; color: #ffffff; }
#gcas-hubspot-form .hs-input::placeholder { color: #a3a3a3 !important; -webkit-text-fill-color: #a3a3a3 !important; opacity: 1; }
#gcas-hubspot-form input:focus, #gcas-hubspot-form select:focus, #gcas-hubspot-form textarea:focus, #gcas-hubspot-form .hs-input:focus {
  outline: 2px solid #ffffff !important; outline-offset: -4px !important; border-color: #ffffff !important; box-shadow: none !important;
}
#gcas-hubspot-form .hs-button:focus-visible, #gcas-hubspot-form input[type="submit"]:focus-visible { outline: 2px solid #ffffff !important; outline-offset: -4px !important; }
/* Contact page: HubSpot form labels and title in white */
#gcas-hubspot-form label, #gcas-hubspot-form label span:not(.hs-form-required), #gcas-hubspot-form legend,
#gcas-hubspot-form h1, #gcas-hubspot-form h2, #gcas-hubspot-form h3, #gcas-hubspot-form .hs-richtext, #gcas-hubspot-form .hs-richtext * {
  color: #ffffff !important;
}
#gcas-hubspot-form, #gcas-hubspot-form p, #gcas-hubspot-form h4, #gcas-hubspot-form .hs-field-desc,
#gcas-hubspot-form .legal-consent-container, #gcas-hubspot-form .legal-consent-container * { color: #ffffff !important; }

/* ATP CTP FAQ block */
#faq details { border-bottom: 1px solid var(--color-line, rgba(255,255,255,.15)); padding: 1rem 0; }
#faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary span[aria-hidden] { font-size: 1.5rem; line-height: 1; transition: transform .2s; }
#faq details[open] summary span[aria-hidden] { transform: rotate(45deg); }
#faq details > div { margin-top: .75rem; }

/* v11 must-fix pass: in-page anchors (locations.html#sanford, #orlando, ...) landed under the fixed header */
main [id] { scroll-margin-top: 6rem; }

/* v12.2: ATP CTP schedule sheets are taller (were 160/280 px); shorter on phones so the page still scrolls */
iframe.gcas-schedule-frame { height: 640px; }
@media (max-width: 640px) { iframe.gcas-schedule-frame { height: 75vh; min-height: 480px; } }
/* v12.2: "See dates" button pinned under the fixed header on the ATP CTP page */
.gcas-see-dates { position: sticky; top: 5rem; z-index: 30; display: flex; justify-content: flex-end; margin-bottom: 1rem; pointer-events: none; }
.gcas-see-dates a { pointer-events: auto; }

/* v12.2.6: SpouseWorks page images. Logo on a white rounded badge so the navy text reads on black;
   intro text and couple photo side by side on desktop (>=768px), stacked on mobile. */
.gcas-sw-badge { display: inline-block; background: #ffffff; border-radius: .75rem; padding: .75rem 1.25rem; }
.gcas-sw-badge img { display: block; width: 245px; max-width: 100%; height: auto; }
.gcas-sw-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: 0 2.5rem; align-items: start; }
.gcas-sw-photo { margin: 1.5rem 0 0; }
.gcas-sw-frame { background: #ffffff; border-radius: 1rem; overflow: hidden; border: 1px solid var(--color-line, rgba(255,255,255,.15)); }
.gcas-sw-frame img { height: auto; }
@media (min-width: 768px) { .gcas-sw-intro { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* v12.2.7: Foreign pilot process matrix (foreign-pilot-matrix.html). Native HTML rebuild of the old PDF flowchart:
   numbered step cards with Yes/No branches, then a table that stacks into cards on phones. */
.fpm-key { display: inline-block; border: 1px solid var(--color-ink); padding: .6rem 1rem; font-size: .95rem; color: var(--color-ink); }
.fpm-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.fpm-step { border: 1px solid var(--color-line); background: var(--color-surface); padding: 1.25rem 1.25rem 1.5rem; }
.fpm-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--color-ink); font-weight: 600; margin-right: .6rem; flex: none; }
.fpm-q { display: flex; align-items: flex-start; font-size: 1.2rem; line-height: 1.4; color: var(--color-ink); font-weight: 600; }
.fpm-branches { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .fpm-branches { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.fpm-branch { border-left: 3px solid var(--color-ink-soft); padding: .25rem 0 .25rem 1rem; color: var(--color-ink-soft); }
.fpm-branch > * + * { margin-top: .75rem; }
.fpm-tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .2rem .6rem; border: 1px solid currentColor; }
.fpm-yes { border-left-color: #6fbf73; } .fpm-yes .fpm-tag { color: #8fd694; }
.fpm-no { border-left-color: #f08a4b; } .fpm-no .fpm-tag { color: #f5a06b; }
.fpm-box { border: 1px solid var(--color-line); background: var(--color-paper); padding: .9rem 1rem; }
.fpm-box-title { color: var(--color-ink); font-weight: 600; }
.fpm-sub { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
@media (min-width: 768px) { .fpm-sub-2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.fpm-go { display: block; border: 1px solid var(--color-ink); padding: .9rem 1rem; color: var(--color-ink); font-weight: 600; }
.fpm-rev { margin-top: 1rem; font-size: .8rem; letter-spacing: .08em; color: var(--color-ink-soft); text-align: right; }
.fpm abbr { text-decoration: none; background: #fff200; color: #000; padding: 0 .15em; font-weight: 600; cursor: help; }
.fpm u { text-underline-offset: .15em; }
.fpm-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .975rem; }
.fpm-table th, .fpm-table td { border: 1px solid var(--color-line); padding: 1rem; vertical-align: top; text-align: left; }
.fpm-table thead th { background: var(--color-surface); color: var(--color-ink); font-weight: 600; font-size: 1.05rem; width: 33.33%; }
.fpm-table td { color: var(--color-ink-soft); }
.fpm-table td > p + p { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--color-line); }
@media (max-width: 767px) {
  .fpm-table, .fpm-table tbody, .fpm-table tr, .fpm-table td { display: block; width: 100%; }
  .fpm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fpm-table td { border-top: 0; }
  .fpm-table td:first-child { border-top: 1px solid var(--color-line); }
  .fpm-table td + td { margin-top: 1rem; border-top: 1px solid var(--color-line); }
  .fpm-table td::before { content: attr(data-label); display: block; color: var(--color-ink); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; }
}
.fpm-notes { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .fpm-notes { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.fpm-note { border: 1px solid #f2c14e; padding: 1rem 1.25rem; color: var(--color-ink); }
.fpm-note-title { font-weight: 600; font-size: 1.2rem; letter-spacing: .08em; text-align: center; }
.fpm-refs { border: 1px solid var(--color-line); background: var(--color-surface); padding: 1rem 1.25rem; color: var(--color-ink-soft); }
.fpm-refs ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.fpm-refs li + li { margin-top: .6rem; }
.fpm-refs a { word-break: break-word; }
