/* Travenza · page-misc.css — default pages (Terms, Privacy …), HTML sitemap and the 404 page.
   Uses the shared tokens/utilities in style.css (--gutter, --section-y, --nav-h, .section-label, .btn-primary …).
   The nav is the light variant here (no dark hero), so every page header clears the fixed nav with --tz-top. */

.tz-page, .tz-map, .tz-404 {
  --tz-ink: var(--orange-ink, #a85f1b);  /* deeper orange for small text on light surfaces: eyebrows, links (AA on ivory and white) */
  --tz-muted: #66665e;   /* secondary text that still passes AA on ivory and white */
  --tz-top: calc(var(--nav-h) + clamp(32px, 6vw, 84px));
  background: var(--ivory);
  color: var(--black);
}

/* Centered content columns that follow the fluid gutter */
.tz-wrap { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.tz-wrap--wide { max-width: var(--container-wide); }

/* A gentle load-in that needs no JS and is switched off by prefers-reduced-motion (global rule in style.css) */
@keyframes tzRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tz-page-head .section-label, .tz-page-title,
.tz-404__code, .tz-404__title, .tz-404__text, .tz-404__actions, .tz-404__links { animation: tzRise .8s var(--ease-out) both; }
.tz-page-title, .tz-404__title { animation-delay: .08s; }
.tz-404__text { animation-delay: .16s; }
.tz-404__actions { animation-delay: .24s; }
.tz-404__links { animation-delay: .32s; }

/* ── Page header (default pages + sitemap) ── */
.tz-page-head { padding: var(--tz-top) 0 clamp(24px, 4vw, 48px); }
.tz-page-head .section-label { margin-bottom: 14px; }
.tz-page-title {
  font-family: var(--f-display); font-weight: 900; color: var(--black);
  font-size: clamp(38px, 6vw, 68px); line-height: 1.1; letter-spacing: -1px;
}
.tz-page-title em { font-style: italic; color: var(--orange); }

/* ── Default page body ── */
.tz-page-body { padding-bottom: calc(var(--section-y) * .6); }  /* the footer adds its own --section-y on top */
/* Legal pages read as a run of sections: hairline above every section heading but the first */
.tz-page .tz-prose > h3 { margin-top: 1.5em; padding-top: 1.3em; border-top: 1px solid var(--gray-light); }
.tz-page .tz-prose > :first-child, .tz-page .tz-prose > h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* Refund tiers (built by tz_page_tiers() in page.php): when ........ outcome rows instead of one run-on paragraph.
   Label on the left, outcome right-aligned, a dotted leader between them: short labels no longer float far from their outcome. */
.tz-nb { white-space: nowrap; }
.tz-prose .tz-tiers { list-style: none; padding: 0; margin-top: 1em; background: #fff; border: 1px solid var(--gray-light); border-radius: 16px; overflow: hidden; }
.tz-prose .tz-tiers li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; margin: 0; padding: 15px clamp(16px, 2.4vw, 24px); }
.tz-prose .tz-tiers li + li { margin-top: 0; border-top: 1px solid var(--gray-light); }
.tz-tiers__when { flex: 0 0 auto; max-width: 100%; font-weight: 700; color: var(--black); }
/* dotted leader: one text line tall, fills the gap between label and outcome */
.tz-tiers__lead { flex: 1 1 16px; min-width: 16px; height: 1.75em; background: radial-gradient(circle, rgba(26,26,26,.32) 1.1px, transparent 1.6px) 0 1.12em / 7px 4px repeat-x; }
/* if label + outcome do not fit on one line (the 90+ days row on narrow columns) the whole outcome drops to its own line, right-aligned, instead of squeezing */
.tz-tiers__what { flex: 0 0 auto; max-width: 100%; margin-left: auto; text-align: right; color: var(--black-soft); }
@media (max-width: 700px) {
  .tz-prose .tz-tiers li { display: block; }
  .tz-tiers__lead { display: none; }
  .tz-tiers__what { display: block; max-width: none; text-align: left; margin-top: 2px; }
}
.tz-prose a[href^="mailto:"] { display: inline-block; padding: 12px 2px; margin: -12px -2px; } /* 44px-tall tap area without changing the line height */

/* ══════════ Readable article typography (shared look with .tz-prose in page-blog.css) ══════════ */
.tz-prose { font-size: clamp(16px, .3vw + 15px, 18px); line-height: 1.75; color: var(--black-soft); overflow-wrap: break-word; }
.tz-prose > * + * { margin-top: 1.25em; }
.tz-prose > :first-child { margin-top: 0; }
.tz-prose h2, .tz-prose h3, .tz-prose h4 { color: var(--black); }
.tz-prose h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -.5px; margin-top: 2em; }
.tz-prose h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.28; margin-top: 1.8em; }
.tz-prose h4 { font-size: 1.05em; font-weight: 700; line-height: 1.4; margin-top: 1.6em; }
.tz-prose h2 + *, .tz-prose h3 + *, .tz-prose h4 + * { margin-top: .6em; }
.tz-prose p, .tz-prose li { overflow-wrap: break-word; }
.tz-prose a { color: var(--tz-ink); text-decoration: underline; text-decoration-color: rgba(213,142,74,.55); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.tz-prose a:hover { color: var(--black); text-decoration-color: var(--orange); }
.tz-prose strong, .tz-prose b { font-weight: 700; color: var(--black); }
.tz-prose ul, .tz-prose ol { padding-left: 1.35em; }
.tz-prose li + li { margin-top: .5em; }
.tz-prose li::marker { color: var(--orange); font-weight: 700; }
.tz-prose blockquote { border-left: 3px solid var(--orange); padding: .3em 0 .3em 1.2em; font-family: var(--f-display); font-style: italic; font-size: 1.18em; line-height: 1.55; color: var(--black); }
.tz-prose blockquote p + p { margin-top: .8em; }
.tz-prose blockquote cite { display: block; margin-top: .8em; font-family: var(--f-body); font-style: normal; font-size: .72em; letter-spacing: 1px; text-transform: uppercase; color: var(--tz-muted); }
.tz-prose hr { border: 0; height: 1px; background: var(--gray-light); margin: 2.4em 0; }
.tz-prose img, .tz-prose video { max-width: 100%; height: auto; border-radius: 16px; }
.tz-prose figure, .tz-prose .wp-caption { margin: 2em 0; max-width: 100%; }
.tz-prose figure img, .tz-prose .wp-caption img { display: block; width: 100%; }
.tz-prose figcaption, .tz-prose .wp-caption-text { margin-top: .7em; font-size: 13.5px; line-height: 1.5; text-align: center; color: var(--tz-muted); }
.tz-prose iframe, .tz-prose embed, .tz-prose object { max-width: 100%; border: 0; border-radius: 16px; }
.tz-prose iframe[src*="youtube"], .tz-prose iframe[src*="youtu.be"], .tz-prose iframe[src*="vimeo"],
.tz-prose .wp-block-embed iframe, .tz-prose .wp-has-aspect-ratio iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.tz-prose .alignwide, .tz-prose .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.tz-prose .aligncenter { display: block; margin-inline: auto; }
.tz-prose .alignleft  { float: left;  margin: .4em 1.5em 1em 0; max-width: 50%; }
.tz-prose .alignright { float: right; margin: .4em 0 1em 1.5em; max-width: 50%; }
@media (max-width: 560px) { .tz-prose .alignleft, .tz-prose .alignright { float: none; display: block; margin: 1.6em auto; max-width: 100%; } }
.tz-prose::after { content: ''; display: table; clear: both; }
.tz-prose code, .tz-prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: .15em .45em; border-radius: 6px; background: var(--orange-pale); color: var(--black); }
.tz-prose pre { overflow-x: auto; padding: 1.1em 1.3em; border-radius: 14px; background: var(--black); color: #f3f1e8; font-size: 14px; line-height: 1.65; -webkit-overflow-scrolling: touch; }
.tz-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.tz-prose table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.5; }
.tz-prose th, .tz-prose td { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.tz-prose thead th { font-weight: 700; color: var(--black); background: var(--ivory-2); border-bottom-color: var(--ivory-3); }
.tz-table-wrap {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--ivory) 30%, rgba(253,253,243,0)) 0 0 / 36px 100% no-repeat local,
    linear-gradient(to left, var(--ivory) 30%, rgba(253,253,243,0)) 100% 0 / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(26,26,26,.16), rgba(26,26,26,0)) 0 0 / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(26,26,26,.16), rgba(26,26,26,0)) 100% 0 / 14px 100% no-repeat scroll;
}
.tz-table-wrap table { min-width: calc(var(--tz-cols, 3) * 6.5rem); }
@media (min-width: 821px) { .tz-table-wrap table { min-width: 0; } }

