:root {
  /* STD-002 reference theme (ui-patterns.html, table-rows.html, globals.css) */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;
  --input-hover: #aeb5c1;

  --text: #1a1d23;
  --text-secondary: #4b5160;
  --text-tertiary: #8a90a0;

  --accent: #2f5fdb;
  --accent-hover: #264ec2;
  --accent-soft: #eaf0ff;
  --accent-border: #c7d7fb;

  --grey-bg: #eef0f3;
  --grey-text: #5a6070;

  --amber-bg: #fff4e0;
  --amber-text: #93610a;
  --amber-border: #f4d9a3;

  --red-bg: #fdecec;
  --red-text: #c0342c;
  --red-border: #f5c4c0;

  --green-bg: #e7f6ec;
  --green-text: #1c7a3d;
  --green-border: #bfe6cb;
  --green-solid: #1c7a3d;

  --blue-bg: #e8f0ff;
  --blue-text: #0e4ecc;

  --purple-bg: #f3e8ff;
  --purple-text: #7e22ce;
  --purple-border: #e2c7fb;

  --head-bg: #e3e8ef;
  --head-line: #cdd4de;
  --head-text: #343b48;
  --row-hover: #f7f9fc;
  --row-press: #eef1f6;

  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-sm: 0 1px 2px rgba(20, 24, 32, 0.04);
  --shadow-btn: 0 4px 10px rgba(20, 24, 32, 0.12);
  --shadow-card-hover: 0 6px 18px rgba(47, 95, 219, 0.12);
  --shadow-md: 0 4px 16px rgba(20, 24, 32, 0.12);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
  font-family: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Preview ribbon (shown only when Google Sheets/Form URLs are empty) */
.preview-ribbon {
  background: #1a1d23;
  color: #f6f7f9;
  font-size: 12.5px;
  padding: 7px clamp(16px, 3vw, 32px);
  text-align: center;
}

.preview-ribbon strong {
  color: #f59e0b;
}

.preview-ribbon code {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* Sticky top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
}

.brand:hover {
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Quiet nav & breadcrumb controls (STD-002 §3.1) */
.nav-item,
.back,
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s, border-color .15s, color .15s;
}

.nav-item:hover,
.back:hover,
.crumb a:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-btn);
}

.nav-item:active,
.back:active,
.crumb a:active {
  transform: translateY(1px) scale(.97);
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.10);
  transition-duration: .06s;
}

.nav-item:focus-visible,
.back:focus-visible,
.crumb a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

.nav-item.active:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Buttons (STD-002 §3 + §3.1 Interaction Feedback) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s, border-color .15s, color .15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-btn);
}

.btn:active {
  transform: translateY(1px) scale(.97);
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.10);
  transition-duration: .06s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn .b-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 13px;
}

.btn-sm .b-ico {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-approve {
  background: var(--green-solid);
  color: #ffffff;
}

.btn-approve:hover {
  background: #166030;
}

.btn-danger {
  background: #ffffff;
  color: var(--red-text);
  border-color: var(--red-border);
}

.btn-danger:hover {
  background: var(--red-bg);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--grey-bg);
}

.btn-quiet {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-quiet:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Main container (centered max-width for standalone hub without sidebar) */
.container {
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* STD-002 §4 Page header: Back on its own line, title below, no background band */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-left: -10px;
}

.crumb .sep {
  color: var(--text-tertiary);
  padding: 0 2px;
  font-size: 13px;
}

.crumb .here {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  padding: 4px 8px;
}

.page-head h1 {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.page-head p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Landing page hero (no heavy box — sits cleanly on canvas, STD-002 §1/§4 spirit) */
.landing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.landing-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.landing-head p {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Landing 2x2 clickable cards (STD-002 §3.1 card hover/press) */
.hub-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hub-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}

.hub-tile:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.005);
  text-decoration: none;
}

.hub-tile:active {
  transform: scale(.99);
  transition-duration: .06s;
}

.hub-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub-tile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.hub-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
}

.hub-tile-icon.tone-red {
  background: var(--red-bg);
  color: var(--red-text);
}

.hub-tile-icon.tone-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.hub-tile-icon.tone-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.hub-tile h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.hub-tile p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hub-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Generic Card (STD-002 §4 dp-card style) */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

/* Announcements banner (STD-002 §2 state banners) */
.announcements-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner {
  border-radius: var(--radius);
  border: 1px solid var(--accent-border);
  background: var(--blue-bg);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.banner.type-peringatan,
.banner.type-pemeliharaan {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.banner.type-darurat,
.banner.type-gangguan {
  background: var(--red-bg);
  border-color: var(--red-border);
}

.banner.type-selesai,
.banner.type-perbaikan {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(26, 29, 35, 0.08);
  color: var(--text);
  margin-right: 8px;
}

.banner-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.banner-body {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.banner-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Quick start strip (panduan.html) */
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quickstart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quickstart-item h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.quickstart-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.code-chip {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
  display: inline-block;
}

/* Section subheading */
.subhead {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
}

/* STD-002 §1 Toolbar, Search with Icon & Cycling-style Chips */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* STD-002 §3.1 + §6: Fields never move; hover darkens/thickens inside; focus rings in accent */
.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.search-input:hover {
  border-color: var(--input-hover);
  box-shadow: inset 0 0 0 1px var(--input-hover);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft);
}

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

/* STD-002 §6.1 + §3.1 interactive chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s, border-color .15s, color .15s;
}

.chip:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--input-hover);
  color: var(--text);
  box-shadow: 0 3px 8px rgba(20, 24, 32, 0.08);
}

.chip:active {
  transform: scale(.97);
  transition-duration: .06s;
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

/* Role cards grid (panduan.html) */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}

.role-card.is-clickable {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.role-card.is-clickable:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.005);
  text-decoration: none;
}

