/* Hand-off documentation styles (hub + design-system page). NOT part of the WordPress theme. */
.ref-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 400; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill); background: #0b1b2f; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ref-launcher .fi { font-size: 16px; }
.ref-launcher:hover { background: #12325a; }
.ref-panel { position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw); z-index: 450; background: #0b1b2f; color: #dfe9f5; transform: translateX(-102%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
.ref-panel.is-open { transform: none; }
.ref-panel__head { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
.ref-panel__head strong { font-size: 16px; color: #fff; }
.ref-panel__head small { display: block; font-size: 12px; opacity: .65; font-weight: 400; }
.ref-panel__close { color: #fff; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); }
.ref-panel__close:hover { background: rgba(255,255,255,.1); }
.ref-panel nav { overflow-y: auto; padding: 12px; flex: 1; }
.ref-panel h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fb4dd; margin: 16px 8px 6px; font-weight: 600; }
.ref-panel ul { list-style: none; margin: 0; padding: 0; }
.ref-panel a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: #dfe9f5; }
.ref-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ref-panel a[aria-current="page"] { background: var(--c-primary); color: #fff; }
.ref-panel a small { opacity: .6; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ref-panel__foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; opacity: .75; }
.ref-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 440; opacity: 0; visibility: hidden; transition: opacity .3s; }
.ref-scrim.is-open { opacity: 1; visibility: visible; }
.ref-outline [data-module-name] { outline: 2px dashed rgba(255,96,0,.55); outline-offset: -2px; position: relative; }
.ref-outline [data-module-name]::before { content: attr(data-module-name); position: absolute; z-index: 30; top: 4px; left: 4px; background: #ff6000; color: #fff; font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 4px 6px; border-radius: var(--r-xs); pointer-events: none; }
.ref-doc { padding: 140px var(--gutter) 80px; max-width: calc(var(--container-max) + var(--gutter) * 2); margin-inline: auto; container-type: inline-size; container-name: wrap; }
.ref-doc h1 { font-size: var(--fs-h2); font-weight: 500; margin-bottom: 12px; }
.ref-doc > p { color: var(--c-ink-2); font-size: var(--fs-lg); max-width: 900px; }
.ref-doc h2 { font-size: var(--fs-h5); font-weight: 500; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.ref-doc h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; color: var(--c-ink-2); }
.ref-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ref-swatch { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; font-size: 12px; }
.ref-swatch i { display: block; height: 64px; }
.ref-swatch span { display: block; padding: 8px 10px; }
.ref-swatch code { color: var(--c-muted); }
.ref-type > * { padding: 12px 0; border-bottom: 1px solid var(--c-border-soft); display: flex; gap: 24px; align-items: baseline; }
.ref-type code { flex: 0 0 220px; font-size: 12px; color: var(--c-muted); }
.ref-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; }
.ref-row--tint { background: var(--c-surface); }
.ref-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ref-icons div { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--c-border-soft); border-radius: 10px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; color: var(--c-ink-2); }
.ref-icons .fi { color: var(--c-primary); font-size: 20px; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ref-table th, .ref-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border-soft); vertical-align: top; }
.ref-table th { background: var(--c-surface); font-weight: 600; }
.ref-table code { font-size: 12px; background: #f2f5f9; padding: 1px 6px; border-radius: var(--r-xs); }
.ref-mod { margin-top: 40px; border: 1px solid var(--c-border); border-radius: 20px; overflow: hidden; }
.ref-mod__head { padding: 14px 20px; background: #0b1b2f; color: #fff; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }
.ref-mod__head code { color: #8fd0ff; }
.ref-mod__body { background: #fff; }
.ref-page[hidden] { display: none !important; }
.ref-table-wrap { overflow-x: auto; }
.ref-doc .ref-table { display: block; overflow-x: auto; }
@media (max-width: 640px) {.ref-type > * { flex-wrap: wrap; }
.ref-type code { flex-basis: 100%; }}
.ref-doc .ref-table { display: block; overflow-x: auto; max-width: 100%; }
.ref-doc > table.ref-table { white-space: normal; }
/* hub page */
.handoff-docs .ref-hub{max-width:1180px;margin:0 auto;padding:48px var(--gutter) 96px}
.ref-hub h1{font-size:clamp(2rem,1.4rem+2vw,3rem);line-height:1.1;margin:8px 0 12px}
.ref-hub h2{font-size:1.5rem;margin:56px 0 12px}
.ref-hub p,.ref-hub li{color:var(--c-ink-2);line-height:1.6}
.ref-hub code{font-size:.9em;background:#f1f4f8;padding:1px 6px;border-radius:6px}
.ref-hub pre{background:#0b1b2f;color:#dfe9f5;padding:16px 18px;border-radius:14px;overflow:auto;font-size:13px;line-height:1.55}
.ref-hub pre code{background:none;padding:0}
.ref-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:16px;padding:0;list-style:none}
.ref-cards a{display:block;border:1px solid var(--c-border);border-radius:16px;padding:16px 18px;background:#fff;transition:border-color .2s,transform .2s}
.ref-cards a:hover{border-color:var(--c-primary-ui);transform:translateY(-2px)}
.ref-cards strong{display:block;color:var(--c-ink);font-weight:500}
.ref-cards small{display:block;color:var(--c-ink-2);margin-top:4px;font-family:ui-monospace,Menlo,monospace;font-size:12px}
.ref-kpis{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.ref-kpis span{border:1px solid var(--c-border);border-radius:999px;padding:6px 14px;font-size:14px;color:var(--c-ink)}
.ref-legend{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px}
.ref-legend th,.ref-legend td{border-bottom:1px solid var(--c-border);padding:10px 8px;text-align:left;vertical-align:top}
.ref-legend th{font-weight:500;color:var(--c-ink)}
.handoff-docs [data-wp-field]{outline-offset:2px}
body.wp-outline [data-wp-field]{outline:1px dashed #e8735a}
body.wp-outline [data-wp-repeater],body.wp-outline [data-wp-loop]{outline:2px dotted #8b5cf6;outline-offset:4px}
body.wp-outline [data-wp-part]{outline:2px solid rgba(10,114,214,.55);outline-offset:-2px}
body.wp-outline [data-wp-field]::after{content:attr(data-wp-field);font:500 10px/1 ui-monospace,Menlo,monospace;background:#e8735a;color:#fff;padding:2px 4px;border-radius:3px;margin-left:4px;vertical-align:middle}

/* hub layout */
.handoff-docs { background: #fbfcfe; }
.ref-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.ref-top__in { max-width: 1180px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ref-top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.ref-top nav a { color: var(--c-ink-2); } .ref-top nav a:hover { color: var(--c-primary-ui); }
.ref-hub h3 { font-size: 1.125rem; margin: 28px 0 8px; }
.ref-steps { padding-left: 20px; display: grid; gap: 10px; }
.ref-note { font-size: 14px; color: var(--c-ink-2); }
.ref-mod { border: 1px solid var(--c-border); border-radius: 14px; background: #fff; margin-top: 10px; }
.ref-mod summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 16px; list-style: none; }
.ref-mod summary::-webkit-details-marker { display: none; }
.ref-mod summary span { color: var(--c-ink-2); font-size: 14px; }
.ref-mod summary em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--c-ink-2); }
.ref-mod[open] summary { border-bottom: 1px solid var(--c-border); }
.ref-mod__body { padding: 8px 16px 16px; }
.ref-fields { list-style: none; padding-left: 0; margin: 6px 0 0; font-size: 14px; }
.ref-fields .ref-fields { padding-left: 22px; border-left: 2px solid #eef1f5; margin-left: 4px; }
.ref-fields li { margin: 4px 0; }
.ref-type-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #eef4fb; color: #0a5fb4; }
.ref-type-repeater, .ref-type-loop { background: #f2eafd; color: #6b3fd1; }
.ref-type-image { background: #e3f7ea; color: #17733f; } .ref-type-link { background: #fff1dc; color: #8a5a00; } .ref-type-icon { background: #fde6ee; color: #a3325c; }
.ref-sample { color: #6b7480; }
.ref-inspector { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; }
.ref-inspector .c-select { width: auto; min-width: 240px; }
.ref-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.ref-frame { width: 100%; height: 80vh; border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.ref-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 8px; }
.ref-legend-dot--part { border: 2px solid rgba(10,114,214,.6); } .ref-legend-dot--rep { border: 2px dotted #8b5cf6; } .ref-legend-dot--field { border: 1px dashed #e8735a; }
.ref-table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .ref-mod summary em { margin-left: 0; } .ref-legend td, .ref-legend th { padding: 8px 6px; } }
