/* The GAS Manual — light "paper" theme modeled on the design examples:
   warm off-white background, white panels, dark code blocks, IBM Plex fonts. */

/* Self-hosted IBM Plex (SIL OFL), downloaded from github.com/IBM/plex */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
}

:root {
  --bg: #F8F7F3;          /* warm off-white page background */
  --panel: #FFFFFF;
  --panel-alt: #F4F3EF;    /* table header background */
  --border: #E2E0D9;
  --border-soft: #EEECE6;
  --text: #14161B;
  --text-body: #2B2E35;
  --muted: #5B5E66;
  --accent: #1D4ED8;
  --code-bg: #101217;      /* dark code blocks like the examples */
  --code-border: #242833;
  --code-text: #D6D9E0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace; }

/* ===== header ===== */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

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

.brand-badge {
  width: 30px; height: 30px;
  display: block;
  border-radius: 7px;
}

.brand-name { font-size: 15px; font-weight: 600; }

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

header nav { display: flex; gap: 2px; font-size: 14px; }

header nav a {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #3A3D45;
}

header nav a:hover { background: var(--panel-alt); }

/* the page you are currently on */
header nav a.active {
  background: var(--panel-alt);
  color: var(--text);
  font-weight: 600;
}

.spacer { flex-grow: 1; }

/* ===== work-in-progress notice (common.js) ===== */
.preview-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: #FBF3E6;
  border-bottom: 1px solid #EBD8B8;
  color: var(--text-body);
  font-size: 14px;
}
.preview-notice p { margin: 0; flex: 1; }
.preview-notice strong { color: #A15412; }
.preview-notice button {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #DCC49B;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.preview-notice button:hover { background: var(--panel-alt); }
.preview-notice button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .preview-notice { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
}

/* ===== toast (common.js) ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  max-width: min(90vw, 480px);
  padding: 10px 18px;
  background: var(--text, #1a1a1a);
  color: var(--panel);
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== syntax segmented control ===== */

.syntax-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #ECEAE4;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.syntax-group button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
}

/* .active is set from app.js on the selected syntax */
.syntax-group button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 22, 27, 0.12);
}

/* ===== layout ===== */

main {
  flex-grow: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 80px;
}

@media (max-width: 900px) {
  main { padding: 32px 24px 64px; }
}

section { margin-bottom: 56px; }

h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.section-note { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }

/* ===== tables (registers + syscalls) ===== */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

table { width: 100%; border-collapse: collapse; }

th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-soft);
}

tbody tr:last-child td { border-bottom: 0; }