.role-card.is-clickable:active {
  transform: scale(.99);
  transition-duration: .06s;
}

.role-dept {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grey-bg);
  color: var(--grey-text);
  margin-bottom: 6px;
}

.role-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}

.role-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.role-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* lapor.html: Centered main Bug Report focus (NO card!) */
.report-focus {
  text-align: center;
  max-width: 620px;
  margin: 8px auto 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.report-focus h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.report-focus p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.report-focus-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 12.5px;
  font-weight: 600;
}

/* Muted emergency strip right before Papan Status Laporan */
.emergency-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--grey-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.emergency-strip strong {
  color: var(--text);
}

.emergency-strip-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* STD-002 §1 Table Rows (Look A: one white surface, blue-grey header band, rows never move) */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.tbl thead th {
  background: var(--head-bg);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--head-text);
  padding: 11px 16px;
  border-bottom: 1px solid var(--head-line);
  white-space: nowrap;
}

.tbl thead th:first-child {
  border-top-left-radius: calc(var(--radius) - 1px);
}

.tbl thead th:last-child {
  border-top-right-radius: calc(var(--radius) - 1px);
}

.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr {
  transition: background-color .15s var(--ease);
}

.tbl tbody tr:hover {
  background: var(--row-hover);
}

.tbl tbody tr:active {
  background: var(--row-press);
}

.mono-code {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* STD-002 §8.4 Status Badges (only the 6 theme colours) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.b-blue {
  background: var(--blue-bg);
  color: var(--blue-text);
  border-color: var(--accent-border);
}

.b-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-color: var(--amber-border);
}

.b-green {
  background: var(--green-bg);
  color: var(--green-text);
  border-color: var(--green-border);
}

.b-grey {
  background: var(--grey-bg);
  color: var(--grey-text);
  border-color: var(--border-strong);
}

.b-red {
  background: var(--red-bg);
  color: var(--red-text);
  border-color: var(--red-border);
}

.b-purple {
  background: var(--purple-bg);
  color: var(--purple-text);
  border-color: var(--purple-border);
}

.board-state {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* batasan.html */
.rules-callout {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.rules-callout h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--amber-text);
}

.rules-callout ol {
  margin: 0;
  padding-left: 20px;
}

.rules-callout li {
  margin-bottom: 7px;
  font-size: 13.5px;
}

.rules-callout li:last-child {
  margin-bottom: 0;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.limit-group h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.limit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.limit-list li {
  font-size: 13.5px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.limit-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.limit-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.limit-list span {
  color: var(--text-secondary);
}

details.more-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
}

details.more-details summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

details.more-details ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

details.more-details li {
  margin-bottom: 5px;
}

/* kontak.html */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-grid h2 {
  margin: 0 0 10px;
  font-size: 15.5px;
}

.contact-line {
  font-size: 15.5px;
  font-weight: 700;
  margin: 6px 0;
}

.outage-steps {
  margin: 10px 0 0;
  padding-left: 20px;
}

.outage-steps li {
  margin-bottom: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-pdp {
  color: var(--text-secondary);
  font-weight: 500;
}

/* STD-002 §2 Toasts (bottom-right, fixed width, countdown bar, pause on hover) */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 40px));
}

.toast {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px 15px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid;
  font-size: 13.5px;
  line-height: 1.45;
  animation: tin .18s ease;
}

.toast.info {
  background: var(--blue-bg);
  color: var(--blue-text);
  border-color: var(--accent-border);
}

.toast.warning {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-color: var(--amber-border);
}

.toast .t-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.toast .t-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  animation: tbar 4s linear forwards;
}

.toast:hover .t-bar {
  animation-play-state: paused;
}

@keyframes tin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes tbar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Reduced motion (STD-002 §3.1) */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .chip,
  .nav-item,
  .back,
  .crumb a,
  .hub-tile,
  .role-card.is-clickable {
    transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
  }

  .btn:hover,
  .btn:active,
  .chip:hover,
  .chip:active,
  .nav-item:hover,
  .nav-item:active,
  .back:hover,
  .back:active,
  .crumb a:hover,
  .crumb a:active,
  .hub-tile:hover,
  .hub-tile:active,
  .role-card.is-clickable:hover,
  .role-card.is-clickable:active {
    transform: none;
  }
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .quickstart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hub-nav-grid,
  .quickstart-grid,
  .limits-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    max-width: none;
    width: 100%;
  }

  .nav-links {
    width: 100%;
  }
}
