/* Folio: bold editorial. A coloured band carries the brand; content sits on warm paper in cards. */
:root {
  --ink: #1b1a17;
  --ink-2: #514c43;
  --ink-3: #6a6459;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #ebe5da;
  --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) 12%, var(--paper));
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* icons: an <i> masked with the icon file, painted in the current colour */
.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); }
.tile-ic { width: 34px; height: 34px; color: var(--accent-fill); float: right; }
.doc-thumb .ic { width: 26px; height: 26px; margin-top: -10px; }
.type-grid a .ic { width: 22px; height: 22px; color: var(--accent-fill); margin-right: -2px; }
.type-grid a span { flex: 1; }
.chips a { align-items: center; }
.chips a .ic.sm { margin-right: 0; }
.cloud a { display: inline-flex; align-items: center; }
.page-head .head-ic { float: right; width: 64px; height: 64px; margin: 0 0 10px 20px; color: var(--accent-fill); }

/* band */
.band { background: var(--accent-fill); color: #fff; padding-bottom: 22px;
  background-image: radial-gradient(1200px 300px at 85% -40%, rgba(255,255,255,.22), transparent 60%); }
.band-row { display: flex; align-items: center; height: 72px; }
.band .logo { color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.badge { width: 34px; height: 34px; border-radius: calc(var(--radius) * 2); display: grid; place-items: center; font-weight: 900;
  background: #fff; color: var(--accent-fill); }
.foot .badge { background: var(--accent-fill); color: #fff; }
.band-links { margin-left: auto; display: flex; gap: 22px; font-weight: 600; }
.band-links a { color: rgba(255,255,255,.9); }
.search { display: flex; background: #fff; border-radius: calc(var(--radius) + 4px); padding: 5px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.45); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; padding: 8px 14px; background: transparent; color: var(--ink); }
.search button { border: 0; font: inherit; font-weight: 700; padding: 0 18px; border-radius: var(--radius); background: var(--ink); color: #fff; cursor: pointer; }
.search.slim { max-width: 560px; }
.search.huge { max-width: 680px; margin: 26px 0 0; }
.search.huge input { font-size: 18px; padding: 14px 16px; }
.search.big { max-width: 600px; margin: 18px 0; border: 1px solid var(--line); }
.hero { padding: 26px 0 8px; }
.band .hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 12px; max-width: 760px; }
.band .lead { color: rgba(255,255,255,.88); max-width: 640px; font-size: 19px; margin: 0; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; color: rgba(255,255,255,.85); font-size: 15px; }
.hero-stats b { color: #fff; font-size: 18px; }

.shelf { background: var(--card); border-bottom: 1px solid var(--line); }
.shelf .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.shelf a { padding: 13px 14px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; }
.shelf a:hover, .shelf a[aria-current] { color: var(--accent-deep); border-bottom-color: var(--accent); text-decoration: none; }

main { padding-bottom: 70px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 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); }
.page-head { margin: 22px 0 28px; padding: 30px 32px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.kicker { margin: 0 0 8px; 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: 24px; margin: 44px 0 16px; display: flex; align-items: baseline; gap: 14px; }
.section.small { font-size: 19px; margin-top: 30px; }
.section .more { margin-left: auto; font-size: 15px; }
.arrow { font-weight: 700; }
.arrow::after { content: " →"; }

/* home */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.tile { display: block; padding: 22px; border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(40,30,10,.45); text-decoration: none; }
.tile-num { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-deep); }
.tile h3 { font-size: 21px; margin: 14px 0 6px; }
.tile p { margin: 0; font-size: 14px; color: var(--ink-3); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud a { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.cloud a:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.feed { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.feed li a { font-weight: 700; color: var(--ink); }
.feed li span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* shared lists from the base templates */
.cat-grid, .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(180px, 1fr)); }
.type-grid a, .brand-grid a, .card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.card { flex-direction: column; align-items: flex-start; }
.card span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.type-grid a:hover, .brand-grid a:hover, .card:hover { border-color: var(--accent); text-decoration: none; }
.type-grid span, .brand-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-grid small, .brand-grid small { font-size: 12px; font-weight: 800; color: var(--accent-deep); background: var(--accent-wash); padding: 2px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.chips a b { color: var(--accent-deep); font-size: 12px; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
.filter { margin-bottom: 20px; }
.filter summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 6px 0; }
.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 16px; }
.list td { background: var(--card); padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list td:first-child { border-left: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.list td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.list .model { font-weight: 800; color: var(--ink); }
.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: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.pager a:hover { text-decoration: none; opacity: .9; }
.empty { padding: 32px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); text-align: center; }
.newest { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.newest a { display: flex; flex-direction: column; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.newest span { font-size: 13px; color: var(--ink-3); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.letters a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-weight: 800; color: var(--ink); }
.letters a:hover { background: var(--accent-fill); color: #fff; text-decoration: none; }
.letter-group h2 { font-size: 30px; color: var(--accent-fill); margin: 30px 0 12px; }
main > .hero { text-align: left; padding: 40px 0 10px; }
main > .hero h1 { font-size: 40px; margin: 0 0 8px; }

/* product sheet */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 22px; }
.sheet-main { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 32px; }
.sheet-main h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; }
.sheet-main h1 span { display: block; font-size: .5em; color: var(--ink-3); font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.doc-list { margin-top: 26px; display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: var(--radius); background: var(--accent-wash); }
.doc-thumb { width: 52px; height: 66px; border-radius: 6px; background: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); position: relative;
  display: grid; place-items: center; font-weight: 900; color: var(--accent-fill); flex: none; }
.doc-thumb i { position: absolute; bottom: 5px; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .1em; color: var(--ink-3); }
.doc-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.doc-meta span { font-size: 14px; color: var(--ink-2); }
.btn { padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; white-space: nowrap; }
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.sheet-side dl { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 8px 22px; }
.sheet-side dl div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sheet-side dl div:last-child { border-bottom: 0; }
.sheet-side dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; }
.sheet-side dd { margin: 2px 0 0; font-weight: 600; }
.manual { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.manual-body { flex: 1; display: flex; flex-direction: column; }
.doc-icon { font-weight: 900; color: var(--accent-fill); }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.product-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 44px 0 26px; margin-top: 20px; }
.foot .logo { color: #fff; }
.foot-row { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.foot-row p { margin: 12px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.foot-links a { color: rgba(255,255,255,.8); }
.fine { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 30px; }

/* 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: 26px 30px 12px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); max-width: none; }
.prose.about { margin-top: 10px; }
.note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.note b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); }
.note p { margin: 6px 0 0; color: var(--ink-2); }

@media (max-width: 860px) {
  .sheet, .split, .foot-row, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .band-links a:last-child { display: none; }
  .list th:nth-child(3), .list td:nth-child(3) { display: none; }
  .page-head, .sheet-main { padding: 22px; }
  .list th, .list td { padding-left: 10px; padding-right: 10px; }
  .doc { flex-wrap: wrap; }
}

/* 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}
