/* ============================================================================
   /owners-outside-canada/ (BACKLOG 9h, 29 Sept 2026): the /owners/ page's look
   (web/home/home.css and web/css/p-sales.css, loaded with it) and this page's own
   sections from src/p-abroad.mjs. Tokens only, so light and dark are both designed.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js :is(.ab-rules, .ab-year) .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
}
.page-abroad .hsec__eyebrow { font-size: 0.8rem; }

/* A source, beside the line it backs. */
.ab-src { font-size: 0.85rem; font-weight: 600; color: var(--heading); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent-ink) 55%, transparent); text-underline-offset: 3px; white-space: nowrap; }
.ab-src:hover { text-decoration-color: currentColor; }

/* ---- what we handle: five cards and the one to act on, never a card alone ---- */
.ab-svc__grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .ab-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-svc__grid .o-svc__cta { grid-column: auto; }
}
@media (min-width: 1100px) {
  .ab-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- the rules: six short cards, then the table ---- */
.ab-rules__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: rule; }
.ab-rules__item { counter-increment: rule; display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2.2vw, 24px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e1); }
.ab-rules__item h3 { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 700 1.1rem/1.3 var(--font-display); color: var(--heading); }
.ab-rules__item h3::before { content: counter(rule); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-line); color: #1c2326; font: 700 0.85rem/1 var(--font-text); transform: translateY(-2px); }
.ab-rules__item p { margin: 0; line-height: 1.55; color: var(--ink); }
@media (min-width: 760px) { .ab-rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ab-rules__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ab-table { margin-top: var(--s6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e1); overflow: hidden; }
.ab-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ab-table caption { padding: 16px 18px 12px; text-align: left; font: 700 1.05rem/1.3 var(--font-display); color: var(--heading); caption-side: top; }
.ab-table caption .ab-src { margin-left: 6px; font-family: var(--font-text); }
.ab-table th, .ab-table td { padding: 12px 18px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.45; overflow-wrap: anywhere; }
.ab-table thead th { font: 600 0.8rem/1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
.ab-table tbody th { font-weight: 600; color: var(--heading); }
.ab-table td { color: var(--ink); }
@media (max-width: 559px) {
  .ab-table th, .ab-table td { padding: 10px 10px; font-size: 0.9rem; }
  .ab-table thead th { font-size: 0.8rem; letter-spacing: 0.02em; }
  .ab-table caption { padding: 14px 12px 10px; }
}

.ab-rules__reads { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: var(--s5) 0 0; }
.ab-rules__reads span { font-weight: 600; color: var(--ink-soft); }
.ab-rules__reads a { display: inline-block; padding-block: 10px; font-weight: 600; color: var(--heading); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent-ink) 55%, transparent); text-underline-offset: 3px; }
.ab-note { margin: var(--s3) 0 0; max-width: 46rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }

/* ---- the year: a line down the side, a dot per date, who handles each line ---- */
.ab-year__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.ab-year__item { position: relative; display: grid; gap: 8px; padding: 0 0 var(--s5) 30px; }
.ab-year__item::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; border-left: 2px solid var(--border-strong); }
.ab-year__item:last-child { padding-bottom: 0; }
.ab-year__item:last-child::before { display: none; }
.ab-year__item::after { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-line); box-shadow: 0 0 0 4px var(--paper); }
.ab-year__when { margin: 0; font: 700 1.1rem/1.3 var(--font-display); color: var(--heading); }
.ab-year__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-year__lines > li { line-height: 1.55; color: var(--ink); }
.ab-year__who { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: var(--r-pill); font: 600 0.8rem/1.6 var(--font-text); white-space: nowrap; vertical-align: 1px; }
.ab-year__who--us { background: var(--teal-subtle); color: var(--heading); }
.ab-year__who--both { background: color-mix(in oklab, var(--gold-1) 24%, var(--paper)); color: var(--heading); }
.ab-year__who--you { border: 1px solid var(--border-strong); color: var(--ink); }

