/* ==========================================================================
   Thrive theme: warm editorial, following the Gala Food brand deck
   (white page, cream panels, burgundy banners, green spaced subtitles).
   One source of truth for colour, type, spacing and core components.
   Review it at /styleguide.html. Pages adopt it during the re-skin.
   ========================================================================== */

:root {
  /* ---- Brand palette and roles ------------------------------------------ */
  --c-primary: #6A130D;      /* banners, primary buttons, active navigation, English panel subtitles */
  --c-secondary: #B3292C;    /* panel titles, today markers, focus rings, hover on primary */
  --c-accent: #0D513C;       /* spaced English subtitles under page titles; published, saved, success */
  --c-bg: #FFFFFF;           /* page background (white, as in the brand deck) */
  --c-panel: #FAF4EA;        /* cream content panels */
  --c-text: #241D1C;         /* main text and page titles */
  --c-text-2: #7A6E66;       /* secondary text: on white or cream only */

  /* ---- Derived from the palette ----------------------------------------- */
  --c-surface: #FFFFFF;      /* inputs (white, also on cream panels) */
  --c-line: #E8DCCB;         /* hairline dividers */
  --c-line-strong: #D6C3AA;  /* input borders, table header rule */
  --c-tint: #F3E7E2;         /* selected / hover rows (use main text on it) */
  --c-accent-tint: #E2EEE8;  /* success background */
  --c-warn: #7A5200;         /* drafts and pending: text */
  --c-warn-tint: #F7ECD3;    /* drafts and pending: background */
  --c-sand: #EDE3D3;         /* neutral badge background (e.g. leave) */

  /* ---- Type -------------------------------------------------------------- */
  /* Brand fonts: Aptos / Arial for English, Microsoft YaHei for Chinese.
     Phones without them use PingFang (iOS) or Noto Sans (Android) for Chinese. */
  --font-display: "Aptos Display", Aptos, Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-body: Aptos, Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;

  /* Type scale (all screens). Standard text 14px, input text 16px, page heading 24px, section heading
     14px, line height 1.5. Enforced for headings and inputs at the end of this file. */
  --t-display: 1.5rem;     /* 24px  page headings                   */
  --t-h2: 0.875rem;        /* 14px  section headings                */
  --t-h3: 0.875rem;        /* 14px  card titles (section headings)   */
  --t-lead: 0.875rem;      /* 14px  intro paragraphs (standard text) */
  --t-body: 0.875rem;      /* 14px  standard text                    */
  --t-input: 1rem;         /* 16px  input text                       */
  --t-small: 0.8125rem;    /* 13px  captions, table notes            */
  --lh: 1.5;               /* line height                            */
  --t-eyebrow: 0.71875rem; /* 11.5px / 1.2 / 0.14em  uppercase labels */
  --t-subtitle: 0.9375rem; /* 15px / 1.3 / 0.22em    green spaced English under page titles */

  /* ---- Space, shape, motion ----------------------------------------------- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-control: 6px;        /* buttons, inputs */
  --r-panel: 10px;         /* panels, dialogs */
  --measure: 66ch;         /* comfortable reading width */
  --ease: 160ms ease;
}


/* ---- Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body.t-theme {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--t-body); line-height: var(--lh);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
.t-theme h1, .t-theme .t-display { font-family: var(--font-display); font-size: var(--t-display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--c-text); margin: 0; text-wrap: balance; }
/* Under a page title: the English name in green spaced capitals (e.g. 公司价值观 / CORE VALUES). */
.t-subtitle { font-size: var(--t-subtitle); line-height: 1.3; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent); font-weight: 400; margin: 0; }
.t-theme h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0; text-wrap: balance; }
.t-theme h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 700; margin: 0; }
.t-theme p { margin: 0; max-width: var(--measure); }
.t-lead { font-size: var(--t-lead); line-height: 1.55; color: var(--c-text-2); }
.t-small { font-size: var(--t-small); line-height: 1.45; letter-spacing: 0.005em; color: var(--c-text-2); }
.t-eyebrow { font-size: var(--t-eyebrow); line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--c-secondary); }
/* Chinese reads best without tightened tracking and with a little more leading. */
.t-theme :lang(zh) { letter-spacing: 0; }
.t-theme p:lang(zh), .t-theme .t-lead:lang(zh) { line-height: 1.75; }
.t-theme a { color: var(--c-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.t-theme a:hover { color: var(--c-secondary); }
.t-theme :focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 2px; }
.t-rule { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-6) 0; }