/* ══════════ Sitemap ══════════ */
.tz-map-body { padding-bottom: calc(var(--section-y) * .6); display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 28px); }
.tz-map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
/* Wide screens: Main Pages is the tall card on the left; Services and Experiences stack beside it (lists in two columns) so all three end level */
@media (min-width: 901px) {
  .tz-map-grid > .tz-map-card:first-child { grid-row: 1 / span 2; }
  .tz-map-grid > .tz-map-card:nth-child(n+2) { grid-column: 2 / -1; }
  .tz-map-grid > .tz-map-card:nth-child(n+2) .tz-map-list { column-count: 2; column-gap: clamp(28px, 4vw, 56px); }
}
/* Tablet portrait: the three cards stack full width with their lists in two columns. (Side by side, the shorter of Main Pages / Services
   was stretched to the taller one and held ~230px of blank white.) Phones: one column. */
@media (max-width: 900px) {
  .tz-map-grid { grid-template-columns: minmax(0, 1fr); }
  .tz-map-grid .tz-map-list { column-count: 2; column-gap: clamp(28px, 4vw, 56px); }
}
@media (max-width: 700px) {
  .tz-map-grid .tz-map-list { column-count: 1; }
}

.tz-map-card {
  background: #fff; border: 1px solid rgba(26,26,26,.06); border-radius: var(--radius-card);
  padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.tz-map-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.2px; color: var(--black);
}
.tz-map-icon {
  flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-pale); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.tz-map-count {
  margin-left: 4px; padding: 3px 10px; border-radius: 40px; background: var(--ivory-2);
  font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--tz-muted); vertical-align: middle;
}
.tz-map-card > .tz-map-title { margin-bottom: 14px; }

