/* Fonts are self-hosted (public/common/fonts, SIL OFL 1.1): no requests to Google.
   Regenerate: see "Fonts" in AGENTS.md. unicode-range makes the browser fetch only the subsets a page uses. */
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-ext-d9a34b35.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-13717d55.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-ext-bac411df.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-7a686e76.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-ext-7985f1ab.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-80e7dc56.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-ext-67dfa555.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/barlow-latin-488b5809.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-ext-ed8618e8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-0e2a4081.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-ext-a2f92ada.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-5bc49d41.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-ext-0c165565.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-e3e520cb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-ext-14480fbc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-89eec21b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-ext-617496b8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/barlow-condensed-latin-2036f7f4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-ext-fe8f8096.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-ad056b5b.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/fira-sans-greek-4134be3a.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-ext-4a6e8cce.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-680ec6ce.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-ext-3486b12f.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-09983c6c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-greek-784cc9b7.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-ext-832c1a4f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-7b8f0fbf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-ext-68d0fc75.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-9e677029.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/fira-sans-greek-e734d9f6.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-ext-b43cbd7d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-8a76b4c5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-ext-2f1cf969.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-cyrillic-df1ce94b.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-greek-a3b7cab9.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-ext-0417cdbc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-latin-f3cc7b27.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-ext-64bb07b8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-24b769b2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-greek-b6c29c3e.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-ext-5eb10580.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-3dc9220b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-ext-8f47a1e9.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-783a8e60.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-greek-71617dfd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-ext-7915d8ec.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-21d72af9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-ext-92c5d93d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-7a0b165e.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-greek-c0cf1ce8.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-ext-d979f789.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-362062c7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-ext-84e6220a.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-51cfd852.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-greek-df23724a.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-ext-1090f352.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-8fb90d6f.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-ext-6d61eab9.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-cyrillic-832891fc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-greek-540af945.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-ext-4efeb036.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/common/fonts/fira-sans-extra-condensed-latin-b5e7f0e4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-ext-107f3452.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-34e826d3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-ext-4e00762f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-29bf2691.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-ext-107f3452.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-34e826d3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-ext-4e00762f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-29bf2691.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-ext-107f3452.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-cyrillic-34e826d3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-ext-4e00762f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/common/fonts/martian-mono-latin-29bf2691.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:            #060607;
    --panel:         #0b0c0f;
    --surface:       #101218;
    --surface-hi:    #14161e;
    --border:        #1c1e26;
    --border-hi:     #272a34;
    --text:          #ddd9d0;
    --text-muted:    #5e5c56;
    --text-dim:      #2c2b27;
    --amber:         #c8882a;
    --amber-bright:  #edb040;
    --amber-dark:    #7a520e;
    --amber-glow:    rgba(200, 136, 42, 0.14);
    --font-display:  'Barlow Condensed', 'Fira Sans Extra Condensed', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
    --font-mono:     'Martian Mono', monospace;
    --font-body:     'Barlow', 'Fira Sans', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
    --r:             2px;
    --on-amber:      #080400;
    --amber-ink:     #c8882a;   /* amber used as text on the page background */
    --amber-ink-hi:  #edb040;
    --grid-line:     rgba(255,255,255,0.019);
    --hex:           url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 3 L53 17 L53 47 L28 61 L3 47 L3 17 Z' fill='none' stroke='rgba(255,255,255,0.028)' stroke-width='1'/%3E%3C/svg%3E");
    --hex-soft:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 3 L53 17 L53 47 L28 61 L3 47 L3 17 Z' fill='none' stroke='rgba(255,255,255,0.022)' stroke-width='1'/%3E%3C/svg%3E");
    --panel-shadow:  0 0 0 1px rgba(0,0,0,0.6), 0 48px 120px rgba(0,0,0,0.72);
    --result-bg:     #050507;
    --option-bg:     #14161e;
    --focus-ring:    rgba(200, 136, 42, 0.07);
    --amber-line:    rgba(200, 136, 42, 0.55);
    color-scheme:    dark;
}

/* Korean: Hangul fonts first (the Japanese fallbacks have no Hangul), and break lines between words. */
html:lang(ko) {
    --font-display:  'Barlow Condensed', 'Fira Sans Extra Condensed', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    --font-body:     'Barlow', 'Fira Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    word-break: keep-all;
}