/* ---- Icons (Lucide-style line icons, 1.75 stroke) ---------------------------- */
.t-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---- Top bar: text tabs on a hairline -------------------------------------- */
.t-topbar { display: flex; gap: var(--s-1); align-items: center; padding: 0 var(--s-2); border-bottom: 1px solid var(--c-line); overflow-x: auto; }
.t-theme a.t-tab, .t-tab { text-decoration: none; }
.t-tab { display: inline-flex; gap: var(--s-2); align-items: center; padding: 14px var(--s-3) 12px; font: inherit; font-weight: 600; color: var(--c-text-2); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.t-tab:hover { color: var(--c-text); }
.t-tab[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ---- Page header: eyebrow, title, lead, hairline -------------------------- */
.t-pagehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-6); align-items: end; padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--c-line); }
.t-pagehead > div { display: grid; gap: var(--s-3); }
@media (max-width: 600px) { .t-pagehead { grid-template-columns: 1fr; padding-top: var(--s-6); } }

/* ---- Buttons ----------------------------------------------------------------- */
.t-btn { display: inline-flex; gap: var(--s-2); align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--s-4);
  font: inherit; font-weight: 700; font-size: var(--t-body); border-radius: var(--r-control); border: 1px solid var(--c-primary);
  background: var(--c-primary); color: #fff; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.t-btn:hover { background: var(--c-secondary); border-color: var(--c-secondary); }
.t-btn:disabled { opacity: 0.45; cursor: default; }
.t-btn--secondary { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.t-btn--secondary:hover { background: var(--c-tint); border-color: var(--c-line-strong); color: var(--c-text); }
.t-btn--quiet { background: transparent; color: var(--c-primary); border-color: transparent; padding: 0 var(--s-2); }
.t-btn--quiet:hover { background: transparent; color: var(--c-secondary); text-decoration: underline; }
.t-btn--danger { background: transparent; color: var(--c-secondary); border-color: var(--c-secondary); }
.t-btn--danger:hover { background: var(--c-secondary); color: #fff; }

/* ---- Form fields --------------------------------------------------------------- */
.t-field { display: grid; gap: 6px; font-size: var(--t-small); font-weight: 700; color: var(--c-text); }
.t-field input, .t-field select, .t-field textarea { font: inherit; font-weight: 400; font-size: var(--t-body); min-height: 40px; padding: 0 var(--s-3);
  color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-control); box-sizing: border-box; width: 100%; }
.t-field textarea { padding: var(--s-2) var(--s-3); min-height: 96px; }
.t-field input:focus, .t-field select:focus, .t-field textarea:focus { outline: 2px solid var(--c-secondary); outline-offset: 0; border-color: transparent; }
.t-field small { font-weight: 400; color: var(--c-text-2); }

/* ---- Badges -------------------------------------------------------------------- */
.t-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.5; background: var(--c-sand); color: var(--c-text); }
.t-badge--success { background: var(--c-accent-tint); color: var(--c-accent); }
.t-badge--draft { background: var(--c-warn-tint); color: var(--c-warn); }
.t-badge--alert { background: var(--c-tint); color: var(--c-primary); }

