/* CanAlta Suite — configurator & pricing UI */

/* ---- Loop cards ---- */
.ca-price { display: flex; flex-direction: column; gap: 2px; }
.ca-price-from { font-weight: 700; font-size: 1.05rem; color: var(--ca-ink, #101418); }
.ca-price-low { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ca-accent, #1d6fe0); font-weight: 600; }
.ca-loop-swatches { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; }
.ca-loop-swatches i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.ca-loop-swatches em { font-size: .72rem; font-style: normal; color: #6b7075; }
.ca-loop-min { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8a8f94; margin-bottom: 4px; }

/* ---- Price grid ---- */
.ca-grid-wrap { margin: 1.6rem 0; }
.ca-section-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 .6rem; color: var(--ca-ink, #101418); }
.ca-section-title span { color: #8a8f94; font-weight: 500; margin-left: .5em; letter-spacing: .06em; }
table.ca-price-grid { width: 100%; border-collapse: collapse; font-size: .92rem; border: 1px solid #e6e6e2; }
table.ca-price-grid th, table.ca-price-grid td { padding: .55rem .7rem; text-align: right; border-bottom: 1px solid #eeeeea; }
table.ca-price-grid th:first-child, table.ca-price-grid td:first-child { text-align: left; font-weight: 500; color: #4a4f54; }
table.ca-price-grid thead th { background: var(--ca-ink, #101418); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
/* th:first-child above sets #4a4f54 and out-specifies the thead rule, which
   left "Quantity" near-invisible on the dark header (owner, v1.47.2). */
table.ca-price-grid thead th:first-child { color: #fff; }
table.ca-price-grid td { font-variant-numeric: tabular-nums; }
table.ca-price-grid .is-active { background: #eef1f4; box-shadow: inset 0 0 0 1px var(--ca-accent, #1d6fe0); }
table.ca-price-grid thead th.is-active { background: var(--ca-accent, #1d6fe0); color: #fff; }
tr.ca-addon-row td { color: #6b7075; font-size: .85rem; }
/* The resale row is reference, not the number the buyer is committing to — it is
   set back a shade so the eye still lands on their own cost first. */
tr.ca-list-row td { color: #6b7075; font-size: .86rem; background: #fafaf8; }
tr.ca-list-row td:first-child { color: #6b7075; }
.ca-dist-margin-note { font-size: .8rem; color: #4a4f54; margin: .55rem 0 0; }
.ca-dist-margin-note strong { color: var(--ca-ink, #101418); }
.ca-price-list { font-size: .74rem; color: #8a8f94; letter-spacing: .04em; }
.ca-grid-live-note { font-size: .78rem; color: #4a4f54; margin: .5rem 0 0; letter-spacing: .01em; }
.ca-grid-live-note::before { content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--ca-accent, #1d6fe0); margin-right: .4rem; vertical-align: middle; }
.ca-flat-note { font-size: .8rem; color: #8a8f94; margin-top: .5rem; }
.ca-flat-note strong { color: #4a4f54; }

/* ---- Configurator ---- */
.ca-configurator { margin: 1.2rem 0; display: flex; flex-direction: column; gap: 1.15rem; }
.ca-step-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ca-ink, #101418); margin-bottom: .55rem; }
.ca-step-label b { color: #9aa0a6; font-weight: 500; letter-spacing: .06em; }
.ca-step-label .ca-chosen-color { color: var(--ca-accent, #1d6fe0); }

.ca-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-swatch { cursor: pointer; text-align: center; width: 54px; }
.ca-swatch input { position: absolute; opacity: 0; }
.ca-swatch i { display: block; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); transition: transform .12s, box-shadow .12s; }
.ca-swatch span { display: block; font-size: .62rem; margin-top: 4px; color: #6b7075; line-height: 1.2; }
.ca-swatch:hover i { transform: scale(1.08); }
.ca-swatch.is-active i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ca-accent, #1d6fe0); }
.ca-swatch.is-active span { color: var(--ca-ink, #101418); font-weight: 600; }

.ca-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-pill { cursor: pointer; border: 1.5px solid #dcdcd6; border-radius: 2px; padding: .42rem .95rem; font-size: .85rem; transition: all .12s; background: #fff; }
.ca-pill input { position: absolute; opacity: 0; }
.ca-pill em { font-style: normal; color: #8a8f94; font-size: .78rem; }
.ca-pill:hover { border-color: #b9bec3; }
.ca-pill.is-active { border-color: var(--ca-ink, #101418); background: var(--ca-ink, #101418); color: #fff; }
.ca-pill.is-active em { color: #cfd4d9; }
.ca-pills-small .ca-pill { padding: .3rem .75rem; font-size: .78rem; }

.ca-addons { display: flex; flex-direction: column; gap: 6px; }
.ca-addon { display: flex; align-items: center; gap: 10px; border: 1.5px solid #e6e6e2; border-radius: 3px; padding: .55rem .8rem; cursor: pointer; font-size: .88rem; transition: border-color .12s; background:#fff; }
.ca-addon:hover { border-color: #b9bec3; }
.ca-addon input { accent-color: var(--ca-accent, #1d6fe0); width: 16px; height: 16px; }
.ca-addon:has(input:checked) { border-color: var(--ca-accent, #1d6fe0); background: #f3f4f6; }
.ca-addon .ca-addon-price { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--ca-accent, #1d6fe0); font-weight: 600; font-variant-numeric: tabular-nums; }

.ca-logo-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-logo-upload input[type="file"] { display: none; }
.ca-logo-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1.5px dashed #b9bec3; border-radius: 3px; padding: .6rem 1.1rem; font-size: .88rem; font-weight: 600; color: var(--ca-ink, #101418); transition: all .12s; background:#fff; }
.ca-logo-btn:hover { border-color: var(--ca-accent, #1d6fe0); color: var(--ca-accent, #1d6fe0); }
.ca-logo-status { font-size: .78rem; color: #8a8f94; }
.ca-logo-status.is-error { color: #c0392b; }

.ca-notes { width: 100%; border: 1.5px solid #e6e6e2; border-radius: 3px; padding: .6rem .8rem; font-size: .88rem; font-family: inherit; resize: vertical; }
.ca-notes:focus { outline: none; border-color: var(--ca-accent, #1d6fe0); }

.ca-summary { border: 1.5px solid var(--ca-ink, #101418); border-radius: 4px; padding: 1rem 1.2rem; background: #fff; }
.ca-summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; padding: .25rem 0; }
.ca-summary-row strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ca-summary-total { border-top: 1px solid #eeeeea; margin-top: .35rem; padding-top: .55rem; }
.ca-summary-total strong { font-size: 1.5rem; color: var(--ca-accent, #1d6fe0); }
.ca-summary-qty { font-style: normal; color: #8a8f94; font-size: .8rem; }
.ca-summary-note { margin: .45rem 0 0; font-size: .74rem; color: #9aa0a6; }

/* ---- Logo preview overlay on gallery ---- */
.ca-stage-overlay { position: absolute; z-index: 5; display: none; align-items: center; justify-content: center; pointer-events: none; }
.ca-stage-overlay.is-on { display: flex; }
.ca-stage-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: .96; }

/* ---- Boilerplate ---- */
.ca-boilerplate { list-style: none; margin: 1.2rem 0 0; padding: 1rem 1.2rem; background: #f6f5f1; border-radius: 4px; font-size: .82rem; color: #4a4f54; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.2rem; }
.ca-boilerplate li { padding-left: 1.1em; position: relative; }
.ca-boilerplate li::before { content: "✓"; position: absolute; left: 0; color: var(--ca-accent, #1d6fe0); font-weight: 700; }
@media (max-width: 640px) { .ca-boilerplate { grid-template-columns: 1fr; } }

/* ---- Distributor form ---- */
.ca-dist-form { max-width: 720px; }
.ca-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.ca-form-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4a4f54; }
.ca-form-grid input, .ca-form-grid textarea { border: 1.5px solid #dcdcd6; border-radius: 3px; padding: .65rem .8rem; font-size: .95rem; font-family: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ca-form-grid input:focus, .ca-form-grid textarea:focus { outline: none; border-color: var(--ca-accent, #1d6fe0); }
.ca-form-full { grid-column: 1 / -1; }
.ca-form-success { background: #f0f7f1; border: 1.5px solid #2e7d44; border-radius: 4px; padding: 1.4rem 1.6rem; }
@media (max-width: 640px) { .ca-form-grid { grid-template-columns: 1fr; } }

/* ---- Industry price code ---- */
.ca-code { font-size: .68em; font-weight: 700; color: #8a8f94; margin-left: 3px; letter-spacing: .02em; vertical-align: baseline; }
.ca-code-net { color: #1f7a3d; background: #e9f6ee; padding: 1px 5px; border-radius: 2px; font-size: .6em; vertical-align: middle; }
table.ca-price-grid .ca-code { font-size: .66em; }

/* ---- Quote-only products ---- */
.ca-price-quote { color: var(--ca-accent, #1d6fe0); }
.ca-quote-note p { font-size: .9rem; color: #4a4f54; margin: .3rem 0 0; }
.ca-summary-quote strong { color: var(--ca-accent, #1d6fe0); font-size: 1.05rem; }
.ca-quoted { font-weight: 700; color: var(--ca-accent, #1d6fe0); }

/* ---- Category tiles (decals landing + shop) ---- */
ul.products li.product-category { background: #fff; border-radius: 5px; overflow: hidden; border: 1px solid #eceae4; transition: box-shadow .15s, transform .15s; }
ul.products li.product-category:hover { box-shadow: 0 10px 30px rgba(16,20,24,.08); transform: translateY(-2px); }
ul.products li.product-category h2.woocommerce-loop-category__title,
ul.products li.product-category .woocommerce-loop-category__title {
	font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: #101418;
	padding: 1rem 1.2rem 1.15rem; margin: 0; text-align: center; line-height: 1.35;
	position: relative;
}
ul.products li.product-category h2.woocommerce-loop-category__title::before,
ul.products li.product-category .woocommerce-loop-category__title::before {
	content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
	background: var(--ca-gold, #c9a227); margin: 0 auto .6rem;
}
ul.products li.product-category img { margin: 0; width: 100%; height: auto; }

/* ---- Uniform, uncropped listing imagery ---- */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; display: block;
}
ul.products li.product-category img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff;
}
.woocommerce div.product div.images img { object-fit: contain; background: #fff; }

/* ---- Price grid always fully visible — the table compresses to fit, never scrolls ---- */
.ca-grid-wrap { overflow-x: visible; max-width: 100%; }
table.ca-price-grid { min-width: 0; width: 100%; table-layout: fixed; }
table.ca-price-grid th, table.ca-price-grid td { padding: .5rem .4rem; white-space: normal; overflow-wrap: break-word; }
table.ca-price-grid th:first-child, table.ca-price-grid td:first-child { width: 16%; min-width: 0; }
table.ca-price-grid .woocommerce-Price-amount { white-space: nowrap; }
@media (max-width: 1100px) { table.ca-price-grid { font-size: .82rem; } }
@media (max-width: 760px) {
	.ca-grid-wrap { margin-left: 0; margin-right: 0; }
	table.ca-price-grid { font-size: .74rem; }
	table.ca-price-grid th, table.ca-price-grid td { padding: .4rem .25rem; }
	table.ca-price-grid th:first-child, table.ca-price-grid td:first-child { width: 20%; }
}

/* ---- Method-specific imprint palettes ---- */
.ca-imp-pal { margin-bottom: .35rem; }
.ca-pill .ca-ink { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); margin-right: 6px; vertical-align: -2px; }
.ca-pill.is-active .ca-ink { border-color: rgba(255,255,255,.6); }
.ca-pill-pms { border-style: dashed; }
.ca-pms-input { display: block; margin-top: .6rem; border: 1.5px solid #dcdcd6; border-radius: 3px; padding: .5rem .8rem; font-size: .88rem; width: 240px; max-width: 100%; }
.ca-pms-input:focus { outline: none; border-color: var(--ca-accent, #1d6fe0); }
.ca-imp-note { font-size: .78rem; color: #8a8f94; margin: .5rem 0 0; }

/* ---- Price cells never split the (C)/NET code onto its own line ---- */
table.ca-price-grid td { white-space: nowrap; }
table.ca-price-grid td:first-child { white-space: normal; }
.ca-code { white-space: nowrap; }
@media (max-width: 760px) { table.ca-price-grid { font-size: .68rem; } }

/* ---- Quantity step ---- */
.ca-qty-mirror { display: block; border: 1.5px solid #dcdcd6; border-radius: 3px; padding: .55rem .8rem; font-size: 1.05rem; font-weight: 600; width: 150px; font-variant-numeric: tabular-nums; }
.ca-qty-mirror:focus { outline: none; border-color: var(--ca-accent, #1d6fe0); }

/* ---- Phone price grid: compact type so every cell (incl. the (C) code) stays on one line ---- */
@media (max-width: 760px) {
	table.ca-price-grid th, table.ca-price-grid td { padding: .35rem .12rem; }
	table.ca-price-grid { font-size: .62rem; }
	table.ca-price-grid thead th { font-size: .6rem; white-space: nowrap; }
	table.ca-price-grid th:first-child, table.ca-price-grid td:first-child { width: 18%; }
	tr.ca-addon-row td { font-size: .58rem; }
	.ca-code { font-size: .78em; }
}
@media (max-width: 420px) {
	table.ca-price-grid { font-size: .56rem; }
	tr.ca-addon-row td { font-size: .54rem; }
}

/* ---- Final micro-fit: smallest phones, last column never clips ---- */
@media (max-width: 420px) {
	table.ca-price-grid th, table.ca-price-grid td { padding: .35rem .08rem; }
	table.ca-price-grid th:first-child, table.ca-price-grid td:first-child { width: 16%; }
}

/* ================= Virtual Sample Studio ================= */
.ca-vss-launch { display: inline-flex; align-items: center; gap: 9px; width: 100%; justify-content: center; background: var(--ca-ink, #101418); color: #fff; border: 0; border-radius: 4px; padding: .85rem 1.2rem; font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; margin-bottom: 1.1rem; transition: background .15s; }
.ca-vss-launch em { font-style: normal; font-weight: 400; font-size: .78rem; color: #cfd4d9; }
.ca-vss-launch:hover { background: var(--ca-accent, #1d6fe0); }
body.ca-vss-open { overflow: hidden; }
.ca-vss { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; }
.ca-vss-close { position: absolute; top: 14px; right: 18px; z-index: 3; background: none; border: 0; font-size: 2.2rem; line-height: 1; color: #9aa0a6; cursor: pointer; }
.ca-vss-close:hover { color: var(--ca-ink, #101418); }
.ca-vss-head { text-align: center; padding: 22px 60px 0; }
.ca-vss-sku { font-size: .72rem; letter-spacing: .14em; color: #9aa0a6; text-transform: uppercase; }
.ca-vss-title { margin: 2px 0 0; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; }
.ca-vss-body { flex: 1; display: grid; grid-template-columns: 250px 1fr 320px; min-height: 0; }
.ca-vss-steps, .ca-vss-panel { position: relative; overflow: hidden; }
.ca-vss-arc { position: absolute; top: 0; bottom: 0; height: 100%; width: 90px; }
.ca-vss-steps .ca-vss-arc { right: 0; }
.ca-vss-arc-r { left: 0; }
.ca-vss-stepdots { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; align-items: flex-end; padding-right: 34px; }
.ca-vss-dot { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #6b7075; }
.ca-vss-dot i { order: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #c9c9c4; transition: all .15s; }
.ca-vss-dot.is-on { color: var(--ca-ink, #101418); }
.ca-vss-dot.is-on i { background: var(--ca-ink, #101418); border-color: var(--ca-ink, #101418); }
.ca-vss-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.ca-vss-imgwrap { position: relative; width: min(56vh, 88%); aspect-ratio: 1/1; }
.ca-vss-img { width: 100%; height: 100%; object-fit: contain; }
.ca-vss-logo { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ca-vss-logo img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: .96; }
.ca-vss-panel .ca-vss-options { position: absolute; inset: 0; padding: 30px 26px 20px 56px; overflow-y: auto; }
.ca-vss-options h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .8rem; }
.ca-vss-options h3 + .ca-vss-swatches { margin-bottom: 1.4rem; }
.ca-vss-hint { font-size: .82rem; color: #8a8f94; line-height: 1.5; }
.ca-vss-swatches { display: flex; flex-direction: column; gap: 8px; }
.ca-vss-sw { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .88rem; color: var(--ca-ink, #101418); padding: 4px 6px; border-radius: 3px; text-align: left; }
.ca-vss-sw i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; transition: transform .12s; }
.ca-vss-sw:hover i { transform: scale(1.12); }
.ca-vss-sw:hover { background: #f6f5f1; }
.ca-vss-sw.is-on span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ca-vss-sw.is-on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ca-ink, #101418); }
/* The surcharge on a studio choice. Pushed to the trailing edge so the prices in a
   list form one readable column, and left out of the .is-on underline above, which
   is meant to mark the choice rather than the number attached to it. */
.ca-vss-sw-price { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 600; font-size: .8rem; color: #6b7075; white-space: nowrap; }
.ca-vss-sw.is-on .ca-vss-sw-price { color: var(--ca-ink, #101418); }
.ca-vss-upload { border: 1.5px dashed #b9bec3; background: #fff; border-radius: 4px; padding: .9rem 1.4rem; font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.ca-vss-upload:hover { border-color: var(--ca-accent, #1d6fe0); color: var(--ca-accent, #1d6fe0); }
.ca-vss-bar { display: flex; align-items: center; gap: 14px; justify-content: flex-end; padding: 14px 26px; border-top: 1px solid #e6e6e2; }
.ca-vss-price { margin-right: auto; display: flex; flex-direction: column; }
.ca-vss-unit { font-weight: 800; font-size: 1.3rem; }
.ca-vss-permeta { font-style: normal; font-size: .74rem; color: #8a8f94; }
.ca-vss-prev { background: none; border: 0; font-family: inherit; font-weight: 600; color: #6b7075; cursor: pointer; }
.ca-vss-next, .ca-vss-done { background: var(--ca-ink, #101418); color: #fff; border: 0; border-radius: 2px; padding: .8rem 1.6rem; font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.ca-vss-next:hover, .ca-vss-done:hover { background: var(--ca-accent, #1d6fe0); }
.ca-pulse { animation: ca-pulse 1.2s ease 2; }
@keyframes ca-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(29,111,224,.6); } 50% { box-shadow: 0 0 0 10px rgba(29,111,224,0); } }
@media (max-width: 900px) {
	.ca-vss-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; overflow-y: auto; }
	.ca-vss-arc { display: none; }
	.ca-vss-stepdots { position: static; flex-direction: row; justify-content: center; gap: 14px; padding: 10px 0 0; }
	.ca-vss-dot span { display: none; }
	.ca-vss-imgwrap { width: min(46vh, 86%); }
	.ca-vss-panel .ca-vss-options { position: static; padding: 10px 22px 20px; }
	.ca-vss-swatches { flex-direction: row; flex-wrap: wrap; }
}

/* The studio stays fully hidden until launched (display:flex must not override [hidden]) */
.ca-vss[hidden] { display: none !important; }

/* ---- Ink-coloured logo + product colour tint + draggable placement ---- */
.ca-ink-logo { width: 100%; height: 100%; filter: drop-shadow(0 0 1px rgba(0,0,0,.30)); }
.woocommerce-product-gallery__image { position: relative; }
.ca-color-tint, .ca-vss-tint { position: absolute; inset: 0; mix-blend-mode: color; pointer-events: none; z-index: 3; display: none; }
.ca-color-tint.is-on, .ca-vss-tint.is-on { display: block; }
.ca-vss-logo { pointer-events: auto; cursor: grab; touch-action: none; }
.ca-vss-logo.is-drag { cursor: grabbing; outline: 1.5px dashed var(--ca-accent, #1d6fe0); outline-offset: 3px; }

/* ---- Product page footer links -------------------------------------------
   Sits below everything else on a product page: gallery, configurator, price
   grid, tabs and related products. The guide cards below it reuse .ca-cat-guides
   from the theme, which already carries the rule and the 52px gap; this block
   only needs the same treatment one step earlier so the two read as a pair. */
.ca-prod-more { margin: 52px 0 0; padding-top: 44px; border-top: 1px solid var(--ca-line, #e6e3dd); }
.ca-prod-more .ca-eyebrow { display: block; margin-bottom: 14px; }
.ca-prod-more .ca-cat-related { margin: 0; line-height: 1.9; }
.ca-prod-more + .ca-cat-guides { margin-top: 44px; padding-top: 36px; }

/* ---- Account: Reorder + My products ---------------------------------------
   A buyer scanning this list is looking for one specific past build among a
   dozen similar ones, so the specification line carries as much weight as the
   product name — it is the part that tells two orders of the same binder apart. */
.ca-acct-title { font-size: 1.25rem; margin: 0 0 .5rem; }
.ca-acct-intro { color: #4a4f54; font-size: .9rem; margin: 0 0 1.2rem; max-width: 62ch; }
.ca-acct-empty { color: #4a4f54; max-width: 62ch; }
.ca-reorder-list { display: flex; flex-direction: column; gap: 12px; }
.ca-reorder-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--ca-line, #e6e3dd); background: #fff; }
.ca-reorder-thumb { flex: 0 0 72px; line-height: 0; }
.ca-reorder-thumb img { width: 72px; height: auto; }
.ca-reorder-body { flex: 1 1 auto; min-width: 0; }
.ca-reorder-body h3 { font-size: 1rem; margin: 0 0 3px; line-height: 1.3; }
.ca-reorder-body h3 a { color: var(--ca-ink, #101418); text-decoration: none; }
.ca-reorder-meta { font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: #8a8f94; margin: 0; }
.ca-reorder-specs { font-size: .82rem; color: #4a4f54; margin: .35rem 0 0; }
.ca-reorder-act { flex: 0 0 auto; }
@media (max-width: 600px) {
	.ca-reorder-card { flex-wrap: wrap; }
	.ca-reorder-act { flex-basis: 100%; }
}
.ca-reorder-banner { margin: 0 0 1.2rem; padding: .8rem 1rem; background: #eef1f4; border-left: 3px solid var(--ca-accent, #1d6fe0); font-size: .88rem; color: #24303f; }

/* ================= Lanyard material tiles =================
   Two surfaces share this: the material grid on the lanyard category page and
   the "other materials" grid at the foot of a material page. Both are picture
   -led — the whole point is that a buyer picks a material by looking at it,
   because the names alone ("tubular", "woven-in") describe nothing to anyone
   who has not held one. */
.ca-lany-styles { margin: 0 0 2.2rem; }
.ca-lany-styles-h { font-size: 1.15rem; margin: 0 0 .9rem; letter-spacing: -.01em; }
.ca-lany-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .ca-lany-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ca-lany-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.ca-lany-card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	border: 1.5px solid #e4e4de; border-radius: 3px; overflow: hidden;
	background: #fff; transition: border-color .14s, box-shadow .14s, transform .14s;
}
.ca-lany-card:hover { border-color: #b9bec3; box-shadow: 0 6px 18px rgba(16,20,24,.08); transform: translateY(-2px); }
/* The tile for the material you are already on stays in the grid and stays
   clickable. Removing it would be the obvious economy and the wrong one: the
   row is how a buyer compares materials, and a row that silently drops one
   member reads as a missing option rather than as the current one. */
.ca-lany-card.is-current { border-color: var(--ca-ink, #101418); box-shadow: inset 0 0 0 1px var(--ca-ink, #101418); }
.ca-lany-img {
	display: block; width: 100%; aspect-ratio: 1 / 1;
	background: #f4f4f0 center/cover no-repeat;
}
.ca-lany-card > span + span { padding-left: .7rem; padding-right: .7rem; }
.ca-lany-name { display: block; font-weight: 600; font-size: .92rem; line-height: 1.25; padding-top: .65rem; }
.ca-lany-note { display: block; font-size: .8rem; color: #6c7278; line-height: 1.35; padding-top: .28rem; }
.ca-lany-w { display: block; font-size: .74rem; color: #8a8f94; padding-top: .4rem; padding-bottom: .75rem; }

/* Material page furniture */
.ca-lany-style-head { margin: 0 0 1rem; }
.ca-lany-h1 { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6rem; }
.ca-lany-style-head p { font-size: .92rem; line-height: 1.55; color: #3d444b; margin: 0 0 .7rem; }
.ca-lany-switch { font-size: .85rem; color: #6c7278; }
.ca-lany-ladder { margin: .9rem 0 1.1rem; }
.ca-lany-ladder-h { display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: #8a8f94; margin: 0 0 .35rem; }
.ca-lany-ladder table { border-collapse: collapse; font-size: .85rem; }
.ca-lany-ladder th, .ca-lany-ladder td { border: 1px solid #e4e4de; padding: .38rem .7rem; text-align: center; }
.ca-lany-ladder th { background: #f7f7f3; font-weight: 600; }
.ca-lany-ladder p { font-size: .78rem; color: #6c7278; margin: .4rem 0 0; }

/* ---- Picture pills on the material axis in the builder ----
   Same control as every other axis — a radio in a label — so the combination
   filter, the reorder pre-fill and the studio mirror all keep working on it
   untouched. Only the skin changes. */
.ca-pills-thumb { gap: 10px; }
.ca-pills-thumb .ca-pill.has-img {
	border-radius: 3px; padding: 0; width: 116px; overflow: hidden;
	display: flex; flex-direction: column; text-align: center;
}
.ca-pills-thumb .ca-pill-img {
	display: block; width: 100%; aspect-ratio: 1 / 1;
	background: #f4f4f0 center/cover no-repeat;
}
.ca-pills-thumb .ca-pill-name { display: block; padding: .4rem .4rem .1rem; font-size: .76rem; line-height: 1.25; }
.ca-pills-thumb .ca-pill.has-img em { display: block; padding: 0 .4rem .45rem; font-size: .72rem; }
.ca-pills-thumb .ca-pill.has-img.is-active .ca-pill-img { box-shadow: inset 0 0 0 2px var(--ca-ink, #101418); }
@media (max-width: 640px) { .ca-pills-thumb .ca-pill.has-img { width: calc(50% - 5px); } }

/* ==================================================================
 * Our Work — the photo grid, the lightbox, and the category photo band
 * ==================================================================
 *
 * Sixteen studio photographs of real jobs. The design intent is a modern bento
 * layout: an asymmetric grid where a few cells earn extra width, so the eye is
 * given somewhere to land instead of scanning a uniform contact sheet.
 *
 * The bento weights come from the manifest, not from :nth-child. Tying a layout
 * to child position means reordering the library silently reshuffles the design,
 * and the photograph that deserved the wide cell no longer gets it.
 */

/* Masonry by columns, not a bento of fixed boxes.
 *
 * The bento version cropped every photograph to fit a cell — 3:2 for a normal
 * cell, 3:4 for a tall one — and cropping a photograph of a bench full of
 * finished work is how you turn it into a zoomed-in fragment of one binder.
 * There is no crop here at all: the column sets the width, the photograph sets
 * its own height, and the mosaic comes from the pictures rather than from a
 * grid imposed on top of them.
 *
 * CSS columns rather than grid because grid cannot pack items of unequal height
 * without either cropping them or leaving gaps. The cost is column-major
 * reading order, which for a portfolio is no cost at all. The wide and tall
 * classes survive as a weighting hint — a wide photograph still gets the full
 * column and a little more air around it — but they no longer force a shape.
 */
.ca-gal-grid {
	columns: 4;
	column-gap: 14px;
	margin: 2rem 0 2.6rem;
}
.ca-gal-cell {
	margin: 0 0 14px;
	position: relative;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	display: inline-block; /* Safari will otherwise split a figure across columns. */
	width: 100%;
}

/* The trigger is a real <button>, so it must be stripped of every button default
   before it can look like a photograph. */
.ca-gal-open {
	display: block; width: 100%; height: auto;
	padding: 0; border: 0; background: var(--ca-paper, #f6f5f1);
	border-radius: 5px; overflow: hidden; cursor: zoom-in;
	position: relative; line-height: 0;
	box-shadow: 0 1px 2px rgba(16,20,24,.06);
	transition: box-shadow .25s ease, transform .25s ease;
}
.ca-gal-open:hover, .ca-gal-open:focus-visible { box-shadow: 0 14px 34px rgba(16,20,24,.16); transform: translateY(-3px); }
.ca-gal-open:focus-visible { outline: 3px solid var(--ca-accent, #1d6fe0); outline-offset: 3px; }

/* No aspect-ratio, no object-fit, no crop. Each photograph is drawn at its own
   proportions and the column absorbs the difference. */
.ca-gal-open img {
	display: block; width: 100%; height: auto;
	transition: transform .55s cubic-bezier(.2,.7,.3,1);
}
.ca-gal-open:hover img { transform: scale(1.045); }

/* A veil, not a wash. It only has to lift the corner badge off a white binder. */
.ca-gal-veil {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(16,20,24,0) 55%, rgba(16,20,24,.34) 100%);
	opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.ca-gal-open:hover .ca-gal-veil, .ca-gal-open:focus-visible .ca-gal-veil { opacity: 1; }

.ca-gal-plus {
	position: absolute; right: 12px; bottom: 12px;
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.94);
	opacity: 0; transform: scale(.8);
	transition: opacity .22s ease, transform .22s ease;
	pointer-events: none;
}
.ca-gal-plus::before, .ca-gal-plus::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	background: var(--ca-ink, #101418); border-radius: 1px;
	transform: translate(-50%, -50%);
}
.ca-gal-plus::before { width: 13px; height: 1.8px; }
.ca-gal-plus::after  { width: 1.8px; height: 13px; }
.ca-gal-open:hover .ca-gal-plus, .ca-gal-open:focus-visible .ca-gal-plus { opacity: 1; transform: scale(1); }

.ca-gal-cap { margin: .7rem .15rem 0; font-size: .84rem; line-height: 1.5; color: var(--ca-ink-2, #2a2f35); }
.ca-gal-cap strong { display: block; font-size: .92rem; color: var(--ca-ink, #101418); margin-bottom: .18rem; }
.ca-gal-cap span { color: var(--ca-mute, #8a8f94); }

@media (max-width: 1180px) {
	.ca-gal-grid { columns: 3; }
}
@media (max-width: 860px) {
	.ca-gal-grid { columns: 2; column-gap: 12px; }
	.ca-gal-cell { margin-bottom: 12px; }
}
@media (max-width: 600px) {
	.ca-gal-grid { columns: 1; }
	.ca-gal-cap span { display: none; }
}

/* ---- The category photograph, beside the products ----------------
 * The photo is an aside in a two column split; the product loop is the other
 * column. Two rules matter here and both were learned the hard way.
 *
 * First, no aspect-ratio on the image. Every earlier version cropped, and a
 * crop of a photograph whose subject already fills the frame just looks like
 * someone zoomed in and forgot to zoom out. height:auto lets each photograph
 * keep its own proportions — they range from 3:2 to about 4:3 — and the layout
 * absorbs the difference because the column is sized, not the picture.
 *
 * Second, the aside is sticky. On a long category the photograph stays in view
 * while the grid scrolls past it, which is the whole argument for putting it
 * beside the products rather than on top of them.
 */
.ca-cat-split {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 2rem; align-items: start; margin: 0 0 1rem;
}
.ca-cat-main { min-width: 0; }
.ca-cat-aside { position: sticky; top: 1.25rem; }
.ca-cat-aside-count {
	margin: .9rem .1rem 0; font-family: var(--font-display, inherit);
	font-size: .82rem; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--ca-ink, #101418);
}
/* The arrow only means anything when the split has stacked and the products
   really are below, so it is hidden until the layout collapses. */
.ca-cat-aside-arrow { display: none; }

.ca-gal-band { margin: 0; position: relative; }
.ca-gal-band .ca-gal-open { border-radius: 5px; cursor: zoom-in; display: block; }
.ca-gal-band .ca-gal-open img { width: 100%; height: auto; display: block; }
.ca-gal-band figcaption {
	margin: .75rem .2rem 0; font-size: .84rem; line-height: 1.55;
	color: var(--ca-ink-2, #2a2f35);
}
.ca-gal-band-tag {
	display: inline-block; margin-right: .5rem; padding: .16rem .5rem;
	border-radius: 2px; background: var(--ca-ink, #101418); color: #fff;
	font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	vertical-align: 1px;
}
/* A 300px aside off a ~1200px container leaves ~870px of grid, which is three
   comfortable columns. Below that the grid has to give a column back before the
   split itself collapses, or the cards get too narrow to read. */
@media (min-width: 861px) and (max-width: 1180px) {
	.woocommerce .ca-cat-main ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.ca-cat-split { grid-template-columns: 1fr; gap: 1.25rem; }
	.ca-cat-aside { position: static; max-width: 520px; }
	.ca-cat-aside-count {
		display: flex; align-items: center; gap: .45rem;
		font-size: .78rem; color: var(--ca-accent, #1d6fe0);
	}
	.ca-cat-aside-arrow {
		display: inline-block; width: .55em; height: .55em;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); margin-bottom: .25em;
	}
	.ca-gal-band figcaption { font-size: .82rem; }
}

/* ---- The lightbox ------------------------------------------------ */
html.ca-lb-on { overflow: hidden; }
.ca-lb {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(10,13,16,.93);
	display: flex; align-items: center; justify-content: center;
	padding: 3.2rem 4.4rem;
	animation: ca-lb-in .18s ease-out;
}
.ca-lb[hidden] { display: none; }
@keyframes ca-lb-in { from { opacity: 0 } to { opacity: 1 } }

.ca-lb-fig { margin: 0; max-width: 1180px; width: 100%; text-align: center; }
.ca-lb-img {
	display: block; margin: 0 auto;
	max-width: 100%; max-height: calc(100vh - 11rem);
	width: auto; height: auto;
	border-radius: 3px; background: #14181c;
	box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.ca-lb-cap { margin-top: 1rem; color: #e9ecef; font-size: .9rem; line-height: 1.6; }
.ca-lb-cap strong { display: block; font-size: 1.02rem; color: #fff; margin-bottom: .22rem; }
.ca-lb-cap span { color: #a9b0b7; display: block; max-width: 68ch; margin: 0 auto; }

.ca-lb button {
	position: absolute; border: 0; cursor: pointer; color: #fff;
	background: rgba(255,255,255,.1); border-radius: 50%;
	width: 46px; height: 46px; font-size: 1.6rem; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease;
}
.ca-lb button:hover { background: rgba(255,255,255,.22); }
.ca-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ca-lb-x    { top: 1.1rem; right: 1.1rem; font-size: 1.9rem; }
.ca-lb-prev { left: 1.1rem;  top: 50%; transform: translateY(-50%); font-size: 2.1rem; }
.ca-lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 2.1rem; }
.ca-lb.ca-lb-solo .ca-lb-prev, .ca-lb.ca-lb-solo .ca-lb-next { display: none; }

@media (max-width: 700px) {
	.ca-lb { padding: 3.6rem 1rem 1.4rem; }
	.ca-lb-img { max-height: calc(100vh - 13rem); }
	.ca-lb-prev, .ca-lb-next { top: auto; bottom: 1rem; transform: none; width: 42px; height: 42px; }
	.ca-lb-prev { left: 32%; } .ca-lb-next { right: 32%; }
	.ca-lb-cap span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-gal-open, .ca-gal-open img, .ca-gal-veil, .ca-gal-plus { transition: none; }
	.ca-gal-open:hover { transform: none; }
	.ca-gal-open:hover img { transform: none; }
	.ca-lb { animation: none; }
}

/* ==================================================================
 * Ring capacity table (data/rings.php)
 * ==================================================================
 * Numeric columns are tabular so the sheet counts line up on the digit rather
 * than on the glyph width, which is the difference between a chart you can
 * compare down a column and one you have to read twice.
 */
.ca-ringtable-wrap { margin: 1.6rem 0 1.9rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ca-ringtable {
	width: 100%; border-collapse: collapse; min-width: 480px;
	font-size: .92rem; background: #fff;
	border: 1px solid var(--ca-line, #e6e6e2); border-radius: 4px; overflow: hidden;
}
table.ca-ringtable caption {
	caption-side: top; text-align: left; padding: 0 0 .6rem;
	font-size: .78rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ca-ink, #101418);
}
table.ca-ringtable thead th {
	background: var(--ca-ink, #101418); color: #fff;
	font-weight: 600; font-size: .82rem; letter-spacing: .03em;
	padding: .68rem .85rem; text-align: left; white-space: nowrap;
}
table.ca-ringtable tbody th {
	text-align: left; font-weight: 700; white-space: nowrap;
	background: var(--ca-paper, #f6f5f1); color: var(--ca-ink, #101418);
}
table.ca-ringtable th, table.ca-ringtable td {
	padding: .6rem .85rem; border-top: 1px solid var(--ca-line, #e6e6e2);
}
table.ca-ringtable td { font-variant-numeric: tabular-nums; color: var(--ca-ink-2, #2a2f35); }
table.ca-ringtable tbody tr:first-child th, table.ca-ringtable tbody tr:first-child td { border-top: 0; }
table.ca-ringtable td.ca-ring-na { color: var(--ca-mute, #8a8f94); }
.ca-ringtable-note { margin: .7rem 0 0; font-size: .82rem; line-height: 1.6; color: var(--ca-mute, #8a8f94); }

/* ==================================================================
 * Brochure viewer (includes/brochures.php)
 * ==================================================================
 * Every page of every brochure is in the markup at once — that is what makes
 * the alt text readable to a crawler — so the pages are stacked in one grid
 * cell rather than injected on click. The inactive ones keep their box (which
 * is why the frame height never jumps between pages) but are taken out of the
 * paint and out of the tab order.
 *
 * --ca-broch-ratio is set inline per brochure from the measured page render,
 * so the frame reserves the right height before the first image decodes and
 * nothing below it shifts.
 */
.ca-broch { margin: 0 0 2.4rem; }

.ca-broch-stage {
	display: flex; align-items: center; gap: .5rem;
	background: var(--ca-paper, #f6f5f1);
	border: 1px solid var(--ca-line, #e6e6e2);
	border-radius: 5px; padding: .9rem;
}

/* FIT-TO-SCREEN IS THE DEFAULT, AND THAT IS THE WHOLE POINT OF THIS BLOCK.
 *
 * The viewer used to give the page image width:100% of the stage. On a 1220px
 * window that rendered a letter-size catalogue page at 1027 x 1328 CSS pixels
 * inside a 638px-tall viewport: you could never see a whole page, you were
 * scrolling two screens per page, and because WordPress's "large" intermediate
 * is only 791px wide the browser was also upscaling it 1.3x, so the type was
 * soft on top of being oversized. Measured on the live site, not guessed.
 *
 * So the page is now sized from HEIGHT, not width. `height` is set explicitly
 * and `width` is auto, which means aspect-ratio computes the width — this is
 * deterministic in a way that `max-height` on a width:100% image is not (that
 * combination just letterboxes inside object-fit and leaves the box the wrong
 * size). svh rather than vh because on iOS vh is the tallest the viewport ever
 * gets, so a vh-based cap silently overflows behind the address bar.
 *
 * The 132px reserve is the stage padding, the figcaption and a little air, so
 * the page plus its caption clears the fold rather than the page alone. The
 * 760px ceiling stops a tall desktop window from blowing the page back up past
 * the point where the source has detail to give.
 */
.ca-broch-frame { position: relative; flex: 1 1 auto; min-width: 0; display: grid; justify-items: center; perspective: 2600px; }
.ca-broch-page {
	grid-area: 1 / 1; margin: 0; min-width: 0; width: 100%;
	display: flex; flex-direction: column; align-items: center;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .22s ease;
}
.ca-broch-page.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

/* THE PAGE FLIP.
 *
 * A catalogue is a bound thing, and turning its pages should look like turning
 * pages, not like a slide fading in. The spine is the left edge, so a forward
 * turn swings the current page over that edge — rotateY 0 to -180 — while the
 * next page simply sits underneath, exactly as paper works: the page you turn
 * moves, the page it reveals does not. Going back is the mirror image: the
 * earlier page swings DOWN from the spine onto the one you're leaving.
 *
 * backface-visibility does the disappearing. Past 90 degrees the sheet shows
 * the browser its back, which is hidden, so the second half of the turn is the
 * reveal — no opacity choreography needed. Only ONE element ever animates per
 * turn; the other just gets .is-under, which pins it visible beneath with no
 * transition, and both classes are stripped when the turn is over.
 *
 * The perspective sits on the frame (2600px — a reader's arm's length; smaller
 * values fisheye a letter-size page). z-index works on the flipping page
 * because grid items accept it without position. The whole figure turns,
 * caption included: the caption is printed on the sheet, so it travels with it.
 */
.ca-broch-page.is-under { opacity: 1; visibility: visible; transition: none; }
.ca-broch-page.is-flipping {
	z-index: 2; opacity: 1; visibility: visible; pointer-events: none;
	transition: none; transform-origin: left center;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
	will-change: transform;
}
@keyframes ca-broch-flip-fwd { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes ca-broch-flip-back { from { transform: rotateY(-180deg); } to { transform: rotateY(0deg); } }
.ca-broch-page.is-flip-fwd { animation: ca-broch-flip-fwd .55s cubic-bezier(.4, .1, .3, 1) both; }
.ca-broch-page.is-flip-back { animation: ca-broch-flip-back .55s cubic-bezier(.4, .1, .3, 1) both; }

/* THE SPREAD. Two facing pages share one sheet-box: outer corners rounded, the
   gutter square, and a hairline down the centre standing in for the fold. The
   pages butt together with no gap because a printed spread has none — product
   photography on these pages runs across the gutter and a white slit through
   the middle of a banner image reads as a rendering bug, not a book. */
.ca-broch-duo { display: flex; justify-content: center; min-width: 0; max-width: 100%; }
.ca-broch-page.is-duo .ca-broch-duo img { max-width: 50%; }
.ca-broch-page.is-duo .ca-broch-duo img:first-child { border-radius: 3px 0 0 3px; border-right: 0; }
.ca-broch-page.is-duo .ca-broch-duo img + img { border-radius: 0 3px 3px 0; border-left: 1px solid rgba(16, 20, 24, .12); }

/* THE LEAF — the one sheet that turns during a spread-to-spread flip. Built by
   the JS at flip time, positioned over the half it lifts, and destroyed when
   the turn is over. preserve-3d is what lets the back image ride the parent's
   rotation: front and back are both in the leaf's plane, the back pre-turned
   180°, and each hides its own backface — so the sheet shows the outgoing page
   until edge-on and the incoming page after, which is simply what paper does.
   While it turns, the incoming spread underneath is clipped to the half the
   leaf is NOT delivering (is-reveal-r / is-reveal-l), so no page is ever on
   screen twice; its caption hides for the same reason the old one stays. */
.ca-broch-leaf {
	position: absolute; z-index: 3; pointer-events: none;
	transform-style: preserve-3d; will-change: transform;
}
@keyframes ca-leaf-fwd { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes ca-leaf-back { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
.ca-broch-leaf.is-fwd { transform-origin: left center; animation: ca-leaf-fwd .6s cubic-bezier(.4, .15, .25, 1) both; }
.ca-broch-leaf.is-back { transform-origin: right center; animation: ca-leaf-back .6s cubic-bezier(.4, .15, .25, 1) both; }
.ca-broch-leaf img {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block;
	background: #fff; border: 1px solid var(--ca-line, #e6e6e2);
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.ca-leaf-b { transform: rotateY(180deg); }
.ca-broch-leaf.is-fwd .ca-leaf-f { border-radius: 0 3px 3px 0; }
.ca-broch-leaf.is-fwd .ca-leaf-b { border-radius: 3px 0 0 3px; }
.ca-broch-leaf.is-back .ca-leaf-f { border-radius: 3px 0 0 3px; }
.ca-broch-leaf.is-back .ca-leaf-b { border-radius: 0 3px 3px 0; }

.ca-broch-page.is-reveal-r, .ca-broch-page.is-reveal-l { z-index: 1; }
.ca-broch-page.is-reveal-r .ca-broch-duo { clip-path: inset(0 0 0 50%); }
.ca-broch-page.is-reveal-l .ca-broch-duo { clip-path: inset(0 50% 0 0); }
.ca-broch-page.is-reveal-r figcaption, .ca-broch-page.is-reveal-l figcaption { opacity: 0; }
.ca-broch-page img {
	display: block; margin: 0 auto; cursor: zoom-in;
	height: min(calc(100svh - 132px), 760px); width: auto; max-width: 100%;
	aspect-ratio: var(--ca-broch-ratio, 3 / 4);
	object-fit: contain; background: #fff;
	border: 1px solid var(--ca-line, #e6e6e2); border-radius: 3px;
	box-shadow: 0 10px 30px rgba(16, 20, 24, .10);
}

/* Zoomed: back to the full width of the stage, which is what the reader asked
   for by pressing the button, and is the only size at which the small print in
   a product table is actually readable. The document scrolls; that is expected
   here in a way it was not when it happened by default. */
.ca-broch.is-zoom .ca-broch-page img { height: auto; width: 100%; cursor: zoom-out; }
/* A zoomed spread keeps its two-up geometry: half the stage each. */
.ca-broch.is-zoom .ca-broch-page.is-duo .ca-broch-duo img { width: 50%; }
.ca-broch.is-zoom .ca-broch-stage { align-items: flex-start; }
.ca-broch.is-zoom .ca-broch-arrow { position: sticky; top: 90px; }

.ca-broch-zoom { display: inline-flex; align-items: center; gap: .45rem; }
.ca-broch-zoom svg { flex: 0 0 auto; }

.ca-broch-page figcaption {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
	gap: .1rem .7rem; width: 100%; max-width: 62ch;
	padding: .75rem .1rem .1rem; text-align: center;
}
.ca-broch-count {
	font-size: .72rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ca-ink, #101418); white-space: nowrap;
}
.ca-broch-cap { flex: 1 1 16rem; font-size: .86rem; line-height: 1.6; color: var(--ca-ink-2, #2a2f35); }

.ca-broch-arrow {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; cursor: pointer;
	color: var(--ca-ink, #101418); background: #fff;
	border: 1px solid var(--ca-line, #e6e6e2); border-radius: 50%;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.ca-broch-arrow:hover { background: var(--ca-ink, #101418); color: #fff; border-color: var(--ca-ink, #101418); }
.ca-broch-arrow:focus-visible { outline: 2px solid var(--ca-accent, #1d6fe0); outline-offset: 2px; }
.ca-broch-arrow[disabled] { opacity: .3; cursor: default; }
.ca-broch-arrow[disabled]:hover { background: #fff; color: var(--ca-ink, #101418); border-color: var(--ca-line, #e6e6e2); }

/* The rail is a table of contents that happens to have pictures in it, which
   is why each button carries the printed section name and not a page number. */
.ca-broch-rail {
	display: flex; gap: .55rem; margin: .9rem 0 0;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	padding: .2rem .2rem .6rem; scrollbar-width: thin;
}
.ca-broch-thumb {
	flex: 0 0 auto; width: 86px; padding: 0; cursor: pointer;
	display: flex; flex-direction: column; gap: .35rem;
	background: none; border: 0; text-align: center;
}
.ca-broch-thumb img {
	display: block; width: 100%; height: auto;
	aspect-ratio: var(--ca-broch-ratio, 3 / 4); object-fit: cover;
	background: #fff; border: 1px solid var(--ca-line, #e6e6e2);
	border-radius: 2px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ca-broch-thumb span {
	font-size: .68rem; line-height: 1.35; letter-spacing: .04em;
	text-transform: uppercase; font-weight: 600; color: var(--ca-mute, #8a8f94);
}
.ca-broch-thumb:hover img { transform: translateY(-2px); border-color: var(--ca-ink, #101418); }
.ca-broch-thumb.is-active img { border-color: var(--ca-accent, #1d6fe0); box-shadow: 0 0 0 2px var(--ca-accent, #1d6fe0); }
.ca-broch-thumb.is-active span { color: var(--ca-ink, #101418); }
.ca-broch-thumb:focus-visible { outline: 2px solid var(--ca-accent, #1d6fe0); outline-offset: 3px; border-radius: 2px; }

.ca-broch-actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem;
	margin: 1rem 0 0;
}
.ca-broch-hint { font-size: .8rem; color: var(--ca-mute, #8a8f94); }
.ca-broch-nopix { margin: 0 0 2rem; }

/* Hub cards. */
.ca-broch-index {
	display: grid; gap: 1.1rem; margin: 0 0 2.2rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ca-broch-card {
	display: flex; flex-direction: column; overflow: hidden;
	text-decoration: none; color: inherit; background: #fff;
	border: 1px solid var(--ca-line, #e6e6e2); border-radius: 5px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ca-broch-card:hover {
	transform: translateY(-3px); border-color: var(--ca-ink, #101418);
	box-shadow: 0 14px 34px rgba(16, 20, 24, .12);
}
.ca-broch-card-pic { display: block; background: var(--ca-paper, #f6f5f1); }
.ca-broch-card-pic img {
	display: block; width: 100%; height: auto;
	aspect-ratio: var(--ca-broch-ratio, 3 / 4); object-fit: cover; object-position: top center;
	max-height: 320px;
}
.ca-broch-card-body { display: block; padding: 1rem 1.1rem 1.2rem; }
.ca-broch-card-body .ca-eyebrow { display: block; margin: 0 0 .35rem; }
.ca-broch-card-body strong { display: block; font-size: 1.06rem; line-height: 1.35; margin: 0 0 .4rem; }
.ca-broch-card-body span { display: block; font-size: .88rem; line-height: 1.6; color: var(--ca-ink-2, #2a2f35); }
.ca-broch-card-body em { display: block; margin: .55rem 0 0; font-style: normal; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ca-mute, #8a8f94); }

.ca-broch-cats { margin-top: 1.8rem; }
.ca-cat-broch { margin-top: 1.6rem; }

/* Below this width the column is narrower than a fit-to-height page would be,
   so height-driven sizing would clamp on max-width and letterbox inside the
   box. Width-driven sizing IS fit-to-screen at these sizes — a 360px column
   gives a page about 460px tall, which is already inside the viewport — so the
   rule flips rather than fighting itself, and the zoom toggle keeps working
   because it sets the same two properties from the other side. */
@media (max-width: 900px) {
	.ca-broch-page img { height: auto; width: 100%; }
	.ca-broch-page.is-duo .ca-broch-duo img { width: 50%; }
	.ca-broch.is-zoom .ca-broch-arrow { position: static; }
}

@media (max-width: 720px) {
	.ca-broch-stage { padding: .55rem; gap: .3rem; }
	.ca-broch-arrow { width: 36px; height: 36px; }
	.ca-broch-thumb { width: 66px; }
	.ca-broch-card-pic img { max-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-broch-page, .ca-broch-card, .ca-broch-thumb img, .ca-broch-arrow { transition: none; }
	.ca-broch-card:hover { transform: none; }
	.ca-broch-thumb:hover img { transform: none; }
	/* The JS also checks this preference and skips the flip path entirely;
	   this line is the guarantee if that check is ever bypassed. */
	.ca-broch-page.is-flip-fwd, .ca-broch-page.is-flip-back { animation: none; }
	.ca-broch-leaf { animation: none; }
}

/* ---- Diploma size switcher ----
 * A row of sibling-page links styled to read as one control: the size you are
 * on is the filled pill, every other size is a real <a> to that size's own
 * page. Deliberately shaped like the configurator's pills so the page keeps
 * one visual language, but these navigate rather than select — which is why
 * the active one is a <span>: the page you are on is not a link. */
.ca-dip-sizes { margin: .35rem 0 1.2rem; }
.ca-dip-size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-dip-size {
	display: inline-flex; align-items: baseline; gap: .4rem;
	border: 1.5px solid #dcdcd6; border-radius: 2px;
	padding: .42rem .95rem; font-size: .85rem; background: #fff;
	color: var(--ca-ink, #101418); transition: border-color .12s, box-shadow .12s;
}
.ca-dip-size b { font-weight: 600; }
.ca-dip-size em { font-style: normal; color: #8a8f94; font-size: .76rem; }
a.ca-dip-size:hover { border-color: var(--ca-accent, #1d6fe0); box-shadow: 0 2px 10px rgba(16, 20, 24, .08); }
.ca-dip-size.is-active { border-color: var(--ca-ink, #101418); background: var(--ca-ink, #101418); color: #fff; }
.ca-dip-size.is-active em { color: #cfd4d9; }
.ca-dip-size-note { margin: .5rem 0 0; font-size: .78rem; color: #8a8f94; }

/* Gallery thumb rail (v1.48.5) — slider under the stage, click swaps the big image. */
/* Gallery slider (owner, v1.48.9): one tidy row with arrow paging. */
.ca-gal-nav { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ca-gal-thumbs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; flex: 1 1 auto; min-width: 0; }
.ca-gal-thumbs::-webkit-scrollbar { display: none; }
.ca-gal-arrow { flex: 0 0 auto; width: 30px; height: 88px; border: 1.5px solid var(--ca-line, #e6e6e2); border-radius: 3px; background: #fff; color: var(--ca-ink, #101418); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .12s, border-color .12s; }
.ca-gal-arrow:hover { background: var(--ca-ink, #101418); color: #fff; border-color: var(--ca-ink, #101418); }
.ca-gal-thumb { flex: 0 0 auto; width: 88px; height: 88px; padding: 0; border: 1.5px solid var(--ca-line, #e6e6e2); border-radius: 3px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .12s; }
/* contain, not cover (owner, v1.48.10): cover cropped the tall binder photos
   to a zoomed centre slice. The whole product must be visible in each thumb.
   The photos themselves have almost no margin — the product touches the frame
   edge — so the tile carries the whitespace instead: generous padding on a
   larger tile (owner, v1.48.15 — "the little squares are too zoomed"). */
.ca-gal-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 14px; box-sizing: border-box; }
.ca-gal-thumb.is-active, .ca-gal-thumb:hover { border-color: var(--ca-ink, #101418); }

/* Stage image never zoomed (owner, v1.48.11–13): the product photos fill their
   frame edge to edge, so rendered at full column width they read as a blown-up
   crop. The stage is a fixed-height window: the WHOLE photo always fits inside
   it (object-fit contain) with breathing room around it, and WooCommerce's
   hover-magnify clone is disabled. */
.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100% !important; height: 540px !important; max-width: 100%; object-fit: contain; background: #fff; padding: 18px; box-sizing: border-box; }
.woocommerce div.product div.images img.zoomImg { display: none !important; }
@media (max-width: 640px) {
	.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg) { height: 360px !important; padding: 10px; }
}
