/*
 * layout.css: structure, spacing and sizes of the online resume.
 * No colour or font values here: every one comes from a variable in theme.css.
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  background: var(--color-page); color: var(--color-text); -webkit-text-size-adjust: 100%;
}
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.25; margin: 0; }
ul { margin: 0; padding-left: 1.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--color-topbar);
  border-bottom: 1px solid var(--color-border); box-shadow: 0 1px 2px var(--color-shadow);
}
.topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 0 16px; height: 56px;
  display: flex; align-items: center; gap: 16px;
}
.brand { font-weight: 600; color: var(--color-heading); white-space: nowrap; }
.nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 10px; border-radius: 6px; color: var(--color-topbar-text); white-space: nowrap; font-size: 14px;
}
.nav a:hover { background: var(--color-button-hover); text-decoration: none; }
.nav a.active { color: var(--color-topbar-active); background: var(--color-primary-soft); }
.tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cv-select {
  font: inherit; font-size: 14px; padding: 5px 8px; border-radius: 6px; max-width: 220px; cursor: pointer;
  border: 1px solid var(--color-border-strong); background: var(--color-button); color: var(--color-button-text);
}
.page-count { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.page-count:empty { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--color-border-strong); background: var(--color-button); color: var(--color-button-text);
  font-size: 14px; line-height: 1.3; white-space: nowrap;
}
.btn:hover { background: var(--color-button-hover); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-proof { border-color: var(--color-primary); color: var(--color-primary); }
.btn-proof:hover { background: var(--color-primary-soft); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-icon { padding: 6px; }

/* ---------- Page: white paper sheet on a light grey page ---------- */
/* No bottom padding: nothing shows below the footer bar (Imran, 2026-12-01) */
.page { max-width: 1000px; margin: 0 auto; padding: 18px 16px 0; }
/* The public website has no top bar (shell.js sets public-site on any host but this computer), not even in the
   Print view. Written with html in front so it outranks print.css's "show the bar in Print view" rule. */
html body.public-site .topbar { display: none !important; }
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px;
}
/* Imran's choice (2026-12-01): the status line (review count, Live · checked) is hidden. Delete to bring it back.
   Live updates keep running; load errors still show in the red banner. */
.statusbar { display: none; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-live); }
.live.stale .live-dot { background: var(--color-live-stale); }
.error-banner {
  border: 1px solid var(--color-error-border); background: var(--color-error-bg); color: var(--color-error);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px;
}
.sheet { background: var(--color-paper); box-shadow: 0 2px 10px var(--color-paper-shadow); padding: 30px 40px 0; }

/* ---------- Header: contact line, name | quote box, highlight strip ---------- */
.contact-line {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px;
  font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px;
}
.contact-item { display: inline-flex; align-items: center; gap: 7px; }
.contact-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--color-icon); }
.contact-line a { color: inherit; }
/* Header without borders: name and quote side by side, the strip under them, flush with the page margins */
.hero-box { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 24px; }
.hero-box.no-quote { grid-template-columns: 1fr; }
.hero-name { padding: 18px 0 16px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero h1 {
  display: inline-block; font-size: 42px; font-weight: 400; font-variant: small-caps; letter-spacing: 0.01em;
  line-height: 1.05; color: var(--color-name); padding-bottom: 5px; border-bottom: 4px solid var(--color-accent);
}
.hero .headline { font-size: 14px; color: var(--color-text-muted); margin-top: 10px; }
.hero-quote {
  margin: 0; padding: 16px 0;
  display: flex; flex-direction: column; justify-content: center; text-align: right;
}
.hero-quote blockquote { margin: 0; font-size: 20px; line-height: 1.25; color: var(--color-quote); }
.q-text { font-weight: 700; font-style: italic; }
.q-mark {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.45em; line-height: 0; vertical-align: -0.12em;
  margin: 0 3px; color: var(--color-text-muted);
}
.hero-quote figcaption { margin-top: 6px; font-size: 13.5px; font-style: italic; color: var(--color-text-muted); line-height: 1.35; }
.q-by, .q-role { display: block; }
.hero-strip {
  list-style: none; margin: 4px 0 0; padding: 10px 0; border-top: 1px solid var(--color-box-border);   /* grey rule under the name and quote */
  /* Two columns, each as wide as its longest item, so the items line up vertically */
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 4px 28px;
  font-size: 14px; font-weight: 600; color: var(--color-strip-text);
}
.hero-strip li { position: relative; padding-left: 15px; }
.hero-strip li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--color-accent); }
.hero > .note { margin-top: 8px; }