/* ---- keep it rented: the head beside the facts on wide screens ---- */
.ab-vht__grid { display: grid; gap: var(--s5); }
.ab-vht__grid .hsec__head { margin-bottom: 0; }
.ab-vht__facts { display: grid; gap: var(--s4); align-content: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e1); }
.ab-vht__sum { display: grid; gap: 4px; margin: 0; }
.ab-vht__num { font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/1 var(--font-display); color: var(--heading); letter-spacing: -0.01em; }
.ab-vht__sum span:last-child { color: var(--ink-soft); line-height: 1.45; }
.ab-vht__more { margin: 0; }
.ab-vht__more .link-arrow { display: inline-block; padding-block: 10px; line-height: 1.5; font-weight: 600; color: var(--heading); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent-ink) 55%, transparent); text-underline-offset: 3px; }
@media (min-width: 900px) { .ab-vht__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }

/* ---- the call ---- */
.ab-call__card { display: grid; gap: var(--s4); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e2); }
.ab-call__body { display: grid; gap: var(--s3); }
.ab-call__body h2 { margin: 0; font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem)/1.15 var(--font-display); color: var(--heading); }
.ab-call__body > p { margin: 0; line-height: 1.55; color: var(--ink); max-width: 40rem; }
.ab-call__body .sec-cta { margin-top: 0; }
.ab-call__small { font-size: 0.92rem; color: var(--ink-soft) !important; }
.ab-call__small a { color: var(--heading); font-weight: 600; }
.ab-call__body > p a { color: var(--heading); font-weight: 600; text-underline-offset: 3px; }
.ab-call__body > p a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 760px) { .ab-call__card { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }

/* ============================================================ the Story line ==== */
/* Since 26 Oct 2026 (src/p-abroad.mjs; Aldo's picks, the picker's abroad__* docs): web/home/story.css draws the gold line,
   its stops, the pictures and the still sheets, and loads before this file; web/css/p-sales.css the glass hero, the
   service cards and the sheets' plumbing, as on /owners/. Here: what this page needs besides, scoped to .page-abroad. */

/* Each section's ground rings its stops. */
.page-abroad :is(.ab-rules, .ab-vht) { --st-ring: var(--paper-2); }

/* The card to act on takes the service cards' softer corners. */
.page-abroad .o-svc__cta { border-radius: 22px; }
/* Beside the line a phone's column is narrower: with larger text the email in "Signing and staying in touch" breaks at the
   card's edge rather than push the cards past the screen (at 320px with 140% text, 19px past it). */
.page-abroad .ab-svc .o-svc__list li { overflow-wrap: anywhere; }
@media (max-width: 759px) { .page-abroad .ab-svc__grid { grid-template-columns: minmax(0, 1fr); } }

/* The year: each date is a dot on the gold line itself, level with the date, and lights as the gold reaches it, as the
   stations do (story.css); the list's own line and dots give way to it. */
.page-abroad .ab-year__item { --ab-dot: calc(1.1rem * 1.3 / 2); padding-left: 0; }
.page-abroad .ab-year__item::before { display: none; }
.page-abroad .ab-year__item::after { left: calc(var(--st-x) - var(--st-in)); top: var(--ab-dot); width: 18px; height: 18px; translate: -50% -50%;
  background: var(--gold-1); border: 4px solid var(--st-ring); box-shadow: 0 0 0 2px var(--gold-mid); z-index: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.a11y-still) .page-abroad .ab-year__item { view-timeline: --ab-date block; view-timeline-inset: 46% 46%; }
    html:not(.a11y-still) .page-abroad .ab-year__item::after { animation: st-lit linear both; animation-timeline: --ab-date; animation-range: cover var(--ab-dot) cover calc(var(--ab-dot) + 4vh); }
  }
}

/* The call: "Before you decide" is a stop on the line at the top of its soft card, as the estimate form's is in its card,
   and the chat bubble stands beside the words from 760px. */
.page-abroad .ab-call__card { --call-pad: clamp(22px, 3vw, 36px); padding: var(--call-pad); }
.page-abroad .ab-call__card > .hsec__eyebrow { grid-column: 1 / -1; margin: 0; }
.page-abroad .ab-call__card .st-stop { left: calc(var(--st-x) - var(--st-in) - var(--call-pad) - 1px); }
/* With no button since the Story line, the card hugs its words from 760px, which their measure (40rem) sets, rather than run
   the full width with its right side empty (the checker, 27 Oct 2026). */
@media (min-width: 760px) { .page-abroad .ab-call__card { width: fit-content; max-width: 100%; } }

/* The form follows the questions here and rises over their foot (home.css's bridge), so its stretch of the line ends at its
   stop without the section's top padding, which the bridge takes away. */