/* Light theme: set on <html> by the inline script in layout.html (saved choice or OS setting). */
:root[data-theme="light"] {
    --bg:            #eeebe5;
    --panel:         #fbfaf7;
    --surface:       #f3f1ec;
    --surface-hi:    #e9e5dd;
    --border:        #e0dbd2;
    --border-hi:     #cec7ba;
    --text:          #1c1b18;
    --text-muted:    #625e56;
    --text-dim:      #a39d92;
    --amber:         #e0a030;   /* fills, borders, underlines: same yellow as dark */
    --amber-bright:  #ebb445;
    --amber-dark:    #d8b266;
    --amber-glow:    rgba(224, 160, 48, 0.14);
    --on-amber:      #1a1205;
    --amber-ink:     #9e6600;   /* text: darker gold, 4.6:1 on the panel */
    --amber-ink-hi:  #b87900;
    --grid-line:     rgba(0,0,0,0.035);
    --hex:           url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 3 L53 17 L53 47 L28 61 L3 47 L3 17 Z' fill='none' stroke='rgba(0,0,0,0.035)' stroke-width='1'/%3E%3C/svg%3E");
    --hex-soft:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 3 L53 17 L53 47 L28 61 L3 47 L3 17 Z' fill='none' stroke='rgba(0,0,0,0.035)' stroke-width='1'/%3E%3C/svg%3E");
    --panel-shadow:  0 0 0 1px rgba(60,40,10,0.04), 0 24px 60px rgba(60,40,10,0.10);
    --result-bg:     #f4f1ea;
    --option-bg:     #ffffff;
    --focus-ring:    rgba(224, 160, 48, 0.22);
    --amber-line:    rgba(224, 160, 48, 0.8);
    color-scheme:    light;
}

/* ─── BASE ──────────────────────────────────────────────────── */

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 20px 32px;
    color: var(--text);
}

/* ─── CALCULATOR PANEL ──────────────────────────────────────── */

.calculator {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 2px solid var(--amber);
    border-radius: var(--r);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    box-shadow:
        var(--panel-shadow),
        0 0 80px rgba(200, 136, 42, 0.04);
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    overflow: hidden;
}

/* subtle hex/nut watermark */
.calculator::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hex);
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.calculator > * { position: relative; z-index: 1; }

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── HEADER ────────────────────────────────────────────────── */

.calc-header {
    margin-bottom: 32px;
    animation: fade-up 0.5s 0.08s both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--amber-ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--amber);
    clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    flex-shrink: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.formula {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber-dark);
    padding: 11px 16px;
    border-radius: var(--r);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 16px;
}

.formula code {
    text-transform: none;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--amber-ink-hi);
    font-weight: 500;
    letter-spacing: 0.14em;
}

/* ─── TABS ──────────────────────────────────────────────────── */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
    animation: fade-up 0.5s 0.14s both;
}

.tab {
    padding: 10px 24px 10px 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.18s, border-color 0.18s;
    user-select: none;
    outline: none;
}

.tab + .tab {
    padding-left: 24px;
    padding-right: 0;
    border-left: 1px solid var(--border);
}

.tab:hover { color: var(--text); }
/* the global `button` style is for the Calculate button: keep tabs flat */
.tab:hover,
.tab:active,
.tab:focus { background: none; box-shadow: none; transform: none; }
.tab:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.tab.active {
    color: var(--amber-ink);
    border-bottom-color: var(--amber);
}

/* ─── INPUT GROUPS ──────────────────────────────────────────── */

.input-group {
    margin-bottom: 18px;
    animation: fade-up 0.5s 0.18s both;
}

label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}

select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235e5c56' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select:hover {
    border-color: var(--border-hi);
    background-color: var(--surface-hi);
}

select:focus {
    outline: none;
    border-color: rgba(200, 136, 42, 0.45);
    background-color: var(--surface-hi);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

select option,
select optgroup {
    background: var(--option-bg);
    color: var(--text);
}

.row {
    display: flex;
    gap: 14px;
}

.row .input-group { flex: 1; }

/* ─── PITCH HINT ────────────────────────────────────────────── */

.pitch-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-muted);
    border-radius: var(--r);
    line-height: 1.6;
}

.pitch-hint strong {
    color: var(--text);
    font-weight: 400;
}

/* ─── CALCULATE BUTTON ──────────────────────────────────────── */

button {
    width: 100%;
    padding: 16px;
    background: var(--amber);
    color: var(--on-amber);
    border: none;
    border-radius: var(--r);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.08s;
    animation: fade-up 0.5s 0.22s both;
}

button:hover {
    background: var(--amber-bright);
    box-shadow: 0 8px 28px rgba(200, 136, 42, 0.3);
}

button:active {
    transform: scale(0.988);
    background: var(--amber);
    box-shadow: none;
}

/* ─── RESULT ────────────────────────────────────────────────── */

.result {
    margin-top: 20px;
    padding: 26px 28px;
    background: var(--result-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: none;
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--amber-line),
        transparent);
}