/* ---------- Two columns: main and sidebar ---------- */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 28px; margin-top: 22px; }
.col-side { border-left: 1px solid var(--color-border); padding-left: 22px; }
.sec { margin-bottom: 22px; }
.summary p { margin: 0 0 10px; }
.summary p:last-child { margin-bottom: 0; }
/* Key achievements: the page-1 showcase, styled like the sidebar skill lines: "Project name:" in bold dark text */
.sheet .sec ul.ach-list > li { margin-bottom: 9px; }
.ach-title { font-weight: 700; color: var(--color-heading); }

/* Section headings: solid gold bars with white small-caps text */
.section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 3px 10px;
  background: var(--color-accent); color: var(--color-accent-text); border-radius: 4px;
}
.section-head h2 { font-size: 15px; font-weight: 600; font-variant: small-caps; letter-spacing: 0.06em; color: var(--color-accent-text); }
.section-head .badge { margin-left: auto; }
/* Section icon before the title, white on the gold bar; the gap to the title is set by .section-head */
.sec-icon { display: inline-flex; flex-shrink: 0; margin-right: -3px; color: var(--color-accent-text); }
.sec-icon svg { width: 16px; height: 16px; }

/* Gold square bullets throughout the sheet */
.sheet ul:not(.hero-strip) { list-style: none; padding-left: 0; }
.sheet ul:not(.hero-strip) > li { position: relative; padding-left: 16px; margin-bottom: 5px; }
.sheet ul:not(.hero-strip) > li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; background: var(--color-accent);
}
.sheet ul > li:last-child { margin-bottom: 0; }

/* ---------- Footer bar ---------- */
/* The same one-line contact list as the header (icon then text), white text and gold-brown icons on the dark bar */
.sheet-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 28px -40px 0; padding: 12px 20px;
  background: var(--color-footer-bg); color: var(--color-footer-text); font-size: 13px;
}
.sheet-foot svg { width: 15px; height: 15px; color: var(--color-icon-on-dark); }
.sheet-foot a { color: inherit; }

/* Key points written **like this** in the resume text: bold, in the heading colour */
.em-key { font-weight: 700; color: var(--color-heading); }

/* Dates in running text ("11 Jan 2026"): a little smaller, in the theme's gold-brown */
.date-inline { font-size: 0.88em; font-weight: 600; color: var(--color-accent-strong); white-space: nowrap; }

/* ---------- Badges, tags, notes ---------- */
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--color-draft-border);
  background: var(--color-draft-bg); color: var(--color-draft); vertical-align: middle; line-height: 1.6;
  font-variant: normal;
}
/* Imran's choice (2026-12-01): the "DRAFT" badges are not shown anywhere. Delete this line to bring them back.
   Draft status still counts in the review line and still drives Hide drafts. */
.badge { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: 12px; padding: 1px 7px; border-radius: 3px; background: var(--color-tag); color: var(--color-tag-text); }
.note { font-size: 13px; font-style: italic; color: var(--color-draft); margin-top: 6px; }

/* ---------- Experience ---------- */
/* Roles are clearly separated: space, then a thin gold rule above every role after the first */
.role { padding: 4px 0 22px; }
.role + .role { border-top: 2px solid var(--color-accent-line); padding-top: 20px; }
.role:last-child { padding-bottom: 0; }
.role.compact + .role.compact { border-top: 0; padding-top: 2px; }