.tz-map-list { list-style: none; }
.tz-map-list li { break-inside: avoid; border-bottom: 1px solid var(--gray-light); }
.tz-map-list li:last-child { border-bottom: 0; }
.tz-map-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--black-soft); text-decoration: none;
  transition: color .2s, padding-left .25s var(--ease-out);
}
.tz-map-list a::after { content: '→'; flex: none; color: var(--orange); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease-out); }
.tz-map-list a:hover, .tz-map-list a:focus-visible { color: var(--tz-ink); }
.tz-map-list a:hover::after, .tz-map-list a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .tz-map-list a::after { display: none; } }
@media (min-width: 821px) and (hover: hover) { .tz-map-list a { min-height: 38px; padding: 6px 0; font-size: 14.5px; } }

/* Wide cards: the long lists flow into columns */
.tz-map-card--wide .tz-map-list { column-count: 3; column-gap: clamp(28px, 4vw, 56px); }
@media (max-width: 1100px) { .tz-map-card--wide .tz-map-list { column-count: 2; } }
@media (max-width: 640px)  { .tz-map-card--wide .tz-map-list { column-count: 1; } }

/* Collapsible long lists */
.tz-map-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; min-height: 44px; }
.tz-map-summary::-webkit-details-marker { display: none; }
.tz-map-summary:focus-visible { outline-offset: 6px; }
.tz-map-chevron { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory-2); color: var(--black); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease-out), background .25s; }
.tz-map-fold[open] .tz-map-chevron { transform: rotate(180deg); }
.tz-map-summary:hover .tz-map-chevron { background: var(--orange-pale); }
.tz-map-fold[open] > .tz-map-summary { margin-bottom: 14px; }

