@font-face {
  font-family: "LiveCaptions Sans";
  src: url("/assets/fonts/livecaptions-sans-ext-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: "LiveCaptions Sans";
  src: url("/assets/fonts/livecaptions-sans-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A0-0103, U+0110-0113, U+011A-011B, U+0128-012B, U+0143-0144, U+0147-0148,
    U+014C-014F, U+0152-0153, U+0168-016D, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01DC,
    U+01F8-01F9, U+2002-2003, U+2010-2016, U+2018-201A, U+201C-201E, U+2020-2022, U+2025-2027,
    U+2030, U+2032-2033, U+2035, U+2039-203C, U+2042, U+2047-2049, U+2051, U+20A9, U+20AB-20AC,
    U+20DD-20DE, U+2100, U+2103, U+2105, U+2109-210A, U+210F, U+2113, U+2116, U+2121-2122,
    U+2126-2127, U+212B, U+212E, U+2135, U+213B, U+2160-216B, U+2170-217B, U+2190-2199,
    U+21B8-21B9, U+21C4-21C6, U+21CB-21CC, U+21D0, U+21D2, U+21D4, U+21E6-21E9, U+21F5,
    U+3000-303F, U+4E00, U+4E03, U+4E09-4E0B, U+4E0D-4E0E, U+4E13-4E14, U+4E1A, U+4E22, U+4E24,
    U+4E2A, U+4E2D, U+4E34, U+4E3A-4E3B, U+4E3E, U+4E48-4E49, U+4E4B, U+4E50, U+4E5F, U+4E70,
    U+4E86, U+4E89, U+4E8B-4E8C, U+4E8E, U+4E91, U+4E94, U+4E9B, U+4EA4, U+4EA7, U+4EAB-4EAC,
    U+4EAE, U+4EBA, U+4EC0, U+4EC5, U+4ECA, U+4ECD-4ECE, U+4ED6, U+4ED8, U+4EE3, U+4EE5, U+4EEC,
    U+4EF6-4EF7, U+4EFB, U+4EFD, U+4F01, U+4F18, U+4F1A, U+4F20, U+4F2A, U+4F46, U+4F4D-4F4E,
    U+4F53, U+4F55, U+4F59, U+4F5C, U+4F60, U+4F7F, U+4F8B, U+4F9B, U+4F9D, U+4FBF, U+4FC4,
    U+4FDD, U+4FE1, U+4FEE, U+500D, U+5012, U+5019, U+503C, U+505A, U+505C, U+50A8, U+5141,
    U+5143, U+5145, U+5148, U+514B, U+514D, U+5165, U+5168, U+516C, U+5171, U+5173, U+5176-5177,
    U+517C, U+5185, U+518C-518D, U+5199, U+51B2-51B3, U+51B5, U+51BB, U+51C6, U+51CF, U+51E0,
    U+51ED, U+51FA-51FB, U+5206-5207, U+5217, U+5219-521B, U+521D, U+5220, U+5224, U+5229, U+522B,
    U+5230, U+5236-5237, U+523B, U+524D, U+5269, U+529B, U+529E-52A1, U+52A8-52A9, U+52B1,
    U+52FE-52FF, U+5305, U+5316-5317, U+533A-533B, U+533F, U+5347, U+534E-534F, U+5355, U+5357,
    U+5360-5361, U+5373-5374, U+5386, U+538B, U+539F, U+53BB, U+53C2, U+53C8, U+53CA-53CD,
    U+53D1, U+53D6-53D8, U+53E3, U+53E5-53E6, U+53EA, U+53EF-53F0, U+53F2-53F3, U+53F7-53F8,
    U+5404, U+5408, U+540C-540E, U+5411, U+5417, U+5426, U+542B-542C, U+542F, U+544A, U+5458,
    U+5468, U+547D, U+548C, U+54C1, U+54CD, U+54EA, U+5546, U+5668, U+566A, U+56DB, U+56DE,
    U+56E0, U+56F4, U+56FA, U+56FD-56FE, U+5728, U+5730, U+573A, U+5740, U+5747, U+578B, U+57DF,
    U+57FA, U+585E, U+586B, U+5883, U+5899, U+589E, U+58F0, U+5904, U+5907, U+590D, U+5916,
    U+591A, U+591F, U+5927, U+5929, U+5931, U+5934, U+5939, U+5956-5957, U+597D, U+5982, U+59CB,
    U+5A92, U+5B50, U+5B57-5B58, U+5B66, U+5B83, U+5B88-5B89, U+5B8C, U+5B98, U+5B9A, U+5B9D-5B9E,
    U+5BA1-5BA2, U+5BB6, U+5BB9, U+5BC6, U+5BF9, U+5BFC, U+5C01, U+5C06, U+5C0F, U+5C11, U+5C1A,
    U+5C1D, U+5C31, U+5C3D-5C3E, U+5C40, U+5C42, U+5C4A, U+5C4F, U+5C51, U+5C55, U+5C5E, U+5C65,
    U+5C81, U+5D4C, U+5DE5-5DE6, U+5DEE, U+5DF1-5DF2, U+5E01-5E03, U+5E0C, U+5E26, U+5E2E, U+5E38,
    U+5E55, U+5E73-5E74, U+5E76, U+5E7F, U+5E8F, U+5E93-5E94, U+5E97, U+5EA6-5EA7, U+5EF6, U+5EFA,
    U+5F00, U+5F02, U+5F04, U+5F0F, U+5F15, U+5F39-5F3A, U+5F52-5F53, U+5F55, U+5F71, U+5F80,
    U+5F84-5F85, U+5F8B, U+5F97, U+5FAA, U+5FB7, U+5FC3, U+5FC5, U+5FD7, U+5FD9, U+5FEB, U+6001,
    U+600E, U+6025, U+6027, U+603B, U+6062, U+606F, U+6076, U+60C5, U+60E0, U+60F3, U+610F,
    U+611F, U+6210-6211, U+6216, U+6218, U+622A, U+6237, U+623F-6240, U+624B, U+624D, U+6253,
    U+6258, U+6263, U+6267, U+6269, U+6279, U+627E-627F, U+628A, U+6295, U+6298, U+62A4-62A5,
    U+62AC, U+62BD, U+62D2, U+62D6, U+62E9, U+62EC, U+6301, U+6307, U+6309, U+6311, U+6355,
    U+6362, U+636E, U+6377, U+6388, U+6392, U+63A5, U+63A7-63A8, U+63AA, U+63CF-63D0, U+63D2,
    U+641C, U+6458, U+64A4, U+64AD, U+64CD, U+652F, U+6536, U+6539, U+653E-653F, U+6545, U+6548,
    U+654F, U+6551, U+6559, U+6570, U+6574, U+6587, U+6599, U+65AD, U+65B0, U+65B9, U+65BD,
    U+65E0, U+65E2, U+65E5, U+65E7, U+65F6, U+660E, U+6613, U+662F, U+663E, U+666E-6670, U+667A,
    U+6682, U+66F4, U+66FF-6700, U+6708-6709, U+670D, U+671B, U+671F, U+672A-672C, U+672F, U+673A,
    U+6743, U+6750, U+675F, U+6761, U+6765, U+677F, U+6781, U+6784, U+6790, U+679A, U+679C,
    U+67B6, U+67D0, U+67E5, U+6807, U+680F, U+6821, U+6837-6839, U+683C, U+6848, U+684C, U+6863,
    U+68C0, U+695A, U+6982, U+69DB, U+6A21, U+6B21, U+6B3E, U+6B62-6B65, U+6BB5, U+6BCF, U+6BD4,
    U+6C11, U+6C42, U+6C47, U+6CA1, U+6CBF, U+6CC4, U+6CD5, U+6CE8, U+6D3B, U+6D41, U+6D45,
    U+6D4B, U+6D4F, U+6D88-6D89, U+6DFB, U+6E05, U+6E20, U+6E90, U+6EDA, U+6EE1, U+6F0F, U+6F14,
    U+70B9, U+7136, U+7167, U+7247-7248, U+724C, U+7259, U+7269, U+72B6, U+72EC, U+7387,
    U+73AF-73B0, U+73ED, U+7406, U+751F, U+7528, U+7531, U+7533, U+7535, U+753B, U+754C, U+7559,
    U+7565, U+7597, U+75D5, U+767B, U+767D, U+7684, U+76D1, U+76D6, U+76D8, U+76EE, U+76F4,
    U+76F8, U+7701, U+770B, U+771F, U+77E5, U+77ED, U+7801, U+7840, U+786C, U+786E, U+78C1,
    U+793A, U+7968, U+7981, U+79BB, U+79C1, U+79CD, U+79D2, U+79F0, U+79FB, U+7A0B, U+7A0D-7A0E,
    U+7A33, U+7A7A, U+7A81, U+7A97, U+7ACB, U+7AD9, U+7AEF, U+7B14, U+7B26, U+7B2C, U+7B49,
    U+7B54, U+7B56, U+7B7E, U+7B80, U+7B97, U+7BA1, U+7BB1, U+7BC7, U+7BE1, U+7C7B, U+7C97-7C98,
    U+7CA4, U+7CBE, U+7CFB, U+7D20, U+7D22, U+7D2F, U+7E41, U+7EA2, U+7EA6-7EA7, U+7EAF, U+7EB3,
    U+7EB9, U+7EBF, U+7EC4, U+7EC6, U+7EC8, U+7ECF, U+7ED1, U+7ED3, U+7ED5, U+7ED8-7ED9,
    U+7EDC-7EDD, U+7EDF, U+7EE7, U+7EEA, U+7EED, U+7EF4, U+7EFC, U+7F13, U+7F16, U+7F29, U+7F3A,
    U+7F51, U+7F6E, U+7F72, U+7FFB, U+8003, U+8005, U+800C, U+8017, U+8054, U+805A, U+80CC,
    U+80FD, U+8111, U+811A, U+81EA, U+81F3-81F4, U+822A, U+822C, U+8272, U+827A, U+8282, U+82AF,
    U+82E5, U+82F1, U+8303, U+83B7, U+83DC, U+8425, U+84DD, U+85CF, U+8651, U+884C, U+8865,
    U+8868, U+88AB, U+88C5, U+897F, U+8981, U+8986, U+89C1-89C2, U+89C4, U+89C6, U+89C8, U+89D2,
    U+89E3, U+8A00, U+8BA1-8BA2, U+8BA4, U+8BA9, U+8BAE, U+8BB0, U+8BB2, U+8BB8, U+8BBA, U+8BBC,
    U+8BBE-8BBF, U+8BC1, U+8BC4, U+8BC6, U+8BC9-8BCA, U+8BCD, U+8BD1, U+8BD5, U+8BDD, U+8BE2,
    U+8BE5-8BE6, U+8BED, U+8BEF, U+8BF4, U+8BF7, U+8BFA-8BFB, U+8BFE, U+8C03, U+8C08, U+8C61,
    U+8D1F, U+8D23, U+8D25-8D26, U+8D28, U+8D2D, U+8D34, U+8D39, U+8D44, U+8D5A, U+8D60, U+8D70,
    U+8D77, U+8D85, U+8DB3, U+8DC3, U+8DDF, U+8DE8, U+8DEF, U+8DF3, U+8E2A, U+8EAB, U+8F68,
    U+8F6C, U+8F6E-8F6F, U+8F7D, U+8F83, U+8F93, U+8F96, U+8FB9, U+8FBE, U+8FC1, U+8FC7,
    U+8FD0-8FD1, U+8FD4, U+8FD8-8FD9, U+8FDB, U+8FDE-8FDF, U+8FF0, U+8FFD, U+9000-9002, U+9006,
    U+9009, U+900F-9010, U+9014, U+901A, U+901F-9020, U+9047, U+9053, U+9057, U+9075, U+9080,
    U+90A3, U+90AE, U+90E8, U+90FD, U+914D, U+91C7, U+91CA, U+91CC-91CD, U+91CF, U+91D1, U+949F,
    U+94A5, U+94AE, U+94F6, U+94FE, U+9500-9501, U+9519, U+952E, U+957F, U+95E8, U+95ED-95EE,
    U+95F4, U+9605, U+961F, U+9632, U+9636, U+963B, U+9644-9645, U+9650, U+9662, U+9664, U+9669,
    U+968F-9690, U+969C, U+96BE, U+96C6, U+96F6, U+9700, U+9732, U+9759, U+975E, U+9762, U+97E9,
    U+97F3, U+9875-9876, U+9879-987B, U+9884, U+9886, U+9891, U+9898, U+989D, U+98CE, U+9910,
    U+9988, U+9996, U+9A8C, U+9AA4, U+9AD8, U+9EA6, U+9ED8, U+9F50, U+FF01-FF9F, U+FFA1-FFBE,
    U+FFC2-FFC7, U+FFCA-FFCF, U+FFD2-FFD7, U+FFDA-FFDC, U+FFE0-FFE6, U+FFE8-FFEE;
}

/* LiveCaptions 实时字幕 — shared page chrome: tokens, base, backdrop, container, navigation, footer.
   Linked BEFORE site.css / account.css on every page: the moved rules must stay behind the
   per-app sheets, which is why .nav and .footer re-scope --muted instead of trusting :root. */

:root {
  --taro: #b7a6cc;
  --sakura: #efcfe1;
  --peach: #f5e3e7;
  --cream: #fcfaff;
  --ink: #251831;
  --chrome-muted: #625371;
  --muted: var(--chrome-muted);
  --muted-subtle: #796a88;
  --deep: #725386;
  /* --rose is reserved for the primary call to action and prices; links and accents use --deep. */
  --rose: #a63d78;
  --rose-soft: rgba(166, 61, 120, 0.09);
  --brand-fill: linear-gradient(180deg, #b44884, #9d3a73);
  --brand-fill-hover: linear-gradient(180deg, #a63d78, #8b3166);
  --brand-fill-hero: var(--brand-fill);
  --brand-shadow: 0 1px 2px rgba(84, 18, 54, 0.16), 0 6px 16px rgba(166, 61, 120, 0.18);
  --surface: #ffffff;
  --surface-soft: #f7f1fa;
  --surface-ink: linear-gradient(135deg, #2b1c3a, #3b2652);
  --edge-field: #8d7a9e;
  --grad: linear-gradient(120deg, var(--taro), var(--sakura));
  --grad-strong: linear-gradient(158deg, #c679b0, #b8558f 52%, #a24279);
  /* Translucent fills stay for chrome that floats above content (navigation, floating buttons). */
  --glass: rgba(255, 255, 255, 0.56);
  --glass-soft: rgba(255, 255, 255, 0.42);
  --surface-grain: url("/assets/brand/lilac-grain.svg");
  --line: rgba(196, 172, 222, 0.5);
  --line-strong: rgba(154, 130, 175, 0.45);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  /* Two elevation levels only. */
  --shadow-sm: 0 1px 2px rgba(37, 24, 49, 0.04), 0 4px 14px rgba(84, 52, 110, 0.06);
  --shadow-lg: 0 2px 6px rgba(37, 24, 49, 0.04), 0 18px 40px rgba(84, 52, 110, 0.1);
  --shadow: var(--shadow-sm);
  --shadow-soft: var(--shadow-sm);
  /* Four corner radii only. */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --radius: var(--r-lg);
  /* Type scale (px): 12 13 14 16 18 20 26 32 40 56; the home hero keeps its own display size. */
  --fs-2xs: 12px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 40px;
  --fs-display: 56px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;
  /* Vertical rhythm between page sections, blocks inside a section, and tight groups. */
  --space-section: 88px;
  --space-block: 40px;
  --space-tight: 20px;
  --font: "LiveCaptions Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shell: 1100px;
  --gutter: 20px;
  --gutter-sm: 18px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scrollbar-width: thin; scrollbar-color: #c9b6d4 transparent; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--taro), var(--sakura));
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::selection { background: rgba(248, 200, 220, 0.65); }

body {
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  /* header / main / footer: the footer sits at the bottom of short pages instead of floating mid-screen */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  background: #fcfaff;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* .wrap centres with margin:auto; inside a grid that would also shrink-wrap the item and centre it
   vertically, so the three rows keep their full width and start at the top of their row */
body > header,
body > main,
body > footer { width: 100%; }
body > main,
body > main.wrap { align-self: start; margin-block: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* ---- static, low-contrast lilac ribbons ---- */

.aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* the page wash lives on this fixed layer, so scrolling never repaints a fixed body background */
  background:
    url("/assets/brand/lilac-ribbons.svg?v=20261017-lilac-3") center top / cover no-repeat,
    radial-gradient(ellipse 680px 540px at 48% 25%, rgba(255,255,255,.96), transparent 90%),
    linear-gradient(145deg, #fbf9fe, #fdfaff 58%, #fdfbfe);
}

.aura i {
  display: none;
}

/* ---- container: every page section sits in one .wrap column ---- */

.wrap { max-width: var(--shell); margin: auto; padding: 0 var(--gutter); }

/* ---- header ---- */

.nav {
  --muted: var(--chrome-muted);
  position: sticky;
  top: 10px;
  z-index: 20;
  max-width: 1080px;
  margin-top: 10px;
  padding: 4px 24px 4px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: var(--inner), var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  background: url("/logo-108.png") center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover::before {
  transform: rotate(-6deg) scale(1.04);
}

.brand:hover { color: var(--deep); }

/* Child selectors, not descendants: the account dropdown is also a <nav> inside the header, and a
   bare `.nav nav` would lay its items in a row on desktop and hide it outright under 760px. */
.nav > nav { display: flex; gap: 26px; font-size: 14px; margin-left: auto; }

.nav > nav a {
  position: relative;
  text-decoration: none;
  color: #30213e;
  font-weight: var(--fw-medium);
  transition: color 0.25s ease;
}

.nav > nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--deep);
  transition: right 0.28s ease;
}

.nav > nav a:hover { color: var(--deep); }

.nav > nav a:hover::after { right: 0; }

/* sits after :hover on purpose: same specificity, so source order has to break the tie */
.nav > nav a[aria-current="page"] { color: var(--rose); font-weight: var(--fw-bold); }
.nav > nav a[aria-current="page"]::after { right: 0; background: var(--rose); }

/* ---- signed-in account entry: nav-account.js renders into this shared right slot ---- */

.nav-account-mount { position: relative; flex: none; margin-left: 16px; }

.nav-account-mount:empty { display: none; }

.nav-account summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--deep);
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-account summary::-webkit-details-marker { display: none; }
.nav-account summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.nav-account[open] > summary::after { transform: rotate(180deg); }

.nav-account summary:hover,
.nav-account[open] > summary { color: var(--ink); border-color: var(--deep); }

.nav-account nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-account nav a,
.nav-account nav button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--deep);
  cursor: pointer;
  font: var(--fw-bold) var(--fs-sm)/1.4 var(--font);
  text-align: left;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-account nav a:hover,
.nav-account nav button:hover { background: var(--surface-soft); color: var(--ink); }

/* ---- collapsible navigation (mobile) ---- */

.mobile-nav { display: none; }

.mobile-nav summary {
  list-style: none;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--deep);
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mobile-nav nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--deep);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.mobile-nav nav a:hover { background: var(--surface-soft); color: var(--ink); }

/* ---- footer ---- */

.footer {
  /* Keep shared footer text independent of page-specific palette overrides. */
  --muted: var(--chrome-muted);
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; }

.footer nav a { position: relative; }

.footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--deep);
  opacity: 0.45;
  transition: right 0.28s ease;
}

.footer nav a:hover::after { right: 0; }

.footer .filing { margin: 16px 0 0; text-align: center; font-size: var(--fs-xs); }

.footer a { text-decoration: none; font-weight: var(--fw-medium); transition: color 0.25s ease; }

.footer a:hover { color: var(--ink); }

/* Declared after .nav so this fallback can take effect; it was unreachable in site.css
   because .nav followed it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .aura i { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1020px) {
  .nav > nav { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav nav { display: block; }
}

@media (max-width: 760px) {
  /* Specificity has to beat the padding shorthands in the sheets that follow
     (.hero, .page, .facts, .footer); .nav and .install-panel carry their own inset. */
  .wrap:not(.nav):not(.install-panel) { padding-inline: var(--gutter-sm); }
  .nav { width: auto; padding: 9px 12px; margin-inline: var(--gutter-sm); gap: 10px; border-radius: var(--r-md); }
  .brand { font-size: var(--fs-md); gap: 8px; }
  .brand::before { width: 24px; height: 24px; }
  .nav > nav { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav nav { display: block; }
  .nav-account-mount { margin-left: 0; }
}

/* Brand (226px) + menu (55px) + account pill (99px) and their gaps stop fitting in the nav's
   content box below a 500px viewport, and a wrapping flex row then splits the menu from the pill.
   With an account pill present, give the brand its own row so the two controls stay together. */
@media (max-width: 500px) {
  .nav:has(.nav-account-mount:not(:empty)) .brand { flex: 0 0 100%; }
}

@media (max-width: 400px) {
  .brand { font-size: var(--fs-sm); }
}

@media (forced-colors: active) {
  .aura { display: none; }
  .nav, .mobile-nav nav, .nav-account nav { border-color: CanvasText; background: Canvas; }
  .nav > nav a[aria-current="page"]::after { background: LinkText; }
  .nav-account summary::after { forced-color-adjust: none; background: CanvasText; }
}

@media (min-width: 1021px) {
  .nav:has(.nav-account-mount:not(:empty)) { padding-right: 10px; }
}
.nav-account summary::before { content: ""; display: block; flex: none; width: 18px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Ccircle cx='10' cy='5.5' r='5' fill='%239674aa'/%3E%3Cpath d='M1 21v-3a9 7 0 0 1 18 0v3Z' fill='%239674aa'/%3E%3C/svg%3E") center / contain no-repeat; }
.account-main + .footer { padding-top: 20px; }

html:lang(en) {
  --font: "LiveCaptions Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:lang(en) body {
  overflow-wrap: break-word;
  hyphens: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.en-notice {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.en-notice[hidden] { display: none; }

.en-notice-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.en-notice-link {
  color: var(--rose-ink, #7a44a9);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.en-notice-link:hover { text-decoration: underline; }

.en-notice-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

@media (max-width: 760px) {
  .en-notice {
    flex-wrap: wrap;
    width: auto;
    margin-inline: var(--gutter-sm);
  }
}