/* Company logo slot at the left of each role box: the logo, or the company's initial in a gold square */
/* Every logo starts at the box's left edge, centred vertically; the slot is as wide as the logo, so the company
   name follows right after it (the box's gap is the only space between them) */
.role-logo { display: inline-flex; align-items: center; flex: 0 0 auto; height: 34px; margin-right: -4px; }
.role-logo img { height: 100%; width: auto; max-width: 110px; object-fit: contain; display: block; }
.role-logo-initial span {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px;
  background: var(--color-accent); color: var(--color-accent-text); font-weight: 700; font-size: 17px;
}

/* Highlight tick badges (sovereign AI, on-prem ...) and the filter row above Experience */
.highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hl {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  border: 1px solid var(--color-highlight-border); background: var(--color-highlight-bg); color: var(--color-highlight-text);
}
.hl-tick { color: var(--color-highlight-tick); font-weight: 700; }
.hl.hl-on { background: var(--color-highlight-active); border-color: var(--color-highlight-active); color: var(--color-highlight-active-text); }
.hl.hl-on .hl-tick { color: var(--color-highlight-active-text); }
.hl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }

/* Badge chip at the end of a key-achievement line ("✓ Live"): a smaller copy of the highlight chip */
.ach-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 7px 0 6px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; line-height: 1.45; white-space: nowrap;
  border: 1px solid var(--color-highlight-border); background: var(--color-highlight-bg);
  color: var(--color-highlight-text);
}
/* Edit mode: the chip is a toggle button; faded and dashed when the item has no badge */
.ach-chip-toggle { cursor: pointer; font-family: inherit; }
.ach-chip-toggle:hover { border-color: var(--color-highlight-active); }
.ach-chip-off { opacity: 0.45; background: transparent; border-style: dashed; }
.ach-chip-off:hover { opacity: 0.9; }
.hl-filter-label { font-size: 13px; color: var(--color-text-muted); margin-right: 2px; }
.hl-btn { cursor: pointer; font-family: inherit; }
.hl-btn:hover { border-color: var(--color-highlight-active); }
.hl-count { font-weight: 400; opacity: 0.75; margin-left: 2px; }
.project.hl-dim, .role-main.hl-dim { opacity: 0.45; }
.project.hl-dim:hover, .role-main.hl-dim:hover { opacity: 0.8; }

/* Role heading: bordered box "Company, Location" with the dates on the right, the job title on its own line under it */
.role-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px;
  border: 1px solid var(--color-box-border); padding: 6px 12px; font-size: 15px; color: var(--color-heading);
}
.role-box .company { font-weight: 700; }
.role-loc { color: var(--color-text); }
.role-sep { color: var(--color-text-muted); }
.role-title { font-style: italic; font-weight: 600; }
.role-title-line { margin: 5px 0 0 2px; font-size: 14.5px; color: var(--color-heading); }
.role-dates {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted);
  white-space: nowrap; margin-left: auto;
}
.role-summary { margin: 8px 0 0; }
.role-main > div > ul { margin-top: 8px; }
.role.compact { padding: 2px 0 8px; }
.role.compact .role-box { border: 0; padding: 0; font-size: 14px; }

