/* BUYER ROOM (css/pages/buyer.css): a file index and certificate badges. */
.br-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gut); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.br-head .d-2 { margin: 0; max-width: 16ch; }
.br-head .lead { margin: 0; }
.br-room { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: var(--gut); align-items: start; }
.br-room__nav { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 4px; }
.doc-filter-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); font: 500 1rem var(--f); text-align: left; cursor: pointer; }
.doc-filter-btn i { font-style: normal; font-size: .8125rem; color: var(--ink-3); }
.doc-filter-btn:hover { background: var(--paper-2); }
.doc-filter-btn.active { background: var(--ink); color: var(--paper); }
.doc-filter-btn.active i { color: inherit; opacity: .7; }
.doc-filter-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.br-room__list { border-top: 1px solid var(--ink); }
.br-preview { position: relative; margin: 20px 0 clamp(30px, 4vw, 54px); padding: clamp(18px, 3vw, 34px); border-radius: var(--r-l); background: radial-gradient(ellipse at 72% 22%, rgba(255, 255, 255, .82), transparent 58%), var(--paper-2); overflow: hidden; }
.br-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgba(15, 23, 18, .08)); pointer-events: none; }
.br-preview__sheet { position: relative; width: min(100%, 570px); min-height: 316px; margin: 0 auto; border-radius: 2px; background: var(--bone); box-shadow: 0 24px 54px rgba(15, 23, 18, .16), 0 0 0 1px var(--rule); transform: rotate(-1.35deg); }
.br-preview__page { padding: clamp(26px, 4vw, 48px); filter: blur(1.55px); opacity: .7; }
.br-preview__k { margin: 0 0 12px; font: 600 .7rem/1.4 var(--f); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.br-preview__t { margin: 0; max-width: 18ch; font: 400 var(--t-3)/1.02 var(--fd); color: var(--ink); }
.br-preview__rule { height: 1px; margin: 22px 0 0; background: var(--rule-2); }
.br-preview__rule--short { width: 64%; margin-top: 12px; }
.br-preview__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; }
.br-preview__meta div { display: grid; gap: 3px; }
.br-preview__meta dt { font: 600 .66rem/1.2 var(--f); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.br-preview__meta dd { margin: 0; font-size: .9rem; color: var(--ink-2); }
.br-preview__note { margin: 26px 0 0; font-size: .8rem; color: var(--ink-3); }
.br-preview__lock { position: absolute; right: clamp(14px, 3vw, 30px); bottom: clamp(14px, 3vw, 28px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .76rem/1 var(--f); box-shadow: 0 10px 24px rgba(15, 23, 18, .2); transform: rotate(1.35deg); }
.br-preview__lock svg { width: 14px; height: 14px; }
.br-doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule-2); }
.br-doc__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); background: var(--paper-2); color: var(--green); }
.br-doc__ic.is-gated { color: var(--ink-2); }
.br-doc__ic svg { width: 20px; height: 20px; }
.br-doc__k { margin: 0 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.br-doc__t { margin: 0 0 4px; font-family: var(--fd); font-weight: 400; font-size: var(--t-4); line-height: 1.2; }
.br-doc__d { margin: 0; max-width: 62ch; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.br-doc__meta { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-3); text-align: right; white-space: nowrap; }
.br-doc__act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 999px; background: none; color: var(--ink); font: 600 .9375rem var(--f); text-decoration: none; cursor: pointer; white-space: nowrap; }
.br-doc__act svg { width: 16px; height: 16px; }
.br-doc__act:hover { background: var(--ink); color: var(--paper); }
.br-doc__act.is-gated { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.br-certs { background: var(--paper-2); }
.br-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gut); margin: 0; padding: 0; list-style: none; }
.br-badge { display: grid; align-content: start; gap: 8px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); background: var(--bone); box-shadow: 0 0 0 1px var(--rule); }
.br-badge__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.br-badge__t { margin: 0; font-family: var(--fd); font-weight: 400; font-size: var(--t-4); }
.br-badge__st { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(26, 67, 49, .1); color: var(--green); font-size: .75rem; font-weight: 600; }
.br-badge__sub, .br-badge__d { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.br-badge__m { margin: 8px 0 0; font-family: var(--fd); font-size: var(--t-3); line-height: 1.05; color: var(--ink); }
.br-badge__c { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.br-table { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.br-table > summary { display: flex; justify-content: space-between; align-items: center; min-height: 60px; list-style: none; cursor: pointer; font-family: var(--fd); font-size: var(--t-4); }
.br-table > summary::-webkit-details-marker { display: none; }
.br-table > summary i::before { content: "+"; font-family: var(--f); }
.br-table[open] > summary i::before { content: "−"; }
@media (max-width: 900px) {
  .br-head, .br-room { grid-template-columns: minmax(0, 1fr); }
  .br-room__nav { position: static; display: flex; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .doc-filter-btn { flex: none; border: 1px solid var(--rule-2); border-radius: 999px; }
  .br-preview { margin-bottom: 30px; padding: 16px; }
  .br-preview__sheet { min-height: 236px; }
  .br-preview__page { padding: 24px; }
  .br-preview__t { font-size: clamp(1.55rem, 6vw, 2rem); }
  .br-preview__lock { right: 14px; bottom: 14px; }
  .br-doc { grid-template-columns: 44px minmax(0, 1fr); }
  .br-doc__meta { grid-column: 2; text-align: left; }
  .br-doc__act { grid-column: 2; justify-self: start; }
}

/* ---------- Certificates on a lit dark wall ---------- */
.br-certs { background: var(--night); color: var(--on-night); }
.br-certs .d-2, .br-certs .lead { color: var(--on-night); }
.br-certs .br-badge { position: relative; overflow: hidden; border: 1px solid transparent; border-radius: 24px;
  background: linear-gradient(180deg, rgba(241, 237, 228, .08), rgba(241, 237, 228, .02)) padding-box, linear-gradient(160deg, rgba(241, 237, 228, .3), rgba(241, 237, 228, .04) 42%, rgba(255, 179, 71, .45)) border-box;
  box-shadow: inset 0 1px 0 rgba(241, 237, 228, .1), 0 30px 60px -36px rgba(0, 0, 0, .8); }
.br-certs .br-badge::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 179, 71, .22), transparent 70%); pointer-events: none; }
.br-certs .br-badge__t, .br-certs .br-badge__m { color: var(--on-night); }
.br-certs .br-badge__m { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); color: var(--apricot); }
.br-certs .br-badge__sub, .br-certs .br-badge__d, .br-certs .br-badge__c { color: var(--on-night-2); }
.br-certs .br-badge__c { border-top-color: var(--rule-n); }
.br-certs .br-badge__st { background: rgba(136, 201, 153, .14); color: var(--leaf); }
.br-certs .br-table { border-top-color: var(--rule-n); }
.br-certs .br-table > summary { color: var(--on-night); }
.br-certs .tbl-w { border-radius: 18px; background: var(--bone); color: var(--ink); }