.result.show {
    display: block;
    animation: result-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes result-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 400;
    color: var(--amber-ink-hi);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -0.01em;
}

.result-unit {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.06em;
}

.details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-muted);
    display: grid;
    gap: 5px;
    line-height: 1.6;
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.seo-content h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    margin-top: 20px;
    letter-spacing: 0.06em;
}

.seo-content p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

.seo-content .faq-item {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.seo-content .faq-item p {
    margin-bottom: 0;
    margin-top: 6px;
}

.seo-content code {
    font-family: var(--font-mono);
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--amber-ink-hi);
}

/* ─── FOOTER LINKS ──────────────────────────────────────────── */

.hidden { display: none; }

.legal-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-links a {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
}

.legal-links a:hover { color: var(--amber-ink); }

/* ─── LEGAL / INFO PAGES ────────────────────────────────────── */

.legal-page {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 2px solid var(--amber);
    border-radius: var(--r);
    padding: 44px;
    width: 100%;
    max-width: 760px;
    box-shadow:
        var(--panel-shadow);
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hex-soft);
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.legal-page > * { position: relative; z-index: 1; }

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 28px;
    text-align: left;
}

.legal-page p {
    font-family: var(--font-body);
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.78;
    font-size: 0.94rem;
}

.legal-page p strong {
    color: var(--text);
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-ink);
    text-decoration: none;
    transition: color 0.18s, gap 0.22s;
}

.back-link::before {
    content: '←';
    font-size: 0.9rem;
    font-weight: 400;
}

.back-link:hover {
    color: var(--amber-ink-hi);
    gap: 12px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */

.site-footer {
    padding: 32px 20px;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.18s;
}

.site-footer a:hover {
    color: var(--text-muted);
}

/* ─── SEO BLOCK (home) ──────────────────────────────────────── */

.seo-content {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.seo-content h2 { text-transform: uppercase; }
.seo-content h3 { text-transform: uppercase; }
.seo-content .faq-item strong { color: var(--text); }

.seo-content a,
.legal-page p a {
    color: var(--amber-ink);
    text-decoration: none;
}

.seo-content a:hover,
.legal-page p a:hover { color: var(--amber-ink-hi); }

.result-alt {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ─── CONTENT PAGES (charts) ───────────────────────────────── */

.content-page { max-width: 880px; }

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin: 34px 0 14px;
}

.legal-page h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 18px 0 8px;
}

.legal-page code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--amber-ink-hi);
}

.content-page h1 { margin-bottom: 16px; }

.content-page .lead {
    font-size: 1.05rem;
    color: var(--text);
}

.content-page .note {
    font-size: 0.8rem;
    margin-top: 6px;
}

.breadcrumbs {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: var(--amber-ink);
    text-decoration: none;
}

.breadcrumbs a:hover { color: var(--amber-ink-hi); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

.table-wrap {
    overflow-x: auto;
    margin: 22px 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 300;
    color: var(--text);
    white-space: nowrap;
}

.data-table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    white-space: normal;
}

.data-table th,
.data-table td {
    padding: 8px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table thead th {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-ink);
    background: var(--surface);
}

.data-table th[scope="row"],
.data-table thead th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--panel);
    z-index: 1;
}

.data-table thead th:first-child { background: var(--surface); }

.data-table th[scope="row"] {
    font-weight: 500;
    color: var(--text);
}

.data-table th[scope="row"] a {
    color: var(--amber-ink);
    text-decoration: none;
}

.data-table th[scope="row"] a:hover { color: var(--amber-ink-hi); }

.data-table small {
    display: block;
    font-size: 0.64rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 300;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td,
.data-table tbody tr:hover th { background: var(--surface-hi); }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.facts div {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.facts dt {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.facts dd {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text);
}

.formula-block {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber-dark);
    border-radius: var(--r);
    overflow-x: auto;
}

.formula-block code { white-space: nowrap; }

.legal-page .faq-item {
    margin-bottom: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.legal-page .faq-item h3 {
    margin: 0 0 6px;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.legal-page .faq-item p { margin-bottom: 0; font-size: 0.88rem; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s;
}

a.chip:hover {
    color: var(--amber-ink-hi);
    border-color: var(--amber-dark);
}

.chip.current {
    color: var(--on-amber);
    background: var(--amber);
    border-color: var(--amber);
}

.pager {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pager a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-ink);
    text-decoration: none;
}

.calc-embed {
    margin-top: 28px;
    animation-delay: 0.1s;
}

.calc-embed h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}

.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--amber-ink); }