.page-abroad .faqsec + .est.st-end > .st-line { height: calc(1px + var(--est-pad) + var(--st-eb, 0.48rem)); }

/* ============================ /owners-outside-canada/, phase 3 part 6 (whole page) ====
   Built from shapes Aldo approved elsewhere: paper notices under brushed drawings (a town's local rules), sheets of paper,
   paper slips for the reads (a town's guides), buttons for anything to tap. */
.page-abroad { --ab-paper: 0 1px 1px hsl(var(--shadow-hsl) / 0.1), 0 2px 6px hsl(var(--shadow-hsl) / 0.06), 0 18px 34px -18px hsl(var(--shadow-hsl) / 0.34); }
:root[data-theme="dark"] .page-abroad { --ab-paper: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 20px 36px -14px rgb(0 0 0 / 0.6); }
.u.page-abroad :is(.ab-rules__item, .ab-table, .ab-vht__facts, .ab-call__card) { border: 0; border-radius: 6px; background: var(--paper); box-shadow: var(--ab-paper); }
:root[data-theme="dark"] .u.page-abroad :is(.ab-rules__item, .ab-table, .ab-vht__facts, .ab-call__card, .ab-reads a) { background: linear-gradient(180deg, #17353d, #10282f); }

/* The six rules: each a notice under its drawing; the numbered dots go. */
.page-abroad .ab-rules__item { gap: 10px; }
.page-abroad .ab-rules__item .lf-ob { width: 44px; margin: 0; }
.page-abroad .ab-rules__item h3 { display: block; margin-top: 2px; }
.page-abroad .ab-rules__item h3::before { content: none; }

/* With an agent, or without one: a sheet, its column heads in the site's own voice (no capitals). */
.u.page-abroad .ab-table thead th { font: 700 0.95rem/1.3 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--heading); }
:root[data-theme="dark"] .u.page-abroad .ab-table thead th { background: rgb(255 255 255 / 0.05); }

/* The reads: paper slips. */
.page-abroad .ab-rules__reads { display: grid; gap: 10px; margin: var(--s5) 0 0; }
.ab-rules__reads-k { margin: 0; font-weight: 600; color: var(--ink-soft); }
.ab-reads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ab-reads li { display: grid; min-width: 0; }
.ab-reads a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 6px; background: var(--paper); box-shadow: var(--ab-paper); color: var(--heading); font-weight: 600; line-height: 1.35; text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.ab-reads a .ico { width: 18px; height: 18px; color: var(--accent-ink); transition: transform var(--t-fast) var(--ease); }
.ab-reads a:hover { transform: translateY(-2px); }
.ab-reads a:hover .ico { transform: translateX(3px); }
@media (min-width: 700px) { .ab-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ab-reads { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* The Vacant Home Tax read is a button. */
.page-abroad .ab-vht__more .btn { min-height: 44px; height: auto; padding-block: 9px; white-space: normal; text-align: left; text-decoration: none; }

/* The call: a paper slip, the bubble beside the words, the number and the email as buttons. The eyebrow holds the line's
   stop and takes no room of its own (it left an empty band at the card's top). */
.u.page-abroad .ab-call__card { gap: 14px; }
.page-abroad .ab-call__card > .st-at { grid-column: 1 / -1; height: 0; margin: 0 0 -14px; }
.page-abroad .ab-call__body > p:not(.ab-call__small) a { display: inline-block; margin: 4px 2px; padding: 7px 14px; border: 1.5px solid var(--gold-mid); border-radius: 999px; background: var(--paper); font-weight: 700; color: var(--heading); text-decoration: none; white-space: nowrap; transition: background-color 200ms, border-color 200ms; }
.page-abroad .ab-call__body > p:not(.ab-call__small) a:is(:hover, :focus-visible) { border-color: var(--gold-1); background: color-mix(in oklab, var(--gold-1) 22%, var(--paper)); }
html[class*="a11y-text-"] .page-abroad .ab-call__body > p:not(.ab-call__small) a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.page-abroad .ab-call__body > p:not(.ab-call__small) { line-height: 2.1; }
@media (min-width: 760px) { .u.page-abroad .ab-call__card { align-items: center; column-gap: 28px; } .page-abroad .ab-call__card > .st-art { --art-s: 96px; } }
