/* Margin: Folio laid out with a category sidebar. A white header under a thick accent rule, bold icons
   down the left, bordered cards without shadows. */
:root {
  --ink: #1a1814;
  --ink-2: #4d4840;
  --ink-3: #706a60;
  --page: #fbfaf8;
  --card: #ffffff;
  --line: #e6e2db;
  --accent-fill: var(--accent-text, var(--accent));
  --accent-deep: color-mix(in srgb, var(--accent-fill) 78%, black);
  --accent-wash: color-mix(in srgb, var(--accent) 10%, white);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--page); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-3); }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }

/* icons */
.ic { display: inline-block; flex: none; width: 1.2em; height: 1.2em; vertical-align: -0.22em; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic.sm { width: 1em; height: 1em; margin-right: 6px; color: var(--accent-fill); }
.head-ic { width: 56px; height: 56px; color: var(--accent-fill); }

/* header */
.head { background: var(--card); border-top: 6px solid var(--accent-fill); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.sq { width: 32px; height: 32px; border-radius: var(--radius); display: grid; place-items: center; font-weight: 900; border: 2px solid var(--accent-fill);
  color: var(--accent-deep); }
.head-link { margin-left: auto; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.search { display: flex; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; padding: 8px 12px; background: transparent; color: var(--ink); }
.search button { border: 0; font: inherit; font-weight: 700; padding: 0 18px; background: var(--ink); color: #fff; cursor: pointer; }
.search.slim { flex: 1; max-width: 480px; }
.search.huge { max-width: 640px; margin-top: 22px; border-color: var(--ink); }
.search.huge input { font-size: 18px; padding: 13px 14px; }
.search.big { max-width: 600px; margin: 18px 0; }

/* sidebar frame */
.frame { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
.side { padding-top: 26px; }
.side-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.side-nav { display: flex; flex-direction: column; position: sticky; top: 16px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.side-nav a .ic { color: var(--ink-3); width: 20px; height: 20px; }
.side-nav a:hover, .side-nav a[aria-current] { background: var(--accent-wash); color: var(--accent-deep); text-decoration: none; }
.side-nav a:hover .ic, .side-nav a[aria-current] .ic { color: var(--accent-fill); }
.body { padding-bottom: 64px; min-width: 0; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "→"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--ink-2); }
.intro { padding: 34px 0 6px; }
.intro h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; max-width: 760px; }
.nums { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 24px 0 0; }
.nums div { padding: 0 22px; border-left: 3px solid var(--accent); }
.nums div:first-child { padding-left: 14px; }
@media (max-width: 480px) { .nums div { padding: 0 14px; } }
.nums dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; }
.nums dd { margin: 0; font-size: 22px; font-weight: 800; }
.page-head { margin: 22px 0 26px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); display: flow-root; }
.page-head .head-ic { float: right; margin: 4px 0 8px 20px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-deep); }
.lead { font-size: 18px; color: var(--ink-2); margin: 0; }
.section { font-size: 21px; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section.small { font-size: 18px; margin-top: 28px; }
.section .more { float: right; font-size: 15px; }
.more { font-weight: 700; }
.more::after { content: " →"; }

/* home */
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.block { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.block:hover { border-color: var(--ink); text-decoration: none; }
.block-top { display: flex; align-items: center; gap: 12px; }
.block-top .ic { width: 30px; height: 30px; color: var(--accent-fill); }
.block-top b { flex: 1; font-size: 17px; }
.block-top small { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.block-types { font-size: 14px; color: var(--ink-3); }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.numbered { margin: 0; padding: 0 0 0 26px; }
.numbered li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.numbered li::marker { color: var(--accent-deep); font-weight: 800; font-size: 14px; }
.numbered a { font-weight: 700; color: var(--ink); }
.numbered span { display: block; font-size: 14px; color: var(--ink-3); }
.cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud a { padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; }
.cloud a:hover { border-color: var(--ink); text-decoration: none; }

/* lists shared with the base templates */
.type-grid, .brand-grid, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.brand-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.type-grid a, .brand-grid a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.type-grid a .ic { color: var(--accent-fill); width: 22px; height: 22px; }
.type-grid span, .brand-grid span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-grid small, .brand-grid small { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.type-grid a:hover, .brand-grid a:hover, .card:hover { border-color: var(--ink); text-decoration: none; }
.card { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.card b { font-weight: 800; }
.card span { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14px; }
.chips a .ic { margin-right: 0; }
.chips a b { color: var(--accent-deep); font-size: 12px; }
.chips a:hover { border-color: var(--ink); text-decoration: none; }
.filter { margin-bottom: 20px; }
.filter summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
table.list { width: 100%; border-collapse: collapse; margin: 6px 0; background: var(--card); border: 1px solid var(--line); }
.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.list .model { font-weight: 800; color: var(--ink); }
.list td a.muted { display: inline-flex; align-items: center; }
.list td { overflow-wrap: anywhere; }
.r { text-align: right; }
.pill { font-size: 13px; font-weight: 800; color: var(--accent-deep); }
.pill::after { content: " →"; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; font-weight: 600; color: var(--ink-3); }
.pager a { padding: 7px 15px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); }
.pager a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.empty { padding: 30px; background: var(--card); border: 1px dashed var(--line); text-align: center; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 800; color: var(--ink); }
.letters a:hover { border-color: var(--accent); background: var(--accent-fill); color: #fff; text-decoration: none; }
.letter-group h2 { font-size: 26px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.body > .hero { padding: 36px 0 10px; }
.body > .hero h1 { font-size: 36px; margin: 0 0 8px; }

/* product */
.entry { margin-top: 22px; }
.entry h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 10px; }
.entry .kicker .ic.sm { width: 18px; height: 18px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin: 24px 0; align-items: start; }
.downloads { display: grid; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); }
.dl-ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-wash); color: var(--accent-fill); }
.dl-ic .ic { width: 26px; height: 26px; }
.dl-text { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.dl-text small { font-size: 14px; color: var(--ink-2); }
.btn { padding: 10px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 800; white-space: nowrap; }
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.about-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.about-table th { text-align: left; font-weight: 700; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); width: 42%; vertical-align: top; }
.about-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: 36px 0 22px; background: var(--card); color: var(--ink-2); }
.foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.foot-row p { margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; justify-content: flex-end; }
.foot-links a { color: var(--ink-2); font-weight: 600; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 24px; }

/* written text */
.prose { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 16px; }
.prose.after { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.note { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-left: 5px solid var(--ink); background: var(--card); }
.note b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.note p { margin: 6px 0 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { padding-top: 12px; }
  .side-title { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; position: static; }
  .side-nav a { white-space: nowrap; }
  .halves, .entry-grid, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .head-row { flex-wrap: wrap; height: auto; padding: 12px 22px; gap: 12px; }
  .head-row .search { order: 3; flex-basis: 100%; max-width: none; }
  .list th:nth-child(3), .list td:nth-child(3) { display: none; }
  .dl { flex-wrap: wrap; }
  .list th, .list td { padding-left: 10px; padding-right: 10px; }
}

/* contact, privacy and terms pages (atlas/page.html, shared by every theme): colours and fonts come from the theme */
.lp{box-sizing:border-box;width:100%;max-width:46rem;margin:0 auto;padding:clamp(20px,4vw,48px) clamp(16px,4vw,24px) 56px;font-family:var(--font);line-height:1.65}
.lp h1{font-size:clamp(28px,4.4vw,42px);line-height:1.15;margin:0 0 14px;overflow-wrap:anywhere}
.lp-intro{font-size:18px;margin:0 0 24px}
.lp h2{font-size:21px;line-height:1.3;margin:30px 0 8px}
.lp section p{font-size:16px;margin:0 0 12px}
.lp a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.lp-mail{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;border-left:4px solid var(--accent);padding:10px 16px;margin:0 0 26px}
.lp-mail span{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.lp-mail a{font-size:clamp(16px,4.4vw,19px);font-weight:700;overflow-wrap:anywhere}
.lp-date{margin:32px 0 0;font-size:15px}