/* ---------- Document rows: each lifts into a card on hover ---------- */
.br-doc { position: relative; isolation: isolate; padding: 20px 18px; margin-inline: -18px; border-radius: 20px; border-bottom-color: transparent; box-shadow: 0 1px 0 var(--rule); transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), background-color .4s; }
.br-doc:hover { transform: translateY(-3px); background: var(--bone); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22, 32, 26, .06), 0 24px 50px -28px rgba(15, 23, 18, .35); }
.br-doc__ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, var(--green), #2C5E46); color: var(--apricot); box-shadow: 0 10px 20px -12px rgba(26, 67, 49, .7); transition: transform .5s var(--e-out); }
.br-doc__ic.is-gated { background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--on-night-2); }
.br-doc:hover .br-doc__ic { transform: rotate(-6deg) scale(1.06); }
.br-doc__act { transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--e-out); }
.br-doc:hover .br-doc__act { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -12px rgba(15, 23, 18, .6); }
@media (hover: none) { .br-doc:hover { transform: none; background: none; box-shadow: 0 1px 0 var(--rule); } }

/* =============================================================================
   Document folders: each file is a 3D folder with a name tab, paper sheets
   inside and a front pocket. Hover or tap and the pocket tips forward, the
   sheets lift out and fan. Colour follows the category.
   ========================================================================== */
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 1.6vw, 24px); border-top: 0; }
.fd-grid > .br-preview { grid-column: 1 / -1; margin-top: 0; }
.br-room .fd { --c: #2A6A4D; --c3: #1C4A35; --cb: #163F2E; --fc: var(--bone); --fc2: rgba(241, 237, 228, .74);
  position: relative; display: block; margin: 0; padding: 26px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; perspective: 1100px; cursor: pointer; }
