/* icllc.cc — site styles. Colors and sizes are tokens: change them here. */
:root {
  --fg: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --subtle: #f1f5f9;
  --subtle-2: #f8fafc;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-fg: #ffffff;
  --accent-soft: #eff6ff;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --ok-soft: #ecfdf5;
  --ok: #047857;
  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --radius: 10px;
  --maxw: 72rem;
  --readw: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 11rem; } /* clears the sticky header when jumping to #anchors */
body { margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.65; font-size: 17px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img, video, iframe { max-width: 100%; height: auto; }
img { display: inline-block; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }
input, select, textarea, button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--fg); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Header & menu ---------- */
/* No backdrop-filter here: it would trap the fixed mobile menu inside the header. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .75rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--fg); white-space: nowrap; }
.brand img { display: block; height: 128px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: flex-end; }
.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: .25rem; }
.menu > li { position: relative; }
.menu a { display: block; padding: .5rem .7rem; color: var(--fg); text-decoration: none; font-size: .95rem; border-radius: 6px; }
.menu a:hover, .menu .active > a { color: var(--accent); }
.menu a.cta { background: var(--accent); color: var(--accent-fg); margin-left: .25rem; }
.menu a.cta:hover { background: var(--accent-hover); color: #fff; }
.sub-toggle { display: none; }
.sub-menu { position: absolute; left: 0; top: 100%; min-width: 15rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s; }
.sub-menu .sub-menu { left: 100%; top: -.4rem; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: .45rem .7rem; font-size: .9rem; }
.sub-menu .has-children > a::after { content: "›"; float: right; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: .75rem; }
.header-search { width: 10rem; transition: width .15s; }
.header-search:focus-within { width: 13rem; }
.header-search input:not([type=checkbox]) { padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--subtle-2); font-size: .9rem; }
.header-search input:not([type=checkbox]):focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cart-link { position: relative; color: var(--fg); display: inline-flex; padding: .3rem; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; padding: 0 .25rem; }
.cart-count:empty, .cart-count[data-zero] { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 2.5rem; height: 2.5rem; cursor: pointer; position: relative; }
.nav-toggle > span:first-child, .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after { position: absolute; left: .55rem; right: .55rem; height: 2px; background: var(--fg); content: ""; transition: .2s; }
.nav-toggle > span:first-child { top: 50%; }
.nav-toggle > span:first-child::before { left: 0; right: 0; top: -7px; }
.nav-toggle > span:first-child::after { left: 0; right: 0; top: 7px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 3.7rem 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1rem var(--gutter) 3rem; overflow-y: auto; transform: translateX(100%); transition: transform .2s; }
  .nav-open .primary-nav { transform: none; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu li { position: relative; }
  .menu a { padding: .7rem .4rem; font-size: 1rem; }
  .menu a.cta { text-align: center; margin: .75rem 0 0; }
  .sub-toggle { display: block; position: absolute; right: 0; top: .25rem; width: 2.5rem; height: 2.5rem; background: none; border: 0; cursor: pointer; }
  .sub-toggle::before { content: "+"; font-size: 1.3rem; color: var(--muted); }
  .sub-toggle[aria-expanded="true"]::before { content: "−"; }
  .sub-menu, .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin-left: .5rem; padding: 0 0 0 .5rem; display: none; min-width: 0; }
  .sub-menu.open { display: block; }
  .sub-menu .has-children > a::after { content: none; }
  .header-tools { margin-top: 1rem; justify-content: space-between; }
  .header-search, .header-search:focus-within { flex: 1; width: auto; }
  .header-search input:not([type=checkbox]), .header-search input:not([type=checkbox]):focus { width: 100%; }
}

/* ---------- Layout ---------- */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 4rem; min-height: 60vh; }
.entry { max-width: var(--readw); margin: 0 auto; padding-top: 2rem; }
.entry-wide { max-width: none; }
.entry-front { max-width: none; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .25rem 0 1rem; }
.meta { color: var(--muted); font-size: .9rem; margin-top: -.5rem; }
.lede { font-size: 1.1rem; color: var(--muted); }
.breadcrumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* Imported WordPress content */
.content { overflow-wrap: break-word; }
.content > * { max-width: 100%; }
.content h2 { font-size: 1.55rem; margin: 2rem 0 .75rem; }
.content h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.content img { border-radius: 6px; }
.content figure { margin: 1.5rem 0; }
.content figcaption { color: var(--muted); font-size: .875rem; text-align: center; }
.content blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; color: #334155; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.content th, .content td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.content th { background: var(--subtle); }
.content pre, .content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.content pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.content :not(pre) > code { background: var(--subtle); padding: .1em .35em; border-radius: 4px; }
.content iframe { border: 0; width: 100%; aspect-ratio: 16 / 9; }
.content .wp-block-button__link, .content .wp-element-button { background: var(--accent); color: #fff; padding: .7rem 1.4rem; border-radius: var(--radius); text-decoration: none; display: inline-block; }
.content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.content .wp-block-column { flex: 1 1 14rem; min-width: 0; }
.content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.content .aligncenter { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.content .wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.content::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .content .alignleft, .content .alignright { float: none; margin: 1rem 0; } }

/* ---------- Buttons & forms ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--accent); color: var(--accent-fg); padding: .75rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; font-weight: 600; cursor: pointer; transition: background .15s; }
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { background: #fff; color: var(--fg); border-color: var(--border); }
.button.secondary:hover { background: var(--subtle); color: var(--fg); }
.button.small { padding: .45rem .9rem; font-size: .9rem; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; font-size: .9rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
label { display: block; font-size: .9rem; font-weight: 600; }
label > input, label > select, label > textarea { margin-top: .3rem; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 1rem; }
.form-stack.narrow { max-width: 26rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.form-inline input { flex: 1 1 12rem; width: auto !important; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.ic-form { margin: 1.5rem 0; padding: 1.5rem; background: var(--subtle-2); border: 1px solid var(--border); border-radius: var(--radius); }
.notice { background: var(--ok-soft); color: var(--ok); border: 1px solid #a7f3d0; padding: .75rem 1rem; border-radius: 8px; }
.notice.error { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.card h2 { margin: 0; font-size: 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.two-col.wide-left { grid-template-columns: 2fr 1fr; }
@media (max-width: 820px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; } }
.search-form { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.chip { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--fg); background: #fff; margin: 0 .3rem .4rem 0; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- Hero (optional designed homepage) ---------- */
.hero { background: var(--hero-bg); color: #fff; padding: 6rem var(--gutter) 5rem; text-align: center; margin: 0 calc(-1 * var(--gutter)) 2rem; }
.hero-inner { max-width: 48rem; margin: 0 auto; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 1.25rem; }
.hero .lede { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Lists: posts, docs, child pages ---------- */
.post-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.5rem; }
.post-card { display: grid; grid-template-columns: 12rem 1fr; gap: 1.25rem; align-items: start; }
.post-card:not(:has(.thumb)) { grid-template-columns: 1fr; }
.post-card .thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 8px; display: block; }
.post-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.post-card h3 a { color: var(--fg); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: .25rem 0; }
.post-list.compact { gap: .75rem; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } }
.doc-list, .child-pages { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.doc-list a, .child-pages a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); }
.doc-list a:hover, .child-pages a:hover { border-color: var(--accent); background: var(--accent-soft); }
.doc-list span, .child-pages span { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.pager, .adjacent { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.adjacent a { text-decoration: none; max-width: 48%; }
.adjacent a span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.adjacent .next { text-align: right; margin-left: auto; }
.featured img { width: 100%; border-radius: var(--radius); }
.featured { margin: 1.5rem 0; }
.comments { margin-top: 3rem; }
.comments ol { list-style: none; padding: 0; }
.comments li { border-top: 1px solid var(--border); padding: 1rem 0; }
.comments li.reply { margin-left: 2rem; }

/* ---------- Knowledge base ---------- */
.kb-search { display: flex; gap: .5rem; margin: 1.5rem 0 2rem; max-width: 36rem; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.kb-cat { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.kb-cat h2 { margin: 0 0 .5rem; font-size: 1.1rem; display: flex; justify-content: space-between; }
.kb-cat h2 a { color: var(--fg); text-decoration: none; }
.kb-cat .count { color: var(--muted); font-weight: 400; font-size: .85rem; }
.kb-cat ul { padding-left: 1.1rem; margin: 0; }
.kb-cat li { margin: .3rem 0; }
.kb-cat .more { font-size: .9rem; }
.doc-layout { display: grid; grid-template-columns: 16rem 1fr; gap: 3rem; padding-top: 2rem; }
.doc-layout .entry { padding-top: 0; margin: 0; }
.doc-sidebar { position: sticky; top: 5rem; align-self: start; max-height: calc(100vh - 6rem); overflow-y: auto; font-size: .9rem; }
.doc-sidebar .back { display: block; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }
.doc-sidebar details { border-bottom: 1px solid var(--border); padding: .5rem 0; }
.doc-sidebar summary { cursor: pointer; font-weight: 600; }
.doc-sidebar ul { list-style: none; padding: .25rem 0 0 .5rem; margin: 0; }
.doc-sidebar li a { display: block; padding: .25rem 0; color: var(--muted); text-decoration: none; }
.doc-sidebar li a:hover, .doc-sidebar [aria-current] { color: var(--accent); }
.toc { background: var(--subtle-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; font-size: .92rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.toc .l3 { margin-left: 1rem; list-style: circle; }
.doc-help { margin-top: 2rem; color: var(--muted); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-sidebar { position: static; max-height: none; order: 2; } }

/* ---------- Shop ---------- */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.sort select { width: auto; }
.product-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem; }
.product-card a { display: block; text-decoration: none; color: var(--fg); }
.product-media { aspect-ratio: 1; border-radius: var(--radius); background: var(--subtle); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border); }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media .placeholder { font-size: 3rem; font-weight: 700; color: #cbd5e1; }
.product-card h3 { font-size: 1rem; margin: .75rem 0 .2rem; }
.product-card:hover h3 { color: var(--accent); }
.price { color: var(--fg); font-weight: 600; margin: 0; }
.price.big { font-size: 1.6rem; margin: .5rem 0 1rem; }
.product-page { padding-top: 2rem; }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1rem; }
.product-gallery img[data-main-image] { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; width: 4.5rem; }
.thumbs img { width: 100%; display: block; border-radius: 5px; }
.product-summary h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.add-to-cart { display: grid; gap: .9rem; max-width: 24rem; margin-top: 1.5rem; }
.qty-row { display: flex; align-items: center; gap: .75rem; }
.qty-row input { width: 5.5rem !important; }
.domain-row { display: grid; gap: .6rem; margin: 0 0 .9rem; padding: 0; border: 0; min-width: 0; }
.domain-row legend { font-weight: 600; padding: 0; margin-bottom: .2rem; }
.domain-slot { display: grid; gap: .3rem; }
.domain-slot[hidden] { display: none; }
.domain-slot label { font-size: .9rem; }
.domain-row .optional { font-weight: 400; color: var(--muted, #64748b); font-size: .85rem; }
.domain-row .req { color: #b91c1c; }
.domain-row input { max-width: 26rem; }
.field-help { margin: 0; font-size: .85rem; color: var(--muted, #64748b); }
.item-domain { display: block; color: var(--muted, #64748b); }
.qty-fixed { display: inline-block; min-width: 2.5rem; text-align: center; }
.product-description { max-width: var(--readw); margin-top: 3rem; }
.related { margin-top: 3rem; }
@media (max-width: 820px) { .product-main { grid-template-columns: 1fr; gap: 1.5rem; } }

.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); padding: .5rem; }
.cart-table td { border-bottom: 1px solid var(--border); padding: .9rem .5rem; vertical-align: middle; }
.cart-table .item { display: flex; align-items: center; gap: .9rem; }
.cart-table .item img { border-radius: 6px; object-fit: cover; }
.cart-table small { display: block; color: var(--muted); }
.cart-table input[type=number] { width: 4.5rem !important; }
.cart-table tfoot td { font-weight: 600; border: 0; padding-top: .5rem; }
.cart-table .grand td { font-size: 1.1rem; }
.cart-footer { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.promo .inline { display: flex; gap: .5rem; margin-top: .3rem; }
.totals { min-width: 18rem; display: grid; gap: .75rem; }
.totals dl, .order-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; }
.totals dd, .order-summary dd { margin: 0; text-align: right; }
.grand { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .cart-table td { border: 0; padding: .3rem .25rem; }
  .cart-table td.item { grid-column: 1 / -1; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

.checkout { padding-top: 2rem; }
.steps { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.steps .on { color: var(--accent); font-weight: 700; }
.steps .done { color: var(--fg); }
.checkout-grid { display: grid; grid-template-columns: 1fr 22rem; gap: 3rem; align-items: start; }
.order-summary { background: var(--subtle-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; position: sticky; top: 5rem; }
.order-summary h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.order-summary ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; font-size: .92rem; }
.order-summary li { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary small { color: var(--muted); }
.choice-list { display: grid; gap: .75rem; }
.choice { display: flex; align-items: center; gap: .9rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; font-weight: 400; cursor: pointer; }
.choice span:nth-child(2) { flex: 1; }
.choice small { display: block; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.pay-option h2 { font-size: 1.05rem; margin: 0 0 1rem; }
#payment-element { margin-bottom: 1rem; }
.review { background: var(--subtle-2); border-radius: var(--radius); padding: .25rem 1.25rem; margin-bottom: 1.5rem; }
.ship-different summary { list-style: none; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .order-summary { position: static; order: -1; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 4rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.site-footer .brand { color: #fff; gap: .65rem; font-size: 1.1rem; }
.site-footer .brand img { height: 44px; width: 44px; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: .4rem 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }

/* Footer social icons (markup in views/partials/social-icons.ejs) */
.ct-social-box { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.1rem; }
.site-footer .ct-social-box a { display: inline-flex; align-items: center; gap: .5rem; color: #e2e8f0; font-size: .88rem; transition: color .15s; }
.ct-social-box .ct-icon-container { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.ct-social-box svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer .ct-social-box a:hover, .site-footer .ct-social-box a:focus-visible { color: #fff; }
.ct-social-box a[data-network="facebook"]:hover { color: #4f8ef7; }
.ct-social-box a[data-network="linkedin"]:hover { color: #3b9be0; }
.ct-social-box a[data-network="instagram"]:hover { color: #f472b6; }
.ct-social-box a[data-network="youtube"]:hover { color: #f87171; }
@media (max-width: 1000px) { .ct-social-box { gap: .9rem; } .ct-social-box .ct-label { display: none; } .ct-social-box svg { width: 22px; height: 22px; } .ct-social-box .ct-icon-container { width: 24px; height: 24px; } }
.copyright { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid #1e293b; font-size: .85rem; color: #94a3b8; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.error-detail { white-space: pre-wrap; font-size: .8rem; background: var(--subtle); padding: 1rem; border-radius: 8px; overflow-x: auto; }

/* Cloudflare Turnstile */
.cf-turnstile { min-height: 65px; }
.form-inline > div:has(.cf-turnstile) { flex-basis: 100%; }
.form-inline > div:empty { display: none; }
.resend { margin-bottom: 2rem; }

/* ---------- My Account: sign-in + sign-up dialog ---------- */
.account-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .account-auth { grid-template-columns: 1fr; } }

.password-fields { display: grid; gap: .75rem; }
.pw-input { display: flex; gap: .4rem; margin-top: .3rem; }
.pw-input input { margin-top: 0 !important; }
.pw-toggle { flex: none; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 0 .8rem; font-size: .85rem; cursor: pointer; }
.pw-toggle:hover { background: var(--subtle); }
.pw-rules { list-style: none; margin: -.25rem 0 0; padding: .65rem .9rem; background: var(--subtle-2); border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; display: grid; gap: .2rem; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 1.3rem; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { content: "✓"; font-weight: 700; }
.pw-rules li.bad { color: var(--danger); }
.pw-rules li.bad::before { content: "✗"; font-weight: 700; }
.pw-match { margin: -.25rem 0 0; font-size: .875rem; font-weight: 600; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--danger); }
.form-hint { margin: 0; font-size: .875rem; color: var(--muted); min-height: 1.3em; }
.form-hint.warn { color: var(--danger); font-weight: 600; }
.button[disabled] { opacity: .45; cursor: not-allowed; }

/* Form submitted: confirmation panel */
.ic-form-sent { background: var(--ok-soft); border-color: #a7f3d0; }
.ic-form-sent h2 { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--ok); }
.ic-form-sent p { margin: .5rem 0; }
.ticket-number { margin: 1rem 0 .25rem; max-width: 20rem; }
.ticket-number input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.6rem !important; font-weight: 700; letter-spacing: .06em; color: #192b59; background: #fff !important; text-align: center; }

/* ---------- My Account ---------- */
.benefits { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.benefits h2 { margin: 0; font-size: 1.25rem; }
.benefits p { margin: 0; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; width: 100%; }
.benefit-list li { position: relative; padding-left: 2rem; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.benefit-list strong { display: block; }
.benefit-list span { color: var(--muted); font-size: .92rem; }
.create-account { margin-top: 1.25rem; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.dashboard-main, .dashboard-side { display: grid; gap: 1.5rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; font-size: 1.25rem; }
.cart-table.compact { margin: .25rem 0 0; font-size: .95rem; }
.cart-table.compact td, .cart-table.compact th { padding: .6rem .4rem; }
.cart-table .num { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--subtle); font-size: .8rem; text-transform: capitalize; white-space: nowrap; }
.status-open { background: var(--accent-soft); color: var(--accent); }
.status-pending { background: #fef3c7; color: #92400e; }
.status-closed { background: var(--subtle); color: var(--muted); }
.account-actions { display: grid; gap: .75rem; }
.account-actions .button, .account-actions form { width: 100%; }
@media (max-width: 900px) { .dashboard { grid-template-columns: 1fr; } }

/* Pop-up (change password) */
.ic-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.ic-modal[hidden] { display: none; }
.ic-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.ic-modal-panel { position: relative; background: #fff; border-radius: 14px; width: min(30rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; box-shadow: 0 25px 60px rgba(15, 23, 42, .35); padding: 1.5rem 1.75rem 1.75rem; }
.ic-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ic-modal-head h2 { margin: 0; font-size: 1.3rem; }
.ic-modal-x { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .15rem .5rem; border-radius: 6px; }
.ic-modal-x:hover { background: var(--subtle); color: var(--fg); }
.ic-modal-actions { display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
body.modal-open { overflow: hidden; }
