/* Inner-page kit shared by wf-2 and wf-5: breadcrumbs, forms, shop filter bar, product page, cart, checkout, account, blog, article.
   The page itself is the only thing that scrolls; only phone drawers have their own scroll. */

.crumbs { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--color-text-muted); }
.crumbs a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 10px; color: var(--color-neutral-400); }
.crumbs [aria-current] { color: var(--color-text); font-weight: 700; }
.lead { font-size: 1.15rem; max-width: 56ch; }
.pg { padding-block: clamp(36px, 6vw, 72px) var(--sec); }
.pg--tint { background: var(--color-neutral-100); }
.card { background: var(--color-surface); border-radius: var(--r-l); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-bottom: 14px; }
.stack { display: grid; gap: 18px; }
.cols2 { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.notice { background: var(--color-primary-50); border: 1px solid var(--color-primary-200); border-radius: 16px; padding: 14px 18px; color: var(--color-primary-900); }
.photo-r { border-radius: var(--r-l); overflow: hidden; background: var(--color-secondary-100); }
.photo-r img { width: 100%; height: 100%; object-fit: cover; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 700; color: var(--color-link); text-decoration: underline; text-underline-offset: 6px; }

/* forms */
.fgrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid .span2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > legend, .field .lab { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-height: 52px; padding: 10px 16px; border: 2px solid var(--color-neutral-300); border-radius: 14px; background: #fff; color: var(--color-text); }
.field select { appearance: none; padding-inline-end: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635e4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 20px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-neutral-500); }
.field .hint { font-size: .92rem; color: var(--color-text-muted); }
.field .msg { display: none; color: var(--color-accent-700); font-weight: 500; font-size: .95rem; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--color-accent-600); }
.field.err .msg { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check input { width: 24px; height: 24px; margin-top: 4px; accent-color: var(--color-brand); flex: none; }
.radios { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.radios legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.radio { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; min-height: 68px; border: 2px solid var(--color-neutral-300); border-radius: 16px; background: #fff; cursor: pointer; }
.radio input { width: 22px; height: 22px; accent-color: var(--color-brand); margin: 0; }
.radio:has(input:checked) { border-color: var(--color-brand); background: var(--color-primary-50); }
.radio b { display: block; }
.radio small { color: var(--color-text-muted); font-size: .92rem; }
.radio .rp { font-weight: 800; white-space: nowrap; }
.form-done { display: none; }
.form-done.on { display: block; }

/* tables */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); font-size: 1.02rem; }
.tbl th, .tbl td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.tbl thead th { background: var(--color-primary-50); font-weight: 800; }
.tbl tbody th { font-weight: 800; }
.tbl tr:last-child > * { border-bottom: 0; }

/* status badges */
.st { display: inline-block; padding: 0 12px; line-height: 28px; border-radius: 99px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.st--ok { background: var(--color-success-100); color: var(--color-success-800); }
.st--go { background: var(--color-warning-100); color: var(--color-warning-800); }
.st--wait { background: var(--color-primary-100); color: var(--color-primary-800); }

/* anchors row (policy, faq) */
.anchors { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 clamp(28px, 5vw, 48px); padding: 0; }
.anchors a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--color-border); background: var(--color-surface); text-decoration: none; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .anchors a:hover { border-color: var(--color-brand); color: var(--color-primary-800); } }
.pblock { padding-block: clamp(28px, 5vw, 48px); border-top: 1px solid var(--color-border); }
.pblock:first-of-type { border-top: 0; padding-top: 0; }
.pblock h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 16px; }
.pblock p { color: var(--color-text-muted); font-size: 1.08rem; margin-bottom: 14px; max-width: 64ch; }
.stepsol { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.stepsol li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.stepsol li::before { content: counter(s, persian); width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-800); color: #fff; display: grid; place-items: center; font-weight: 800; grid-row: span 2; }
.stepsol li > b, .stepsol li > span { grid-column: 2; }
.stepsol b { display: block; }
.stepsol span { color: var(--color-text-muted); }

/* shop: filter bar on top, drawer on phones */
.shopbar { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding-block: 18px; border-block: 1px solid var(--color-border); }
.sel { display: grid; gap: 4px; font-size: .92rem; font-weight: 700; color: var(--color-text-muted); }
.sel select { appearance: none; min-height: 48px; min-width: 156px; padding: 0 18px 0 42px; border: 2px solid var(--color-neutral-300); border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635e4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 20px; font: inherit; font-weight: 500; color: var(--color-text); }
.fbar { display: contents; }
.fbtn, .fhead, .factions, .scrim { display: none; }
.fbtn { align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--color-neutral-300); background: #fff; font-weight: 700; }
.fbtn .n { background: var(--color-brand); color: #fff; border-radius: 99px; min-width: 24px; line-height: 24px; text-align: center; font-size: .85rem; }
.fbtn .n:empty { display: none; }
.rcount { margin-inline-start: auto; color: var(--color-text-muted); align-self: center; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; min-height: 0; }
.chips:empty { display: none; }
.chips button { min-height: 44px; border: 0; border-radius: 99px; background: var(--color-primary-100); color: var(--color-primary-800); font-weight: 700; padding: 0 14px 0 10px; display: inline-flex; gap: 8px; align-items: center; }
.chips button::after { content: "×"; font-size: 1.3rem; line-height: 1; }
.chips .clr button { background: transparent; text-decoration: underline; text-underline-offset: 6px; color: var(--color-text-muted); }
.chips .clr button::after { content: none; }
.shopgrid { margin-top: clamp(24px, 4vw, 40px); }
.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 0; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 1.6rem; }
@media (max-width: 899px) {
  .fbtn { display: inline-flex; }
  .shopbar { flex-wrap: wrap; }
  .shopbar > .sel { flex: 1 1 150px; }
  .shopbar > .sel select { width: 100%; min-width: 0; }
  .fbar .sel { flex: none; }
  .rcount { flex-basis: 100%; margin: 0; }
  .fbar { display: flex; flex-direction: column; gap: 18px; position: fixed; z-index: 80; inset-inline: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; background: var(--color-surface); border-radius: 24px 24px 0 0; padding: 20px var(--pad) 24px; box-shadow: 0 -20px 50px -20px rgba(21, 16, 2, .5); transform: translateY(105%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .fbar.open { transform: none; visibility: visible; }
  .fbar .sel select { width: 100%; }
  .fhead { display: flex; justify-content: space-between; align-items: center; }
  .fhead b { font-size: 1.3rem; }
  .fhead button { min-height: 44px; border: 0; background: none; font-weight: 700; color: var(--color-link); }
  .factions { display: flex; gap: 12px; }
  .factions .btn { flex: 1; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(21, 16, 2, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .scrim.open { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .fbar, .scrim { transition: none; } }

/* product page */
.pdp-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.gmain { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--color-secondary-100); position: relative; }
.gmain img { width: 100%; height: 100%; object-fit: cover; }
.gmain .pc-badge { top: 16px; inset-inline-start: 16px; }
.gthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gthumbs button { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--color-secondary-100); }
.gthumbs button[aria-pressed="true"] { border-color: var(--color-brand); }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { display: grid; gap: 20px; align-content: start; }
.pinfo h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.3; }
.pinfo .cat-l { color: var(--color-primary-700); font-weight: 700; text-decoration: none; }
.pprice { font-size: 2rem; font-weight: 900; }
.pprice small { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.pdesc { color: var(--color-text-muted); font-size: 1.1rem; max-width: 52ch; }
.opt { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 700; padding: 0; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.opt legend a { font-weight: 500; }
.swatch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.swatch i { width: 28px; height: 28px; border-radius: 50%; background: var(--c, #888); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-brand); }
.sizepick { display: flex; flex-wrap: wrap; gap: 10px; }
.sz { position: relative; }
.sz input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sz span { min-width: 58px; min-height: 54px; padding: 0 14px; display: grid; place-items: center; border: 2px solid var(--color-neutral-300); border-radius: 14px; background: #fff; font-weight: 500; font-size: 1.05rem; }
.sz input:checked + span { border-color: var(--color-brand); background: var(--color-primary-50); color: var(--color-primary-800); font-weight: 800; }
.sz input:focus-visible + span { outline: 3px solid var(--color-primary-800); outline-offset: 3px; }
.sz input:disabled + span { color: var(--color-neutral-400); background: var(--color-neutral-100); text-decoration: line-through; cursor: not-allowed; }
.buyrow { display: grid; gap: 12px; grid-template-columns: auto 1fr; align-items: center; }
.gs-qty { display: inline-grid; grid-template-columns: 48px 56px 48px; border: 2px solid var(--color-neutral-300); border-radius: 14px; overflow: hidden; background: #fff; min-height: 56px; }
.gs-qty button { border: 0; background: none; font-size: 1.4rem; min-height: 52px; }
.gs-qty input { border: 0; text-align: center; font: inherit; font-weight: 800; width: 100%; background: none; -moz-appearance: textfield; }
.gs-qty input::-webkit-outer-spin-button, .gs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buyrow .btn { min-height: 56px; font-size: 1.1rem; }
.trust { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--color-border); display: grid; gap: 10px; }
.trust li { padding-inline-start: 30px; position: relative; color: var(--color-text-muted); }
.trust li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--color-primary-700); font-weight: 900; }
.pdetails { margin-top: clamp(36px, 6vw, 64px); max-width: 860px; }
.stockline { font-weight: 700; color: var(--color-success-700); }
.stockline.low { color: var(--color-warning-700); }

/* cart + checkout */
.cartgrid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .cartgrid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.crow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; padding-block: 20px; border-bottom: 1px solid var(--color-border); align-items: center; }
.crow:first-child { border-top: 1px solid var(--color-border); }
.crow .th { grid-row: span 3; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--color-secondary-100); }
.crow .th img { width: 100%; height: 100%; object-fit: cover; }
.crow h3 { font-size: 1.1rem; line-height: 1.6; margin: 0; }
.crow h3 a { text-decoration: none; }
.crow .meta { color: var(--color-text-muted); font-size: .95rem; }
.crow .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crow .lp { font-weight: 800; font-size: 1.1rem; }
.crow .gs-qty { grid-template-columns: 44px 48px 44px; min-height: 48px; }
.crow .gs-qty button { min-height: 44px; }
.crow .rm { min-height: 44px; border: 0; background: none; color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 640px) { .crow { grid-template-columns: 120px minmax(0, 1fr); } }
.sum { background: var(--color-surface); border-radius: var(--r-l); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.sum h2 { font-size: 1.4rem; }
.sum dl { margin: 0; display: grid; gap: 10px; }
.sum dl > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--color-text-muted); }
.sum dd { margin: 0; font-weight: 700; }
.sum .tot { border-top: 1px solid var(--color-border); padding-top: 14px; font-size: 1.25rem; }
.sum .tot dt { color: var(--color-text); font-weight: 800; }
.sum .tot dd { font-weight: 900; font-size: 1.4rem; }
.coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.coupon input { min-height: 52px; border: 2px solid var(--color-neutral-300); border-radius: 14px; padding: 0 16px; font: inherit; min-width: 0; }
.mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mini-items .th { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.mini-items img { width: 100%; height: 100%; object-fit: cover; }
.mini-items b { display: block; line-height: 1.5; }
.mini-items small { color: var(--color-text-muted); }
.formcards { display: grid; gap: 20px; }

/* account */
.tabs2 { display: flex; gap: 6px; background: var(--color-surface); border-radius: 99px; padding: 5px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; margin-bottom: clamp(24px, 4vw, 40px); }
.tabs2 button { border: 0; background: none; min-height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 500; font-size: 1.05rem; }
.tabs2 button[aria-selected="true"] { background: var(--color-brand); color: var(--color-on-button); font-weight: 800; }
.tabpanel[hidden] { display: none; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 clamp(24px, 4vw, 40px); padding: 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--color-border); text-decoration: none; font-weight: 700; background: var(--color-surface); }
.subnav a[aria-current] { background: var(--color-primary-800); border-color: var(--color-primary-800); color: #fff; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: clamp(28px, 5vw, 48px); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--color-surface); border-radius: var(--r-m); padding: 18px 20px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 1.8rem; font-weight: 900; color: var(--color-primary-800); line-height: 1.3; }
.stats span { color: var(--color-text-muted); }
.addr { display: grid; gap: 4px; }
.addr h3 { font-size: 1.15rem; }
.orders { display: grid; gap: 14px; }
.order { display: grid; gap: 10px 16px; padding: 18px 20px; border-radius: var(--r-m); background: var(--color-surface); box-shadow: var(--shadow); grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.order .ph3 { display: flex; gap: 6px; grid-column: 1 / -1; }
.order .ph3 span { width: 56px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--color-secondary-100); }
.order img { width: 100%; height: 100%; object-fit: cover; }
.order b { font-size: 1.1rem; }
.order small { color: var(--color-text-muted); display: block; }

/* blog */
.feat { display: grid; background: var(--color-surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 860px) { .feat { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.feat-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-secondary-100); }
@media (min-width: 860px) { .feat-img { aspect-ratio: auto; min-height: 420px; } }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-txt { padding: clamp(22px, 4vw, 44px); display: grid; gap: 12px; align-content: center; justify-items: start; }
.feat-txt h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.feat-txt h2 a { text-decoration: none; }
.feat-txt p { color: var(--color-text-muted); font-size: 1.08rem; }
.pmeta { color: var(--color-text-muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.pcat { background: var(--color-primary-100); color: var(--color-primary-800); font-weight: 700; padding: 0 12px; line-height: 28px; border-radius: 99px; font-size: .9rem; text-decoration: none; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(28px, 5vw, 44px) 0 clamp(20px, 3vw, 32px); }
.bchips button { min-height: 48px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--color-border); background: var(--color-surface); font-weight: 500; }
.bchips button[aria-pressed="true"] { background: var(--color-primary-800); border-color: var(--color-primary-800); color: #fff; font-weight: 800; }
.bgrid { display: grid; gap: 32px 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bgrid[hidden], .bgrid [hidden] { display: none; }
.postc { display: grid; gap: 12px; align-content: start; }
.postc .ph-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden; background: var(--color-secondary-100); }
.postc .ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.postc h3 { font-size: 1.25rem; line-height: 1.6; }
.postc h3 a { text-decoration: none; }
.postc p { color: var(--color-text-muted); }
@media (hover: hover) and (pointer: fine) { .postc:hover .ph-img img { transform: scale(1.05); } .postc h3 a:hover { text-decoration: underline; text-underline-offset: 6px; } }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article-hero { margin: 0 auto clamp(28px, 5vw, 48px); max-width: 1000px; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--color-secondary-100); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 1.12rem; line-height: 2.1; margin-bottom: 1.2em; max-width: none; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 1.8em 0 .6em; }
.prose ul { padding-inline-start: 1.3em; list-style: disc; margin: 0 0 1.4em; display: grid; gap: 6px; font-size: 1.1rem; }
.callout { background: var(--color-primary-50); border-inline-start: 5px solid var(--color-primary-800); border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; font-size: 1.08rem; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--r-m); width: 100%; }
.prose figcaption { color: var(--color-text-muted); font-size: .95rem; margin-top: 8px; }
.shareline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 22px; margin-top: 2em; border-block: 1px solid var(--color-border); }

/* search + 404 */
.sbig { display: flex; gap: 10px; max-width: 640px; }
.sbig input { flex: 1; min-width: 0; min-height: 56px; border: 2px solid var(--color-neutral-300); border-radius: 99px; padding: 0 24px; font: inherit; font-size: 1.1rem; background: #fff; }
.sbig .btn { min-height: 56px; }
@media (max-width: 559px) { .sbig { flex-direction: column; } .sbig .btn { width: 100%; } }
.nf-num { font-size: clamp(6rem, 24vw, 12rem); font-weight: 900; line-height: 1; color: var(--color-primary-200); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nf { display: grid; gap: 16px; justify-items: center; text-align: center; padding-block: clamp(24px, 5vw, 56px); }
.nf h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.nf p { color: var(--color-text-muted); font-size: 1.15rem; max-width: 46ch; }
.nf .sbig { width: 100%; }
.cat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); width: 100%; }
.cat-tiles .cat { min-height: 200px; padding: 16px; }
.cat-tiles .cat strong { font-size: 1.2rem; }
@media (max-width: 559px) { .cat-tiles { grid-template-columns: 1fr; } .cat-tiles .cat { min-height: 150px; } }

/* contact details list */
.kv6 { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.kv6 dt { font-weight: 700; }
.kv6 dd { margin: 0; color: var(--color-text-muted); }
.kv6 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .kv6 a:hover { text-decoration: underline; text-underline-offset: 5px; } }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }


/* ---- blog and post: sidebar in normal flow (never sticky, never its own scroll) ---- */
.sidecols { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .sidecols { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }
.sidecols .bgrid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .sidecols .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sidecols .bchips { margin-top: 0; }
.sidecols .article { margin-inline: 0; max-width: none; }
.sidecols .article-hero { max-width: none; }
.side { display: grid; gap: 22px; align-content: start; }
.sbar { display: flex; gap: 8px; }
.sbar input { flex: 1; min-width: 0; min-height: 48px; border: 2px solid var(--color-neutral-300); border-radius: 99px; padding: 0 18px; font: inherit; background: #fff; }
.sbox { background: var(--color-surface); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.sbox h2 { font-size: 1.2rem; }
.clinks, .latest { list-style: none; margin: 0; padding: 0; display: grid; }
.clinks a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--color-border); font-weight: 500; }
.clinks li:last-child a { border-bottom: 0; }
.clinks span { background: var(--color-primary-100); color: var(--color-primary-800); font-weight: 700; font-size: .85rem; min-width: 28px; line-height: 26px; text-align: center; border-radius: 99px; }
.latest li + li { border-top: 1px solid var(--color-border); }
.latest a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; text-decoration: none; }
.latest .lt { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--color-secondary-100); }
.latest img { width: 100%; height: 100%; object-fit: cover; }
.latest b { display: block; font-size: 1rem; line-height: 1.6; }
.latest small { color: var(--color-text-muted); }
.sbox--cta { background: var(--color-primary-800); color: #fff; }
.sbox--cta p { color: var(--color-primary-100); }
.sbox--cta .btn { background: #fff; border-color: #fff; color: var(--color-primary-800); justify-self: start; }
@media (hover: hover) and (pointer: fine) { .clinks a:hover, .latest a:hover b { text-decoration: underline; text-underline-offset: 5px; } }
.pn { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 640px) { .pn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn-i { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 2px solid var(--color-border); border-radius: var(--r-m); text-decoration: none; background: var(--color-surface); min-height: 108px; }
.pn-i .th { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--color-secondary-100); }
.pn-i img { width: 100%; height: 100%; object-fit: cover; }
.pn-i small { display: block; color: var(--color-primary-700); font-weight: 700; }
.pn-i b { display: block; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) { .pn-i:hover { border-color: var(--color-brand); } }

/* ---- spacing and alignment fixes ---- */
.nf { gap: 0; }
.nf h1 { margin-top: 6px; }
.nf p { margin-top: 14px; }
.nf .sbig { margin-top: 28px; }
.nf-tiles { width: 100%; margin-top: 44px; }
.nf-back { margin-top: 44px; }
.nf-num { color: var(--color-primary-300); }
.opt legend { justify-content: flex-start; gap: 18px; align-items: baseline; }
.pdetails { max-width: none; }
.contact-cols { align-items: stretch; }
.contact-cols > form.card { align-content: start; }
.contact-side { display: grid; gap: 24px; grid-template-rows: auto minmax(240px, 1fr); }
.contact-photo { min-height: 240px; }
.contact-photo img { height: 100%; }
.cols2.eq { align-items: stretch; }
.tabs2 { margin-inline: auto; }
.band.ctr .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 22px; }
.band.ctr .row { justify-content: center; }
.band.ctr p { margin-inline: auto; }
.sum .trust { padding-top: 16px; }


/* ---- round 2 polish ---- */
.feat + .sidecols { margin-top: clamp(32px, 5vw, 48px); }
.sidecols .bchips { margin: 0 0 24px; }
.contact-cols { align-items: start; }
.contact-cols > form.card { align-self: start; }
.contact-side { grid-template-rows: auto auto; }
.contact-photo { min-height: 0; aspect-ratio: 2.7 / 1; }
.nf-num { color: var(--color-primary-400); }
.nf-tiles .cat span { font-weight: 700; }
.back-up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; color: var(--color-link); text-underline-offset: 6px; }
.tabs2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-inline: 0; border-radius: 22px; }
.tabs2 button { border-radius: 18px; }
.cols2.eq .card { display: flex; flex-direction: column; gap: 18px; }
.cols2.eq .card > .btn { margin-top: auto; }
.crow .line { justify-content: flex-start; gap: 10px 28px; }
.crow .rm { margin-inline-start: auto; }
@media (min-width: 640px) { .crow .rm { margin-inline-start: 0; } }