.br-room .fd:hover { background: none; box-shadow: none; transform: none; }
.br-room .fd--spec_sheet, .br-room .fd--technical_spec { --c: #DDBB86; --c3: #C9A066; --cb: #B88B50; --fc: var(--ink); --fc2: rgba(22, 32, 26, .72); }
.br-room .fd--qa_lab { --c: #24322A; --c3: #18221C; --cb: #0E1511; }
.br-room .fd--audit_report { --c: #FFBE5C; --c3: #F2A33A; --cb: #D98A24; --fc: var(--apricot-ink); --fc2: rgba(42, 26, 0, .74); }
.br-room .fd--export_compliance { --c: #3F7F78; --c3: #2D625C; --cb: #224C47; }
.br-room .fd--legal { --c: #F1EBDF; --c3: #E2D9C8; --cb: #CFC3AD; --fc: var(--ink); --fc2: rgba(22, 32, 26, .72); }

.fd__body { position: relative; display: block; min-height: 360px; padding-top: 110px; transform-style: preserve-3d; transition: transform .8s var(--e-out); }
.fd__back { position: absolute; inset: 0; border-radius: 4px 18px 18px 18px; background: linear-gradient(180deg, var(--cb), color-mix(in srgb, var(--cb) 80%, #000)); box-shadow: 0 30px 50px -30px rgba(15, 23, 18, .55); }
.fd__tab { position: absolute; left: 0; bottom: 100%; display: inline-flex; align-items: center; height: 26px; padding: 0 18px 0 14px; border-radius: 10px 10px 0 0; background: var(--cb); font: 600 .6875rem/1 var(--fm); letter-spacing: .08em; color: var(--fc); }
.fd__tab::after { content: ""; position: absolute; left: calc(100% - 1px); bottom: 0; width: 22px; height: 100%; background: var(--cb); clip-path: polygon(0 0, 20% 0, 100% 100%, 0 100%); }

.fd__papers { position: absolute; left: 16px; right: 16px; top: 18px; height: 170px; }
.fd__paper { position: absolute; inset: 0; display: grid; align-content: start; gap: 8px; padding: 16px 18px; border-radius: 4px; background: #FFFDF8; box-shadow: 0 1px 0 rgba(15, 23, 18, .06), 0 8px 18px -10px rgba(15, 23, 18, .3); transform-origin: 50% 100%; transition: transform .8s var(--e-out); }
.fd__paper i { display: block; height: 6px; border-radius: 3px; background: rgba(22, 32, 26, .1); }
.fd__paper i:nth-child(3) { width: 82%; }
.fd__paper i:nth-child(4) { width: 64%; }
.fd__paper b { justify-self: start; padding: 3px 8px; border-radius: 4px; background: var(--apricot); font: 700 .625rem/1.2 var(--f); letter-spacing: .08em; color: var(--apricot-ink); }
.fd__paper--1 { z-index: 2; transform: rotate(-1.5deg); }
.fd__paper--2 { z-index: 1; background: #F3ECDE; transform: translate(8px, 4px) rotate(2.5deg); }

.fd__front { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; min-height: 250px; padding: 22px 20px 18px; border-radius: 16px; color: var(--fc);
  background: linear-gradient(172deg, var(--c), var(--c3)); transform-origin: 50% 100%; transition: transform .8s var(--e-out), box-shadow .8s var(--e-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 -10px 24px -14px rgba(0, 0, 0, .35), 0 30px 50px -30px rgba(15, 23, 18, .55); }
.fd__front::before { content: ""; position: absolute; left: 20px; right: 20px; top: 10px; height: 1px; background: rgba(255, 255, 255, .22); }
.fd__front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: overlay; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 64%); background-size: 250% 100%; background-position: 100% 0; transition: background-position 1.2s var(--e-out); }
.fd .br-doc__k { margin: 0; padding-right: 48px; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fc2); }
.fd .br-doc__t { margin: 0; padding-right: 36px; font-family: var(--fd); font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); line-height: 1.12; color: var(--fc); }
.fd .br-doc__d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--fc2); }
.fd__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--fc) 18%, transparent); }
.fd .br-doc__meta { flex: 1 1 100%; margin: 0; font-size: .8125rem; line-height: 1.45; text-align: left; white-space: normal; color: var(--fc2); }
.fd .br-doc__act { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fc); color: var(--c3); font-size: .875rem; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--e-out), box-shadow .4s; }
.fd .br-doc__act:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6); }
.fd .br-doc__act.is-gated { background: var(--fc); color: var(--c3); }
.fd__stamp { position: absolute; right: 16px; top: -18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transform: rotate(-12deg); transition: transform .8s var(--e-out); }
.fd__stamp svg { width: 18px; height: 18px; }
.fd__stamp.is-public { background: var(--bone); color: var(--green); box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px rgba(26, 67, 49, .35), 0 10px 20px -10px rgba(0, 0, 0, .6); }
.fd__stamp.is-gated { background: #B6412E; color: #FCE9DF; box-shadow: inset 0 0 0 3px #B6412E, inset 0 0 0 4px rgba(252, 233, 223, .4), 0 10px 20px -10px rgba(0, 0, 0, .6); }

/* Open: the pocket tips forward, the sheets lift and fan */
.fd:hover .fd__front, .fd.is-open .fd__front, .fd:focus-within .fd__front { transform: rotateX(-24deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 -14px 30px -14px rgba(0, 0, 0, .45), 0 40px 60px -30px rgba(15, 23, 18, .6); }
.fd:hover .fd__front::after, .fd.is-open .fd__front::after { background-position: 0 0; }
.fd:hover .fd__paper--1, .fd.is-open .fd__paper--1, .fd:focus-within .fd__paper--1 { transform: translateY(-46px) rotate(-5deg); }
.fd:hover .fd__paper--2, .fd.is-open .fd__paper--2, .fd:focus-within .fd__paper--2 { transform: translate(26px, -24px) rotate(7deg); }
.fd:hover .fd__stamp, .fd.is-open .fd__stamp { transform: rotate(6deg) scale(1.08); }
.fd:hover .fd__body, .fd.is-open .fd__body { transform: translateY(-6px); }

/* Arrival: folders drop into the cabinet one by one */
.fd-grid.is-armed .fd { opacity: 0; transform: translateY(50px) rotateX(18deg); transition: opacity .7s var(--e-out), transform 1s var(--e-out); transition-delay: calc(var(--i, 0) * .08s); }
.fd-grid.is-armed .fd.is-in { opacity: 1; transform: none; }
.fd.is-hide { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fd__front, .fd__paper, .fd__stamp, .fd__body { transition: none; }
  .fd-grid.is-armed .fd { opacity: 1; transform: none; }
}

/* ---------- Matte cardstock: flat colour, paper grain, soft diffuse shadow, no gloss ---------- */
.br-room .fd { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.fd__front { background: var(--grain), var(--c); background-blend-mode: multiply; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 34px -22px rgba(15, 23, 18, .45); }
.fd__front::before { top: 0; left: 0; right: 0; height: 100%; border-radius: inherit; background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fd__front::after { display: none; }
.fd__back, .fd__tab, .fd__tab::after { background: var(--grain), var(--cb); background-blend-mode: multiply; }
.fd__back { box-shadow: 0 22px 40px -28px rgba(15, 23, 18, .45); }
.fd__paper { background: var(--grain), #FBF7EE; background-blend-mode: multiply; box-shadow: 0 1px 0 rgba(15, 23, 18, .05), 0 6px 14px -10px rgba(15, 23, 18, .25); }
.fd__paper--2 { background: var(--grain), #F0E9DA; background-blend-mode: multiply; }
.fd__paper b { box-shadow: none; }
.fd:hover .fd__front, .fd.is-open .fd__front, .fd:focus-within .fd__front { box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 28px 44px -26px rgba(15, 23, 18, .5); }
.fd__stamp.is-public { background: var(--grain), var(--bone); background-blend-mode: multiply; box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px rgba(26, 67, 49, .3), 0 6px 12px -8px rgba(0, 0, 0, .4); }
.fd__stamp.is-gated { background: var(--grain), #A84433; background-blend-mode: multiply; box-shadow: inset 0 0 0 3px #A84433, inset 0 0 0 4px rgba(252, 233, 223, .35), 0 6px 12px -8px rgba(0, 0, 0, .4); }
.fd .br-doc__act, .fd .br-doc__act:hover { box-shadow: none; }
.fd .br-doc__act:hover { transform: translateY(-1px); filter: brightness(.96); }
/* Slightly deeper, less saturated card colours read as matte stock */
.br-room .fd { --c: #2E5E48; --cb: #234A38; }
.br-room .fd--spec_sheet, .br-room .fd--technical_spec { --c: #D2B385; --cb: #B9966A; }
.br-room .fd--qa_lab { --c: #27322B; --cb: #1A221D; }
.br-room .fd--audit_report { --c: #EDB25E; --cb: #D29546; }
.br-room .fd--export_compliance { --c: #44766F; --cb: #335A55; }
.br-room .fd--legal { --c: #EAE3D5; --cb: #D3C8B3; }

/* ---------- Index of contents and the request form ---------- */
.br-index__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.br-index__k { margin: 0; font: 600 .8125rem/1.3 var(--f); letter-spacing: .02em; color: var(--ink-3); }
.br-index__list .d-2 { margin: 10px 0 clamp(24px, 3vw, 40px); }
.br-toc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.br-toc li { border-bottom: 1px solid var(--rule-2); }
.br-toc__a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; min-height: 58px; padding: 12px 6px; color: var(--ink); text-decoration: none; transition: background-color .3s, padding-left .4s var(--e-out); }
.br-toc__a:hover { padding-left: 14px; background: var(--paper-2); }
.br-toc__a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.br-toc__n { font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
.br-toc__t { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.br-toc__s { font-size: .75rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: var(--ink-3); }
.br-toc__s.is-open { color: var(--green); }
.br-toc__ar { display: grid; place-items: center; color: var(--ink-3); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--e-out); }
.br-toc__ar svg { width: 16px; height: 16px; }
.br-toc__a:hover .br-toc__ar { opacity: 1; transform: none; }
.br-gate { position: sticky; top: calc(var(--hdr) + 24px); scroll-margin-top: calc(var(--hdr) + 24px); padding: clamp(24px, 2.6vw, 38px); border-radius: var(--r-l); background: var(--bone); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -40px rgba(15, 23, 18, .35); }
.br-gate__t { margin: 0 0 22px; font-family: var(--fd); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + .7vw, 1.75rem); line-height: 1.16; color: var(--ink); }
.br-gate .btn { width: 100%; justify-content: space-between; }
.br-doc.is-flag { box-shadow: 0 0 0 2px var(--apricot); border-radius: 18px; transition: box-shadow .4s; }
@media (max-width: 900px) {
  .br-index__in { grid-template-columns: minmax(0, 1fr); }
  .br-gate { position: static; }
  .br-toc__a { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .br-toc__ar { display: none; }
  .br-toc__t { font-size: 1rem; }
}