/* ---- Table: hairlines, no boxes ---------------------------------------------- */
.t-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.t-table th { text-align: left; font-size: var(--t-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-2); font-weight: 700; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-line-strong); }
.t-table td { padding: var(--s-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.t-table tbody tr:hover td { background: var(--c-tint); }
.t-table .num { text-align: right; }

/* ---- Shift chip (roster and schedules) --------------------------------------- */
.t-chip { display: grid; gap: 1px; padding: 6px 8px 6px 10px; border-left: 3px solid var(--chip, var(--c-primary)); background: var(--c-panel); border-radius: 0 var(--r-control) var(--r-control) 0; font-size: var(--t-small); line-height: 1.35; }
.t-chip strong { font-size: 0.8125rem; color: var(--c-text); }
.t-chip span { color: var(--c-text-2); }

/* ---- Panels: cream blocks on the white page, no borders or shadows ------------- */
.t-panel { background: var(--c-panel); border-radius: var(--r-panel); padding: var(--s-6) var(--s-6) var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.t-panel > h3 { font-size: 1.75rem; line-height: 1.2; color: var(--c-secondary); }          /* e.g. 对事不对人 */
.t-panel .t-panel-sub { font-size: var(--t-body); font-weight: 700; color: var(--c-primary); }  /* e.g. Focus on Issues, Not People */
.t-panel .t-panel-body { font-size: 1.1875rem; line-height: 1.7; color: var(--c-text); }        /* Chinese body */
.t-panel .t-panel-note { font-size: var(--t-body); line-height: 1.6; color: var(--c-text-2); margin-top: var(--s-4); } /* English body */
@media (max-width: 600px) { .t-panel { padding: var(--s-5) var(--s-4); } .t-panel > h3 { font-size: 1.375rem; } .t-panel .t-panel-body { font-size: 1.0625rem; } }

/* ---- Banner: burgundy block, white bold Chinese with spaced English ------------- */
.t-banner { background: var(--c-primary); color: #fff; text-align: center; padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-2); }
.t-banner strong { font-family: var(--font-display); font-size: 2.75rem; line-height: 1.1; letter-spacing: 0.08em; font-weight: 700; }
.t-banner span { font-size: 1.0625rem; letter-spacing: 0.24em; text-transform: uppercase; }
@media (max-width: 600px) { .t-banner strong { font-size: 2rem; } .t-banner span { font-size: 0.8125rem; letter-spacing: 0.18em; } }

/* ---- Footer line ------------------------------------------------------------------ */
.t-footer { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; font-size: var(--t-small); color: var(--c-text-2); padding: var(--s-5) 0; }
.t-footer .sep { width: 1px; height: 14px; background: var(--c-text-2); }

/* ---- Segmented control (e.g. Week / Month) ------------------------------------ */
.t-segment { display: inline-flex; border: 1px solid var(--c-line-strong); border-radius: var(--r-control); overflow: hidden; }
.t-segment button { font: inherit; font-weight: 700; font-size: var(--t-small); padding: 8px 16px; border: 0; background: transparent; color: var(--c-text-2); cursor: pointer; }
.t-segment button[aria-pressed="true"] { background: var(--c-primary); color: #fff; }

/* ==========================================================================
   Re-skin of existing pages. theme.css is linked LAST on every page, so these
   rules adjust the page styles to the brand deck look. Colours in the page
   stylesheets already point at the variables above.
   ========================================================================== */

body.t-theme { background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); }
.t-theme button, .t-theme input, .t-theme select, .t-theme textarea { font-family: inherit; }
.t-theme h1 { font-family: var(--font-display); color: var(--c-text); }
.t-theme h2, .t-theme h3 { font-family: var(--font-display); }

/* ---- Management pages ------------------------------------------------------ */
.t-theme .hr-workspace { background: transparent; }
/* Page header: title first, then the English label in green spaced capitals, then the intro. */
.t-theme .hr-page-header { padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-5); }
.t-theme .hr-page-header > div:first-child { display: flex; flex-direction: column; gap: var(--s-2); }
.t-theme .hr-page-header > div:first-child > h1 { order: 1; font-size: var(--t-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.t-theme .hr-page-header > div:first-child > .hr-eyebrow { order: 2; font-size: var(--t-subtitle); letter-spacing: 0.22em; font-weight: 400; color: var(--c-accent); margin: 0; }
.t-theme .hr-page-header > div:first-child > :not(h1):not(.hr-eyebrow) { order: 3; color: var(--c-text-2); max-width: var(--measure); margin: var(--s-1) 0 0; }
.t-theme .hr-eyebrow { color: var(--c-secondary); letter-spacing: 0.14em; }
/* Cards become cream panels: no border, no shadow. */
.t-theme .hr-chart-card, .t-theme .hr-filter-card { background: var(--c-panel); border: 0; box-shadow: none; border-radius: var(--r-panel); }
.t-theme .hr-chart-card input, .t-theme .hr-chart-card select, .t-theme .hr-chart-card textarea,
.t-theme .hr-filter-card input, .t-theme .hr-filter-card select { background: var(--c-surface); border-color: var(--c-line-strong); }
/* Sidebar: white with a hairline; the current page is cream with a burgundy rule. */
.t-theme .thrive-admin-sidebar { background: var(--c-bg); border-right: 1px solid var(--c-line); box-shadow: none; }
.t-theme .thrive-admin-sidebar nav a { color: var(--c-text); }
.t-theme .thrive-admin-sidebar nav a[aria-current] { background: var(--c-panel); color: var(--c-primary); box-shadow: inset 3px 0 var(--c-primary); }
/* Top menu: text tabs on a hairline, like the style guide. */
.t-theme .thrive-topbar { background: var(--c-bg); border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; box-shadow: none; padding: 0 var(--s-1); margin: -8px 0 var(--s-5); }
.t-theme .topbar-button, .t-theme .topbar-sidebar-toggle { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 14px var(--s-3) 12px; background: none; color: var(--c-text-2); font-weight: 600; }
.t-theme .topbar-button:hover, .t-theme .topbar-sidebar-toggle:hover, .t-theme .topbar-button[aria-expanded="true"] { background: none; color: var(--c-text); }
.t-theme .topbar-menu.is-current > .topbar-button { background: none; color: var(--c-primary); border-bottom-color: var(--c-primary); }
.t-theme .topbar-sidebar-toggle[aria-pressed="true"] { background: none; color: var(--c-primary); }
.t-theme .topbar-dropdown, .t-theme .topbar-submenu { border-color: var(--c-line); border-radius: var(--r-control); box-shadow: 0 12px 30px rgba(36, 29, 28, 0.12); }
.t-theme .topbar-dropdown a:hover, .t-theme .topbar-sub-button:hover, .t-theme .topbar-sub-button[aria-expanded="true"] { background: var(--c-panel); color: var(--c-primary); }
/* Primary actions use the brand primary. */
.t-theme #publishButton, .t-theme .primary-action, .t-theme .roster-dialog-actions button[value="save"], .t-theme .roster-dialog-actions button[value="copy"] {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff; border-radius: var(--r-control); }
.t-theme #publishButton:hover:not(:disabled), .t-theme .primary-action:hover:not(:disabled) { background: var(--c-secondary); border-color: var(--c-secondary); }

/* ---- Staff app pages (My Work, My Schedule, Clock in) ------------------------ */
.t-theme .eyebrow { color: var(--c-accent); letter-spacing: 0.22em; font-weight: 400; font-size: 0.8125rem; }
.t-theme .card, .t-theme .service-grid a, .t-theme .week-day, .t-theme .month-cell:not(.blank) { background: var(--c-panel); border-color: transparent; box-shadow: none; }
.t-theme .card { border-radius: var(--r-panel); }
.t-theme .week-day.today, .t-theme .month-cell.today { box-shadow: inset 0 0 0 2px var(--c-primary); border-color: transparent; }
.t-theme .sched-shift, .t-theme .mini-shift { background: var(--c-bg); }
.t-theme .service-bottom { background: var(--c-bg); border-top: 1px solid var(--c-line); }
.t-theme .service-bottom [aria-current] { color: var(--c-primary); }
.t-theme .view-switch input:checked + span { background: var(--c-primary); }
.t-theme .tile-icon { display: inline-flex; color: var(--c-primary); }
.t-theme .tile-icon .t-icon { width: 26px; height: 26px; }
.t-theme .thrive-admin-sidebar .t-icon { width: 17px; height: 17px; vertical-align: -3px; color: currentColor; }
.t-theme .thrive-topbar .t-icon { width: 17px; height: 17px; vertical-align: -3px; }

/* styles.css forces older page backgrounds (and a decorative gradient) with !important;
   the brand look is a plain white page, so the theme overrides them the same way. */
html:has(body.t-theme), body.t-theme,
.t-theme .admin-page, .t-theme .admin-main, .t-theme .employee-page, .t-theme .employee-workspace,
.t-theme .dashboard-page, .t-theme .leaderboard-page, .t-theme .tasks-page { background: var(--c-bg) !important; background-image: none !important; }

/* No drop-shadowed cards or buttons anywhere (brand rule); hairlines and cream do the separating. */
.t-theme [class*="card"]:not(.t-panel), .t-theme [class*="panel"]:not(.t-panel), .t-theme [class*="header"]:not(.hr-page-header):not(.t-pagehead) { box-shadow: none !important; }
.t-theme button, .t-theme .button, .t-theme [class*="btn"] { box-shadow: none !important; }

/* ---- Text fields site-wide: flat 1px hairline, never the browser's bevel ---------
   Zero specificity, so any page's own field rules still win. */
:where(.t-theme) :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]), select, textarea) {
  border-width: 1px; border-style: solid; border-color: var(--c-line-strong); border-radius: var(--r-control);
  font-family: inherit; color: var(--c-text); background-color: var(--c-surface);
}

/* ---- Outlet pages and review cards: cream panels, style-guide fields and buttons --- */
.t-theme .review-item { background: var(--c-panel) !important; border: 0; border-radius: var(--r-panel); padding: var(--s-5); gap: var(--s-4); }
.t-theme .review-item.needs-review { box-shadow: inset 4px 0 0 var(--c-accent); }
.t-theme .outlet-card-head strong { font-family: var(--font-display); font-size: 1.125rem; }
.t-theme .outlet-grid { gap: var(--s-4); }
.t-theme .outlet-grid label { gap: 6px; font-size: var(--t-small); font-weight: 700; color: var(--c-text); }
.t-theme .outlet-grid input { font: inherit; font-weight: 400; font-size: var(--t-body); height: 40px; padding: 0 var(--s-3); width: 100%;
  border: 1px solid var(--c-line-strong); border-radius: var(--r-control); background: var(--c-surface); color: var(--c-text); box-sizing: border-box; }
.t-theme .outlet-grid input:focus { outline: 2px solid var(--c-secondary); outline-offset: 0; border-color: transparent; }
.t-theme .outlet-grid small { font-weight: 400; color: var(--c-text-2); }
.t-theme .outlet-actions button, .t-theme #useMyLocation { min-height: 40px; padding: 0 var(--s-4); font: inherit; font-weight: 700; font-size: var(--t-small);
  border-radius: var(--r-control); border: 1px solid var(--c-line-strong); background: transparent; color: var(--c-text); cursor: pointer; }
.t-theme .outlet-actions button:hover, .t-theme #useMyLocation:hover { background: var(--c-tint); }
.t-theme .outlet-actions button[type="submit"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.t-theme .outlet-actions button[type="submit"]:hover { background: var(--c-secondary); border-color: var(--c-secondary); }
.t-theme .outlet-actions button[data-clear] { color: var(--c-secondary); border-color: var(--c-secondary); margin-left: auto; }
.t-theme .outlet-actions button[data-clear]:hover { background: var(--c-secondary); color: #fff; }
.t-theme #useMyLocation { min-height: 32px; padding: 0 var(--s-3); }
.t-theme .outlet-actions a { font-weight: 700; color: var(--c-primary); padding: 0 var(--s-2); }
.t-theme .hr-filters input:not([type="checkbox"], [type="range"]), .t-theme .hr-filters select { font-weight: 400; font-size: var(--t-body); min-height: 40px; padding: 0 var(--s-3); }
.t-theme .hr-filter-card + .review-grid { margin-top: var(--s-4); }

/* ---- Top-bar dropdowns: same type size as the bar, rows line up --------------- */
.t-theme .thrive-topbar, .t-theme .topbar-button, .t-theme .topbar-sidebar-toggle, .t-theme .topbar-link { font-size: var(--t-small); }
.t-theme .topbar-dropdown, .t-theme .topbar-submenu { padding: 6px; min-width: 190px; }
.t-theme .topbar-dropdown li { margin: 0; padding: 0; }
.t-theme .topbar-dropdown a, .t-theme .topbar-sub-button {
  display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; min-height: 36px;
  margin: 0; padding: 0 12px; font: inherit; font-size: var(--t-small); font-weight: 600; line-height: 1.3;
  color: var(--c-text); background: none; border: 0; border-radius: var(--r-control); box-shadow: none; text-decoration: none; }
.t-theme .topbar-create > .topbar-sub-button { font-weight: 700; color: var(--c-primary); }
.t-theme .topbar-dropdown a[aria-current="page"] { color: var(--c-secondary); font-weight: 700; }
.t-theme .topbar-create { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--c-line); }
/* The sub-menu's first row sits level with "Create" (offsets the dropdown's 6px padding + 1px border) */
.t-theme .topbar-submenu { top: -7px; left: calc(100% + 13px); }

/* ---- Staff pages: readable primary links, view switch in the masthead ------------ */
.t-theme a.action { color: #fff; font-weight: 700; background: var(--c-primary); }
.t-theme a.action:hover { background: var(--c-secondary); }
.t-theme .masthead .account-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.t-theme .masthead .view-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 999px;
  background: #fff; color: var(--c-text); font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }
.t-theme .masthead .view-link:hover { background: var(--c-tint); }

/* ---- Type scale, enforced on every page ------------------------------------------------------------
   Standard text 14px, input text 16px (also stops phones zooming in on a field), page heading 24px,
   section heading 14px, line height 1.5. These win over page styles so every page reads the same; the
   brand banner and the Chinese motto panel keep their display sizes. */
body.t-theme { font-size: 14px; line-height: 1.5; }
.t-theme h1, .t-theme .t-display, .t-theme .hr-page-header h1 { font-size: 24px !important; line-height: 1.25 !important; letter-spacing: -0.01em !important; }
.t-theme h2:not(.t-panel > *), .t-theme h3:not(.t-panel > *), .t-theme .hr-section-title h2 { font-size: 14px !important; line-height: 1.5 !important; letter-spacing: 0 !important; }
.t-theme p, .t-theme li, .t-theme td, .t-theme th, .t-theme dd, .t-theme dt, .t-theme label, .t-theme summary { line-height: 1.5; }
.t-theme :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), select, textarea) { font-size: 16px !important; line-height: 1.5; }


/* Fields side by side line up (all pages): every single-line text, date and number box and every drop-down list
   has the same height, and their text is regular weight (a label's bold does not carry into the field). */
.t-theme input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]),
.t-theme select:not([multiple]):not([size]) { height: 46px; box-sizing: border-box; font-weight: 400 !important; }