tbody tr { cursor: pointer; }
tbody tr:hover td { background: #FBFAF7; }
tbody tr.selected td { background: #EFF3FE; }

/* purely informational tables: no click affordance */
.table-wrap.static tbody tr { cursor: default; }
.table-wrap.static tbody tr:hover td { background: transparent; }

/* reserved rflags bits: present for completeness, visually muted */
tr.reserved td { color: var(--muted); }
tr.reserved td.reg { color: var(--muted); font-weight: 400; }

td.reg { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--text); }

/* category section headings on the instruction index */
.category-heading {
  margin: 28px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-heading:first-child { margin-top: 4px; }

/* colored save-advice text, like the reference table's intent */
.save-free { color: #1F6B45; }
.save-careful { color: #8A5A00; }

/* ===== detail panels (shown under tables after a row click) ===== */

.detail {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.detail h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.015em; }
.detail h3 .mono { color: var(--accent); }
.detail p { margin: 8px 0; color: var(--text-body); }
.detail table { margin-top: 12px; }
.detail .table-wrap { margin-top: 12px; }

/* inline code chips, like .ic in the examples */
.ic {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
  background: #EFEDE7;
  border: 1px solid #E4E1D9;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ===== instruction page bits ===== */

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin: 0 6px 12px 0;
  border-radius: 6px;
  background: #ECEAE4;
  font-size: 12.5px;
  color: #3A3D45;
}

.tag .mono { margin-left: 5px; }

/* dark code block with a small title bar, like the examples */
.codeblock {
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--code-bg);
  margin: 10px 0 4px;
}

.codeblock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 14px;
  background: #161920;
  border-bottom: 1px solid var(--code-border);
}

.codeblock-bar span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9AA0AB;
}

.codeblock pre {
  margin: 0;
  padding: 12px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 22px;
  color: var(--code-text);
  overflow-x: auto;
}

.code-tools { display: flex; align-items: center; gap: 12px; }
#hero-code-copy { display: flex; }
.copy-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #AEBACD;
  cursor: pointer;
}
.copy-code:hover { background: #242A35; border-color: #404B5C; color: #FFFFFF; }
.copy-code:focus-visible { outline: 2px solid #9CC2FF; outline-offset: 2px; }
.copy-code:disabled { cursor: progress; }
.copy-code[data-state="copied"] { color: #8BDDB1; }
.copy-code[data-state="error"] { color: #FFB4A9; }
.copy-code .copy-code-icon {
  width: 17px;
  height: 17px;
  color: inherit;
  background: currentColor;
  mask: url("/logo/lucide-copy.svg") center / contain no-repeat;
}
.copy-code[data-state="copied"] .copy-code-icon { mask-image: url("/logo/lucide-check.svg"); }
.copy-code-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.example .explanation { margin: 6px 0 14px; font-size: 13.5px; color: var(--muted); }

/* ===== landing page ===== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px;
  align-items: start;
  padding: 32px 0 16px;
}

/* stack the code window under the copy when the columns get cramped */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-code { max-width: 640px; }
}

.hero-kicker { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-sub { margin: 0 0 28px; max-width: 560px; font-size: 17px; color: #3A3D45; }

.search-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #3A3D45; }

#search {
  width: 100%;
  max-width: 560px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #CFCCC3;
  border-radius: 12px;
  background: var(--panel);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 22, 27, 0.06);
}

#search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

#search-results { max-width: 560px; margin-top: 10px; }

/* dark hello.s window beside the hero copy */
.hero-code {
  border: 1px solid var(--code-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: 0 24px 48px -24px rgba(20, 22, 27, 0.35);
}

.hero-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 14px;
  background: #161920;
  border-bottom: 1px solid var(--code-border);
}

.hero-code-bar .file { font-size: 12.5px; color: var(--code-text); }

.hero-code-bar .syntax-badge {
  font-size: 11px;
  color: #9AA0AB;
  padding: 2px 8px;
  border: 1px solid #2E333E;
  border-radius: 4px;
}

.hero-code-body { padding: 10px 0 12px; overflow-x: auto; }

.ln {
  display: flex;
  white-space: pre;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 20px;
  color: var(--code-text);
}

.gut {
  width: 44px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 16px;
  color: #7C8290;
  user-select: none;
}

.hero-code-run {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--code-border);
  background: #0B0D11;
  font-size: 13px;
  line-height: 20px;
  color: var(--code-text);
  overflow-x: auto;
}

.hero-code-run .prompt { color: #7DD3C0; }
.hero-code-run .out { color: #9AA0AB; }

/* jump-to chips under the hero search */
.jump-to {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.jump-label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.jump-chip {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #DAD7CF;
  border-radius: 8px;
  background: var(--panel);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}

.jump-chip:hover { border-color: var(--accent); }

/* assembly token colors used by the hero listing */
.t-l { color: #9CC2FF; }
.t-m { color: #F3F4F6; font-weight: 500; }
.t-d { color: #C4B5FD; }
.t-r { color: #7DD3C0; }
.t-i { color: #F6C177; }
.t-s { color: #9CC2FF; }
.t-q { color: #B5D99C; }
.t-c { color: #8F95A3; }

.result-group {
  padding: 10px 2px 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.result {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
}

.result:hover { border-color: var(--accent); }

.result-name { font-weight: 600; white-space: nowrap; }

.result-desc {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
}

.area-card:hover { border-color: var(--accent); }

.area-number { font-size: 12px; color: var(--muted); }

.area-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }

.area-desc { font-size: 14px; line-height: 1.55; color: #4A4D55; }

.area-sample {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: #3A3D45;
}

/* ===== detail pages (instruction.html, syscall.html) ===== */

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .mono { color: var(--text); }

.page-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }

.page-head h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-sub { font-size: 19px; color: #3A3D45; }

.description { margin: 10px 0 14px; max-width: 720px; color: var(--text-body); }

:is(.syscall-page, .instruction-page) h1,
:is(.syscall-page, .instruction-page) h2,
:is(.syscall-page, .instruction-page) h3,
:is(.syscall-page, .instruction-page) th,
:is(.syscall-page, .instruction-page) .codeblock-bar span { letter-spacing: 0; }

:is(.syscall-page, .instruction-page) .page-head { flex-wrap: wrap; gap: 8px 16px; }
:is(.syscall-page, .instruction-page) .page-head h1 { font-size: 36px; overflow-wrap: anywhere; }
:is(.syscall-page, .instruction-page) .page-sub { font-size: 16px; }
.syscall-intro,
.instruction-intro { margin-bottom: 28px; }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 40px;
  align-items: start;
}

.doc-body { min-width: 0; }
.doc-body h2 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
.doc-body h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
:is(.syscall-document, .instruction-document) [id] { scroll-margin-top: 84px; }

:is(.syscall-page, .instruction-page) .table-wrap { overflow-x: auto; border-radius: 8px; }
:is(.syscall-document, .instruction-document) table { min-width: 580px; }
:is(.syscall-document, .instruction-document) td { vertical-align: top; overflow-wrap: anywhere; }
:is(.syscall-document, .instruction-document) td.reg { white-space: nowrap; overflow-wrap: normal; }
:is(.syscall-document, .instruction-document) .signature {
  margin: 4px 0 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
:is(.syscall-document, .instruction-document) .signature code { font: inherit; }
:is(.syscall-document, .instruction-document) .signature-name { color: var(--text); font-weight: 600; }
:is(.syscall-document, .instruction-document) .codeblock { border-radius: 8px; }
:is(.syscall-document, .instruction-document) .codeblock-bar { min-height: 36px; height: auto; gap: 8px; flex-wrap: wrap; padding: 8px 12px; }
:is(.syscall-document, .instruction-document) .codeblock pre { max-width: 100%; }
.syscall-document .return-value { margin-top: 18px; }
:is(.syscall-document, .instruction-document) .example { margin: 20px 0 28px; }
:is(.syscall-document, .instruction-document) .explanation { max-width: 82ch; line-height: 1.65; }
:is(.syscall-document, .instruction-document) summary { cursor: pointer; color: var(--muted); font-size: 13px; }
:is(.syscall-document, .instruction-document) summary:hover { color: var(--accent); }
:is(.syscall-document, .instruction-document) summary:focus-visible,
:is(.syscall-page, .instruction-page) a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.call-template { margin-top: 20px; }
.example-build { margin-top: 12px; }

.instruction-forms { margin: 0 0 24px; }
.instruction-forms > div { margin-bottom: 16px; }
.instruction-document .instruction-forms .signature { margin: 0 0 4px; font-size: 15px; }
.instruction-forms dd { margin: 0; max-width: 82ch; font-size: 13px; color: var(--text-body); }
.instruction-document .flag-names { min-width: 100px; max-width: 180px; }
.instruction-index table { min-width: 780px; }
.instruction-index td { vertical-align: top; }
.instruction-index td a { color: var(--accent); text-underline-offset: 3px; }
.instruction-index td:last-child { max-width: 300px; font-size: 12px; }

.doc-list { padding-left: 22px; margin: 14px 0 20px; max-width: 82ch; color: var(--text-body); }
.doc-list li { padding-left: 2px; margin-bottom: 10px; overflow-wrap: anywhere; }
.doc-note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0; max-width: 82ch; }
.doc-note p { margin: 0; color: var(--text-body); }
.doc-warning { border-left-color: #A15412; }
.doc-note h3 { font-size: 15px; }
.source-list a,
.related-syscalls a,
.related-instructions a { color: var(--accent); text-underline-offset: 3px; }
.related-syscalls,
.related-instructions { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; }

.doc-toc { position: sticky; top: 88px; }
.doc-toc summary { color: var(--text); font-weight: 600; }
.doc-toc ul { list-style: none; padding: 0; margin: 14px 0 0; }
.doc-toc li { margin-bottom: 6px; }
.doc-toc a { display: block; border-left: 2px solid var(--border); padding: 4px 0 4px 12px; font-size: 13px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.doc-toc a:hover { color: var(--accent); border-color: var(--accent); }
.syscall-index table { min-width: 860px; }
.syscall-index td { vertical-align: top; }
.syscall-index td a { color: var(--accent); text-underline-offset: 3px; }
.syscall-index td:nth-child(3) { width: 37%; }

@media (max-width: 1000px) {
  .doc-layout { display: flex; flex-direction: column; gap: 28px; }
  .doc-body { width: 100%; }
  .doc-toc { position: static; order: -1; width: 100%; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
}

@media (max-width: 800px) {
  :is(.syscall-page, .instruction-page) header { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 16px 0; }
  :is(.syscall-page, .instruction-page) header .brand { min-width: 0; gap: 8px; }
  :is(.syscall-page, .instruction-page) header .brand-name { font-size: 13px; }
  :is(.syscall-page, .instruction-page) header .spacer { display: none; }
  :is(.syscall-page, .instruction-page) header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  :is(.syscall-page, .instruction-page) header nav a { padding: 6px 8px; font-size: 13px; }
  :is(.syscall-page, .instruction-page) .syntax-group button { padding: 0 10px; font-size: 12px; }
  :is(.syscall-page, .instruction-page) main { padding: 24px 16px 48px; }
  :is(.syscall-page, .instruction-page) .page-head h1 { font-size: 30px; }
  .doc-body h2 { font-size: 22px; }
  .doc-body section { margin-bottom: 36px; }
  :is(.syscall-document, .instruction-document) [id] { scroll-margin-top: 124px; }
  :is(.syscall-page, .instruction-page) .footer-bottom { flex-wrap: wrap; }
}

/* ===== footer ===== */

footer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 80px 28px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  footer { padding: 32px 24px 24px; }
}

.footer-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.footer-brand p { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.6; color: #4A4D55; }

.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

.footer-heading {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a { color: #3A3D45; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--muted);
}