/* Footer row of related files / policies */
.tz-map-foot { display: flex; flex-wrap: wrap; gap: 10px; padding-top: clamp(20px, 3vw, 32px); margin-top: clamp(8px, 1.6vw, 20px); border-top: 1px solid var(--gray-light); }
.tz-map-foot a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 60px;
  border: 1.5px solid rgba(26,26,26,.2); font-size: 14px; font-weight: 500; color: var(--black); text-decoration: none;
  transition: border-color .25s, color .25s, transform .2s;
}
.tz-map-foot a:hover { border-color: var(--orange); color: var(--tz-ink); }
@media (max-width: 480px) { .tz-map-foot { flex-direction: column; } .tz-map-foot a { justify-content: center; } }

/* ══════════ 404 ══════════ */
.tz-404 {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: min(76svh, 720px);
  padding: calc(var(--nav-h) + clamp(16px, 3.4vw, 44px)) var(--gutter) calc(var(--section-y) * .6);
}
/* Dashed route pieces on the left and right edges, fading in behind the message; hidden once there is no spare margin */
.tz-404__route { position: absolute; z-index: -1; width: min(25vw, 360px); height: auto; max-width: none; color: var(--orange); opacity: .45; pointer-events: none; }
.tz-404__route--l { left: 0; bottom: 8%; -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.tz-404__route--r { right: 0; top: 10%; -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); transform: scaleX(-1); } /* mirrored, so its mask fades towards the centre too */
.tz-404__route--r circle { transform-box: fill-box; }
@media (max-width: 960px) { .tz-404__route { display: none; } }
.tz-404__inner { width: 100%; max-width: 800px; }
.tz-404__code { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 900; font-size: clamp(104px, 22vw, 176px); line-height: .9; letter-spacing: -.04em; color: var(--orange); margin-bottom: clamp(16px, 3vw, 26px); }
.tz-404__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.5px; color: var(--black); margin-bottom: 16px; text-wrap: balance; }
.tz-404__title em { font-style: italic; color: var(--orange); }
.tz-404__text { max-width: 46ch; margin: 0 auto clamp(26px, 4vw, 34px); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--tz-muted); text-wrap: balance; }
.tz-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tz-404__actions .btn-primary, .tz-404__actions .btn-outline-dark { justify-content: center; min-height: 52px; }
@media (max-width: 480px) {
  .tz-404__actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  .tz-404__actions .btn-primary, .tz-404__actions .btn-outline-dark { width: 100%; }
}
.tz-404__links { margin: clamp(30px, 4.6vw, 44px) auto 0; padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--gray-light); max-width: 800px; }
.tz-404__label { margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--tz-ink); }
.tz-404__links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tz-404__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 60px;
  background: #fff; border: 1.5px solid var(--gray-light); font-size: 14px; font-weight: 600; color: var(--black); text-decoration: none;
  transition: border-color .25s, color .25s, transform .2s;
}
.tz-404__links a:hover { border-color: var(--orange); color: var(--tz-ink); transform: translateY(-2px); }
/* Phones: the six chips sit in a tidy 2 x 3 grid instead of wrapping 3 / 3 / 1 */
@media (max-width: 480px) {
  .tz-404__links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tz-404__links a { display: flex; justify-content: center; text-align: center; }
}