/* ─── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 720px) {
    body {
        padding: 24px 16px 60px;
    }

    .calculator,
    .legal-page {
        padding: 26px 20px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .result-value {
        font-size: 3.2rem;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .data-table th,
    .data-table td { padding: 7px 10px; }
}

/* ─── TORQUE WRENCH HINT (under the result) ───────────────── */

.wrench {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    color: var(--text);
}

.wrench:empty { display: none; }

.wrench-title {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.wrench-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.wrench-spec {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.wrench-spec span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wrench-spec b {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--amber-ink-hi);
}

.wrench-spec b i {
    display: block;
    font-style: normal;
    white-space: nowrap;
}

.wrench-spec b.wrench-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.wrench-spec b small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.wrench-spec em {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text);
}

.wrench-text {
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.wrench-buy {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid var(--amber-dark);
    border-radius: var(--r);
    color: var(--amber-ink-hi);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s, border-color 0.15s;
}

.wrench-buy:hover,
.wrench-buy:focus-visible { background: var(--amber-glow); border-color: var(--amber); }

.wrench-tips {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 5px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 72%, transparent);
}

.wrench-tips li {
    position: relative;
    padding-left: 14px;
}

.wrench-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 1px;
    background: var(--amber);
}

.wrench-note {
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ─── KO-FI SUPPORT ─────────────────────────────────────────── */

.site-footer a.footer-support { display: block; margin-bottom: 10px; color: var(--amber-dark); }
.site-footer a.footer-support:hover { color: var(--amber-ink); }

/* ─── PANEL HEADER BAR (domain left, Ko-fi right) ───────────── */
/* A full-width bar under the panel's amber top border. It sits inside the
   panel's top padding (enlarged below for panels that have it), so it must
   stay shorter than that padding or it will overlap the first row. */

.calculator > .panel-head,
.legal-page > .panel-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border-hi);
}

/* the language menu may hang below a short panel (404, legal pages) */
.calculator:has(> .panel-head),
.legal-page:has(> .panel-head) { overflow: visible; }

/* room under the bar */
.calculator:has(> .panel-head) { padding-top: 64px; }
.legal-page:has(> .panel-head) { padding-top: 66px; }

.panel-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    color: var(--amber-ink);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.panel-tab:hover,
.panel-tab:focus-visible {
    color: var(--amber-ink-hi);
    background: var(--surface-hi);
}

.brand-tab {
    border-right: 1px solid var(--border-hi);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* theme toggle: resets the global calculator button style */
.panel-head .theme-toggle {
    width: auto;
    margin: 0 0 0 auto;
    padding: 0 12px;
    background: none;
    border: 0;
    border-left: 1px solid var(--border-hi);
    border-radius: 0;
    color: var(--amber-ink);
    box-shadow: none;
    animation: none;
    transform: none;
    cursor: pointer;
}
.panel-head .theme-toggle:hover,
.panel-head .theme-toggle:focus-visible,
.panel-head .theme-toggle:active { color: var(--amber-ink-hi); background: var(--surface-hi); }
[data-theme="light"] .lang-list { box-shadow: 0 12px 30px rgba(60,40,10,0.12); }
.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html:not([data-theme]) .theme-toggle { display: none; }
[data-theme="light"] .site-footer a.footer-support { color: var(--amber-ink); }

/* language menu: <details>, works without JS; a tiny inline script closes it on outside click / Esc */
.lang-menu {
    position: relative;
    border-left: 1px solid var(--border-hi);
}
.lang-menu > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.15s;
}
.lang-menu[open] > summary { color: var(--amber-ink-hi); background: var(--surface-hi); }
.lang-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-list {
    position: absolute;
    top: 100%;
    right: -1px;
    margin: 0;
    padding: 6px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 2px 4px;
    background: var(--panel);
    border: 1px solid var(--border-hi);
    border-top: 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    z-index: 5;
}
.lang-list a,
.lang-list span {
    display: block;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--r);
    white-space: nowrap;
}
.lang-list a:hover,
.lang-list a:focus-visible { color: var(--text); background: var(--surface-hi); }
.lang-list span[aria-current] { color: var(--amber-ink); }

.kofi-top {
    border-left: 1px solid var(--border-hi);
    letter-spacing: 0.02em;
}
.kofi-top svg { flex-shrink: 0; }

@media (max-width: 720px) {
    .panel-tab { height: 26px; padding: 0 12px; }
    .calculator:has(> .panel-head),
    .legal-page:has(> .panel-head) { padding-top: 46px; }
}
@media (max-width: 480px) {
    .kofi-top { padding: 0 7px; }
    .kofi-top svg { width: 16px; height: 16px; }
    .kofi-top-text { display: none; }
    .brand-tab { padding: 0 10px; letter-spacing: 0.18em; }
}