.projects { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.project { border-radius: 6px; }
.project-toggle {
  width: 100%; display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px 6px 2px; text-align: left;
  background: transparent; border: 0; cursor: pointer; color: inherit; border-radius: 6px;
}
.project-toggle:hover { background: var(--color-accent-soft); }
.chevron { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; transition: transform 0.15s; color: var(--color-accent); }
.project.open .chevron { transform: rotate(90deg); }
.project-name { font-weight: 700; color: var(--color-accent-strong); }
.project-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 1px; }
.project-heading { flex: 1; min-width: 0; }
.project-heading .badge { margin-left: 6px; }
.project-body { padding: 0 8px 10px 24px; display: none; }
.project.open .project-body { display: block; }
.proof-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Sidebar: skills, education, certifications, details ---------- */
.col-side .sec { font-size: 14px; }
/* Each skill group reads like the old resume: a gold square, the group in bold, then the skills as text */
.skill-group { position: relative; padding: 0 0 8px 13px; }
.skill-group::before { content: ""; position: absolute; left: 1px; top: 0.6em; width: 5px; height: 5px; background: var(--color-accent); }
.skill-group h3 { display: inline; font-size: inherit; font-weight: 700; }
.skill-group h3::after { content: ": "; }
.skill-group .tags { display: inline; margin: 0; }
.skill-group .tag { display: inline; padding: 0; border-radius: 0; background: none; font-size: inherit; color: var(--color-text); }
.skill-group .tag + .tag::before { content: ", "; }
/* A group of "Label: list" items: group name on its own line, then one line per item with a bold label */
.skill-group.has-lines h3 { display: block; }
.skill-group.has-lines h3::after { content: none; }
.skill-line { margin-top: 3px; }
.skill-line strong { color: var(--color-heading); font-weight: 600; }
.edu-item { padding: 0 0 10px; }
.edu-item strong { color: var(--color-heading); }
.edu-item .sub, .col-side .sub { font-size: 13px; color: var(--color-text-muted); }
.edu-link { margin-top: 2px; font-size: 13px; }
.edu-link a { display: inline-flex; align-items: center; gap: 4px; }
.edu-link svg { width: 13px; height: 13px; color: var(--color-icon); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.details dt { font-weight: 700; color: var(--color-heading); }
.details dd { margin: 0; }

/* ---------- Popup ---------- */
dialog.popup {
  border: 1px solid var(--color-border); border-radius: 12px; padding: 0; width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 48px); background: var(--color-surface); color: var(--color-text);
  box-shadow: 0 20px 50px var(--color-shadow);
}
dialog.popup::backdrop { background: var(--color-backdrop); }
dialog.popup.wide { width: min(1120px, calc(100vw - 24px)); }
.mockup-frame {
  display: block; width: 100%; height: 600px; border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-page);
}
.popup-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: var(--color-surface);
}
.popup-head h3 { font-size: 16px; }
.popup-body { padding: 18px; }
.popup-caption { font-size: 14px; color: var(--color-text-muted); margin: 0 0 16px; }
.popup-image { max-width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 6px; display: block; }
.placeholder {
  border: 1px dashed var(--color-border-strong); border-radius: 8px; padding: 14px; background: var(--color-surface-alt);
}
.placeholder p { font-size: 13px; color: var(--color-text-muted); margin: 10px 0 0; }
.chart-sketch { width: 100%; height: auto; display: block; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--color-timeline-line);
}
.timeline li { position: relative; padding: 0 0 18px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-surface); border: 3px solid var(--color-timeline-dot);
}
.timeline .date { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.timeline .title { font-weight: 600; color: var(--color-heading); }
.timeline .detail { font-size: 14px; }

/* Diagram */
.diagram { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.io-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.io {
  font-size: 13px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--color-border);
  background: var(--color-io); color: var(--color-text-muted);
}
.io-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); text-align: center; }
.flow { display: flex; align-items: stretch; gap: 0; }
.node {
  flex: 1; min-width: 0; border: 1px solid var(--color-node-border); background: var(--color-node); border-radius: 8px;
  padding: 12px; text-align: center;
}
.node-title { font-weight: 700; color: var(--color-node-title); }
.node-detail { font-size: 12.5px; margin-top: 4px; }
.arrow { display: flex; align-items: center; justify-content: center; width: 26px; flex-shrink: 0; color: var(--color-arrow); }
.arrow svg { width: 20px; height: 20px; }
.arrow.down { width: auto; height: 22px; }

/* ---------- Edit mode ---------- */
.btn[hidden] { display: none; }
/* While editing, the toolbar holds Done, Save and Discard too: the less used buttons show their icons only */
body.editing #btn-print-view .btn-label, body.editing #btn-print .btn-label,
body.editing #btn-expand .btn-label, body.editing #btn-drafts .btn-label { display: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.edit-status { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.edit-status:empty { display: none; }
.edit-status.warn { color: var(--color-draft); font-weight: 600; }
/* Every editable field gets a faint dashed outline; the one being typed in a solid gold one */
body.editing .ed { outline: 1px dashed var(--color-accent-line); outline-offset: 1px; border-radius: 2px; cursor: text; min-width: 1.5em; }
body.editing .ed:hover { background: var(--color-accent-soft); }
body.editing .ed:focus { outline: 2px solid var(--color-accent); background: var(--color-accent-soft); }
body.editing .ed:empty::before { content: attr(data-ph); color: var(--color-text-muted); font-style: italic; font-weight: 400; }
body.editing .section-head .ed, body.editing .sheet-foot .ed { color: inherit; }
/* Small ↑ ↓ ✕ buttons after a bullet, paragraph or achievement; brighter on hover */
.ed-ctl { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; opacity: 0.45; }
li:hover > .ed-ctl, p:hover > .ed-ctl, .ed-ctl:focus-within { opacity: 1; }
.ed-btn {
  font: inherit; font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--color-border-strong); background: var(--color-button); color: var(--color-button-text);
}
.ed-btn:hover:not(:disabled) { background: var(--color-accent-soft); border-color: var(--color-accent); }
.ed-btn:disabled { opacity: 0.35; cursor: default; }
.ed-add {
  display: inline-block; margin: 6px 0 2px; font: inherit; font-size: 12.5px; padding: 2px 10px; border-radius: 4px;
  cursor: pointer; border: 1px dashed var(--color-accent); background: transparent; color: var(--color-accent-strong);
}
.ed-add:hover { background: var(--color-accent-soft); }
body.editing .project-toggle { cursor: default; }
body.editing .project-toggle:hover { background: none; }

/* ---------- Hide drafts mode ---------- */
body.hide-drafts .is-draft, body.hide-drafts .badge { display: none !important; }

/* ---------- Narrower screens: icon-only buttons for the less used tools ---------- */
@media (max-width: 1000px) {
  #btn-print .btn-label, #btn-expand .btn-label { display: none; }
}

/* ---------- Phone width ---------- */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar-inner { gap: 10px; }
  .brand { display: none; }
  .tools .btn-label { display: none; }
  .tools { gap: 6px; }
  .cv-select { max-width: 120px; font-size: 13px; padding: 5px 4px; }
  .btn-print, .page-count { display: none; }
  /* Editing on a phone: room for Done, Save and Discard only */
  body.editing .edit-status, body.editing #btn-print-view, body.editing #btn-expand, body.editing #btn-drafts { display: none; }
  .page { padding: 12px 8px 0; }
  .sheet { padding: 16px 14px 0; }
  .contact-line { justify-content: flex-start; font-size: 12.5px; }
  .hero-box { grid-template-columns: 1fr; }
  .hero-name { padding: 14px 0 6px; }
  .hero h1 { font-size: 32px; }
  .hero-quote { padding: 6px 0 10px; }
  .hero-quote blockquote { font-size: 18px; }
  .hero-strip { padding: 8px 0; font-size: 13px; grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; margin-top: 18px; }
  .col-side { border-left: 0; padding-left: 0; }
  .project-body { padding-left: 8px; }
  .sheet-foot { margin: 28px -14px 0; }
  .flow { flex-direction: column; }
  .arrow { width: auto; height: 22px; }
  .arrow:not(.down) svg { transform: rotate(90deg); }
}

/* Print rules live in print.css. */

/* The sheet's one-cell layout table (see render()): plain blocks on screen; print.css turns it back into a table
   whose empty <tfoot> band repeats on every printed page, keeping text clear of the footer bar */
.sheet-flow, .sheet-flow > tbody, .sheet-flow > tbody > tr, .sheet-flow > tbody > tr > td { display: block; }
.sheet-flow > tbody > tr > td { padding: 0; }
.sheet-flow > tfoot { display: none; }
