:root {
  --ink: #17233d;
  --title: #101c34;
  --muted: #475671;
  --accent: #484bce;
  --accent-deep: #3337ac;
  --wash: #f3f5fa;
  --mint: #e2f4ee;
  --line: #dfe5ef;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 45px #16223e10;
  --wrap: 1600px;
  --pad: clamp(20px, 4.2vw, 76px);
  --section: clamp(56px, 7vw, 100px);
  color: var(--ink);
  background: var(--white);
  font: 16px/1.65 Pretendard, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { color: var(--title); margin: 0; line-height: 1.29; letter-spacing: -.04em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); font-weight: 800; }
h3 { font-size: clamp(1.13rem, 1.55vw, 1.4rem); font-weight: 760; }
ul, ol, dl { margin: 0; }
dt { font-weight: 700; }
dd { margin: 0; }
summary { cursor: pointer; font-weight: 750; }
.container { width: min(calc(100% - var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 60; top: 12px; left: 12px; padding: 10px 18px; color: #fff; background: var(--ink); transform: translateY(calc(-100% - 20px)); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fffffffa; }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 2vw, 34px); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-weight: 850; font-size: 1.48rem; letter-spacing: -.07em; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; position: relative; display: inline-block; background: var(--accent); border-radius: 8px 8px 8px 2px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: white; border-radius: 2px; }
.brand-mark::before { inset: 7px 13px 7px 13px; }
.brand-mark::after { inset: 11px 8px 15px 8px; }
.primary-nav > ul, .submenu { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: stretch; gap: clamp(3px, 1.1vw, 23px); }
.nav-group { position: relative; }
.nav-label { display: flex; align-items: center; }
.nav-label > a { font-size: .91rem; font-weight: 750; padding: 23px 0; display: block; white-space: nowrap; }
.nav-group.is-current .nav-label > a, .nav-label > a:hover { color: var(--accent-deep); }
.nav-toggle { align-self: stretch; width: 21px; padding: 0; border: 0; background: none; }
.chevron { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.submenu { display: none; position: absolute; top: calc(100% - 1px); left: -14px; min-width: 222px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.nav-group:last-child .submenu { right: -12px; left: auto; }
.nav-group.is-open .submenu { display: block; }
.submenu a { display: block; padding: 9px 12px; font-size: .92rem; border-radius: 8px; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--wash); color: var(--accent-deep); }
.search-link { font-size: .9rem; font-weight: 750; flex: none; padding: 7px 13px; border-radius: 9px; background: var(--wash); white-space: nowrap; }
.search-link:hover { background: var(--mint); }
.mobile-toggle { display: none !important; }

.hero { background: var(--wash); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 4.4vw, 80px); }
.hero-copy { min-width: 0; padding: clamp(52px, 6vw, 105px) 0; align-self: center; animation: enter .55s ease-out both; }
.hero-copy > p, .hero-simple p, .detail-heading p { max-width: 52ch; margin: 19px 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-copy .button-row { margin-top: 26px; }
.hero-media { min-width: 0; min-height: 290px; position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.home-hero .hero-grid { width: auto; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); }
.home-hero .hero-copy { padding-left: var(--pad); }
.home-hero h1 { max-width: 18ch; }
.hero-simple { padding-block: clamp(40px, 5.6vw, 80px); }
.hero-simple .container { max-width: var(--wrap); }
.mint-hero { background: var(--mint); }
.dark-hero { background: var(--ink); color: white; }
.dark-hero h1, .dark-hero p, .dark-hero .crumbs { color: white; }
.dark-hero .hero-media img { object-fit: contain; background: transparent; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 1rem; }
.crumbs a:hover { text-decoration: underline; }
.section { padding-block: var(--section); }
.section + .section:not(.tint):not(.developer-band) { padding-top: 0; }
.section.tint + .section { padding-top: var(--section) !important; }
.section.quick-section { padding-block: 26px 55px; }
.section.search-section { padding-top: 48px; }
.section.tint { background: var(--wash); }
.section.detail-heading { padding-block: clamp(35px, 5vw, 65px); }
.detail-heading .title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.section-head p { color: var(--muted); margin: 7px 0 0; }
.section-head > a { flex: none; }
.eyebrow { margin: 0 0 6px; font-size: .88rem; font-weight: 750; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: white; font-size: .94rem; line-height: 1.35; font-weight: 750; text-align: center; transition: background .18s, color .18s, border-color .18s; }
.button:hover:not(:disabled) { background: var(--accent-deep); color: white; }
.button-outline { background: white; color: var(--accent-deep); border-color: #b9c1e6; }
.button-outline:hover:not(:disabled) { background: var(--wash); color: var(--accent-deep); border-color: var(--accent); }
.button-light { background: white; color: var(--ink); }
.button-small { min-height: 38px; padding: 6px 11px; font-size: 1rem; }
.text-link { color: var(--accent-deep); font-size: .94rem; font-weight: 750; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.button[aria-pressed="true"] { color: #204e43; background: var(--mint); border-color: #9ecfbd; }
.tag { background: var(--mint); color: #21483e; font-size: 0.945rem; font-weight: 750; line-height: 1.3; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px #16223e08; }
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo.fit { object-fit: contain; background: var(--wash); }

.quick-grid, .card-grid, .step-grid { display: grid; gap: clamp(14px, 2vw, 28px); }
.quick-grid, .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3, .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2, .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-card { border-radius: 12px; background: var(--wash); display: flex; gap: 12px; align-items: center; padding: 16px; transition: background .2s, transform .2s; }
.quick-card:hover { background: var(--mint); transform: translateY(-3px); }
.quick-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #bacee8; color: var(--accent-deep); border-radius: 9px; font-size: 1.04rem; font-weight: 800; flex: none; background: #fff; }
.quick-card strong, .quick-card small { display: block; }
.quick-card small { font-size: 0.975rem; color: var(--muted); }
.card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #bdc7e3; }
.card-media { overflow: hidden; display: block; }
.card-media img, .card > .photo { aspect-ratio: 16/10; width: 100%; height: auto; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: clamp(14px, 1.9vw, 24px); min-width: 0; }
.card-body h3 { margin: 8px 0; }
.card-body h3 a:hover { color: var(--accent-deep); }
.card-body p { color: var(--muted); margin: 0 0 14px; }
.card-body .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.965rem; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card-task { font-size: .88rem; }
.card.horizontal { display: grid; grid-template-columns: minmax(115px, 42%) minmax(0, 1fr); align-items: stretch; }
.card.horizontal .card-media img { height: 100%; min-height: 156px; }
.featured, .lab-feature, .case-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3.2vw, 48px); }
.featured, .lab-feature { border-radius: var(--radius); overflow: hidden; background: var(--mint); }
.featured > div, .lab-feature > div { padding: clamp(22px, 3vw, 42px); padding-left: 0; }
.featured > img, .lab-feature > img { aspect-ratio: 16/9; min-height: 238px; }
.featured h2 { margin-top: 13px; }
.featured p, .lab-feature p, .case-feature p { color: var(--muted); margin-top: 10px; }
.featured .button { margin-top: 5px; }
.case-feature > img { aspect-ratio: 16/10; min-height: 190px; border-radius: var(--radius); }
.case-feature dl { margin-block: 12px 18px; }
.case-feature h3 { margin-top: 18px; }
.lab-feature { background: white; border: 1px solid var(--line); }
.inline-steps { display: grid; gap: 7px; padding-left: 1.3em; margin: 12px 0 20px; }
.inline-steps li::marker { color: var(--accent-deep); font-weight: 750; }
.people-feature { margin: 34px 0 48px; }
.people-feature > img { align-self: stretch; aspect-ratio: 4/3; }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.mini-gallery img { aspect-ratio: 16/9; border-radius: 9px; }
.small-list-item { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; background: #fff; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.small-list-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 7px; }
.small-list-item p { color: var(--muted); margin: 4px 0 0; font-size: .91rem; }
.small-list-item a:hover { color: var(--accent-deep); }
.editorial-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 18px; }
.editorial-grid > :first-child { grid-row: span 2; }
.editorial-grid .card .card-media img { aspect-ratio: 16/9; }
.step { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.step > img { height: auto; aspect-ratio: 16/9; }
.step-copy { padding: 17px 20px 22px; }
.step-number { display: grid; place-items: center; min-width: 28px; width: min-content; height: 28px; margin-bottom: 10px; font-weight: 800; border-radius: 50%; color: #204e43; background: var(--mint); }
.step-copy p { color: var(--muted); margin: 8px 0 0; }
.file-row { display: grid; grid-template-columns: minmax(110px,180px) minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.file-row + .file-row { margin-top: 12px; }
.file-row img { height: auto; aspect-ratio: 16/9; border-radius: 8px; }
.file-row h3 { margin: 5px 0; }
.file-row p { color: var(--muted); margin: 0; }
.file-row > a { margin-right: 7px; }
.developer-band { background: var(--ink); color: white; padding-block: clamp(40px, 5vw, 70px) !important; }
.developer-band + .section { padding-top: var(--section) !important; }
.developer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.developer-inner h2 { color: white; }
.developer-inner p:last-child { margin: 8px 0 0; color: #d8e1f2; }
.recent-list { border-block: 1px solid var(--line); }
.recent-list > div { display: grid; grid-template-columns: minmax(125px, max-content) 1fr; align-items: center; gap: 18px; padding-block: 13px; }
.recent-list > div + div { border-top: 1px solid var(--line); }
.recent-list .tag { justify-self: start; }
.announce { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px,4vw,45px); color: var(--ink); background: var(--mint); border-radius: var(--radius); }
.announce p { margin: 7px 0 0; color: var(--muted); }
.card-grid + .announce, .step-grid + .announce { margin-top: 36px; }
.last-section { padding-bottom: var(--section); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; border: 1px solid var(--line); padding: 12px; border-radius: 12px; background: white; margin-bottom: 22px; }
.filter-search { display: block; flex: 1 1 240px; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { display: block; width: 100%; min-width: 0; background: white; border: 1px solid #bfc9dc; border-radius: 8px; min-height: 43px; padding: 8px 10px; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #55627b; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter-pill { border: 1px solid var(--line); border-radius: 24px; padding: 7px 12px; background: var(--wash); font-size: .88rem; font-weight: 700; }
.filter-pill.selected, .filter-pill:hover { background: var(--accent); color: white; border-color: var(--accent); }
.result-count { font-size: .94rem; color: var(--muted); }
.empty { margin-top: 16px; padding: 24px; border: 1px dashed #aabbd2; border-radius: 11px; background: var(--wash); }
.review-layout { display: grid; grid-template-columns: minmax(170px, 224px) minmax(0,1fr); gap: 24px; align-items: start; }
.review-layout .horizontal { grid-template-columns: minmax(135px, 32%) 1fr; }
.review-layout .horizontal .card-media { background: var(--wash); }
.review-filters { position: sticky; top: 95px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); padding: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: 8px; }
.review-filters fieldset { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 2px; }
.review-filters label { display: block; font-size: .91rem; padding: 2px 0; }
.review-filters .button { margin-top: 15px; }
.review-list { display: grid; gap: 13px; }
.compare-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(200px,1.2fr) auto; align-items: end; gap: 12px; margin: 18px 0 22px; }
.compare-controls label { font-size: .94rem; font-weight: 700; }
.compare-controls select { margin-top: 7px; }
.compare-selection { color: var(--muted); }
.compare-result { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 440px; }
.compare-table caption { text-align: left; color: var(--muted); padding-bottom: 9px; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 12px; }
.compare-table thead, .compare-table th[scope="row"] { background: var(--wash); }
.compare-table button { margin-top: 8px; }
.compare-table th img { max-width: 170px; border-radius: 7px; margin: 0 0 8px; object-fit: contain; }

.form-layout, .doc-layout { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.2fr); align-items: start; gap: clamp(20px,4vw,55px); }
.form-aside { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-aside img, .doc-layout > img { aspect-ratio: 16/10; height: auto; }
.form-aside > div, .form-panel { padding: clamp(18px,3vw,36px); }
.form-aside ul { padding: 10px 0 10px 1.1em; }
.form-panel label, .admin-form label { display: block; font-weight: 660; padding-bottom: 13px; }
.form-panel input, .form-panel textarea, .admin-form input:not([type="radio"]), .admin-form textarea { margin-top: 5px; }
.form-panel h2, .form-panel button, .admin-form h2 { margin-bottom: 11px; }
.form-panel > p { color: var(--muted); }
.required { font-weight: 650; font-size: 0.955rem; color: #84432b; }
.feedback { background: var(--mint); border: 1px solid #b9ded1; color: #1f4b40; padding: 10px 14px; border-radius: 8px; }
.doc-layout > img { border-radius: var(--radius); }
.doc-layout.text-only { display: block; max-width: 860px; }
.doc-row { border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 20px; }
.doc-row h2 { font-size: 1.32rem; margin-bottom: 8px; }
.doc-row p { margin: 0; color: var(--muted); }
.fact { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(83px,max-content) 1fr; gap: 12px; padding-block: 8px; }
.fact dd { color: var(--muted); }
.photo-link { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.photo-link img { height: auto; aspect-ratio: 16/10; }
.photo-link > a { display: block; padding: 13px 16px; }
.lab-detail { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: clamp(16px,3vw,46px); }
.toc { position: sticky; top: 100px; align-self: start; padding: 13px; border-radius: 10px; background: var(--wash); }
.toc h2 { font-size: 1.05rem; padding: 4px 8px; }
.toc a { display: block; padding: 7px 9px; border-radius: 6px; font-size: .92rem; }
.toc a:hover { background: var(--mint); color: var(--accent-deep); }
.article-content > section + section { margin-top: clamp(42px,6vw,84px); }
.article-content h2 { margin-bottom: 17px; font-size: clamp(1.42rem,2.4vw,1.95rem); }
.article-content .case-feature { gap: 20px; }
.option-grid { display: grid; gap: 14px; }
.option-card { display: grid; grid-template-columns: minmax(80px,.65fr) 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); background: var(--wash); border-radius: 12px; }
.option-card img { height: clamp(125px,16vw,220px); }
.option-card h3 { margin: 7px 0; }
.option-card p { font-size: .91rem; color: var(--muted); margin: 0; }
.demo-note { padding: 9px 12px; border-radius: 8px; background: var(--mint); }
.site-footer { padding-block: clamp(36px,5vw,64px); background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: minmax(200px,1fr) minmax(0,1.3fr); align-items: center; gap: 30px; }
.footer-grid p { color: #d7e2f3; margin: 8px 0; }
.footer-note { font-size: 0.985rem; color: #aebcd1; }
.footer-grid nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 17px; font-size: .91rem; }
.footer-grid nav a:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 40; right: 20px; bottom: 20px; width: max-content; max-width: calc(100% - 40px); padding: 12px 16px; background: var(--ink); color: white; border-radius: 10px; box-shadow: var(--shadow); }

.admin-view { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--wash); }
.admin-sidebar { height: 100vh; position: sticky; top: 0; align-self: start; color: white; background: var(--ink); padding: 22px 14px; }
.admin-brand { padding: 5px 10px 20px; display: grid; gap: 5px; }
.admin-brand > span { font-size: .89rem; color: #c5d1e9; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a, .admin-exit { display: block; padding: 9px 11px; border-radius: 8px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a[aria-current="page"] { background: var(--accent); }
.admin-exit { margin-top: 15px; font-size: .91rem; color: #e2e9fb; }
.admin-job small { font-size: calc(.833333em + .125rem); }
.admin-view main { width: min(100%, 1680px); padding: clamp(18px,3vw,43px); margin-inline: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 19px; }
.admin-top h1 { font-size: clamp(1.65rem,3.1vw,2.6rem); }
.admin-top p { color: var(--muted); margin: 6px 0 0; }
.admin-top .eyebrow { color: var(--accent-deep); margin: 0 0 5px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.admin-progress { list-style: none; padding: 10px; margin-bottom: 16px; display: flex; justify-content: space-around; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 10px; counter-reset: flow; }
.admin-progress li { counter-increment: flow; font-size: .89rem; font-weight: 750; }
.admin-progress li::before { content: counter(flow); display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--wash); }
.admin-progress li.current::before, .admin-progress li.complete::before { background: var(--accent); color: white; }
.admin-form, .admin-result, .admin-panel { padding: clamp(16px,2.3vw,30px); }
.admin-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 12px; }
.admin-form legend { font-size: 1.14rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-grid label { padding: 7px; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.choice-grid label:has(input:checked) { background: var(--wash); border-color: var(--accent); }
.admin-result .section-head { margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: white; font-size: .91rem; padding: 6px 8px; border-radius: 7px; }
.tabs button[aria-pressed="true"] { background: var(--wash); color: var(--accent-deep); font-weight: 800; }
.studio-output { min-height: 180px; padding: 15px 0; overflow-wrap: anywhere; }
.studio-output h3, .admin-panel h2 { margin-bottom: 10px; }
.studio-output dl > div { margin-bottom: 11px; padding: 10px; background: var(--wash); border-radius: 7px; }
.studio-output h3 + p { margin-top: 8px; }
.admin-result .feedback { margin-top: 11px; }
.muted { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stats article { display: grid; padding: 14px; gap: 4px; }
.admin-stats strong { font-size: 2rem; color: var(--accent-deep); }
.admin-job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 11px 0; gap: 7px; }
.admin-job small { display: block; color: var(--muted); }
.admin-job + .admin-job { margin-top: 3px; }
.template-list { display: grid; gap: 12px; }
.template-list details { padding: 12px 18px; }
.template-list p { margin: 9px 0 0; }
.settings { display: grid; gap: 8px; }
.settings div { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 10px 0; }
.settings dt { min-width: 130px; }

@keyframes enter {
  from { opacity: .45; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal.revealed { animation: enter .45s ease-out both; }
@media (max-width: 1050px) {
  .nav-label > a { font-size: 0.985rem; }
  .nav-toggle { width: 16px; }
  .quick-grid, .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 915px) {
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 0 var(--pad) 13px; max-height: 75vh; overflow: auto; border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { display: block; }
  .mobile-toggle { display: inline-flex !important; margin-left: auto; }
  .nav-label > a { flex: 1; padding: 9px; font-size: .97rem; }
  .nav-toggle { width: 41px; }
  .submenu { box-shadow: none; position: static; background: var(--wash); }
  .masthead { min-height: 62px; justify-content: flex-start; }
  .admin-view { grid-template-columns: 170px minmax(0,1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - var(--pad)*2); }
  .hero-grid, .home-hero .hero-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .hero-copy, .home-hero .hero-copy { padding: 34px 0; }
  .home-hero .hero-copy { padding-inline: var(--pad); }
  .hero-media { min-height: 0; height: auto; aspect-ratio: 16/8.8; }
  .hero-media img { height: 100%; width: 100%; }
  .hero-grid:not(:has(.hero-media)) .hero-copy { padding-bottom: 35px; }
  .grid-3, .step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-feature, .featured, .lab-feature, .editorial-grid, .form-layout, .doc-layout, .lab-detail { grid-template-columns: 1fr; }
  .featured > div, .lab-feature > div { padding: 0 18px 20px; }
  .featured > img, .lab-feature > img { min-height: 0; }
  .editorial-grid > :first-child { grid-row: auto; }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .toc h2 { width: 100%; }
  .review-layout { grid-template-columns: 1fr; }
  .review-filters { position: static; }
  .review-filters fieldset label { display: inline-block; margin-right: 8px; }
  .compare-controls { grid-template-columns: 1fr; }
  .compare-controls > button { justify-self: start; }
  .file-row { grid-template-columns: minmax(90px,32%) minmax(0,1fr); gap: 10px; }
  .file-row > a { grid-column: 2; justify-self: start; }
  .developer-inner, .announce { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .quick-grid { gap: 7px; }
  .quick-card { padding: 10px; gap: 6px; }
  .quick-card small { font-size: 0.915rem; }
  .quick-icon { width: 29px; height: 29px; }
  .grid-2, .grid-3, .grid-4, .step-grid, .option-grid { grid-template-columns: minmax(0,1fr); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .review-layout .horizontal { grid-template-columns: 1fr; }
  .card.horizontal .card-media img { min-height: 0; }
  .recent-list > div { grid-template-columns: 1fr; gap: 4px; padding-block: 11px; }
  .admin-view { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; padding: 13px; }
  .admin-brand { padding-bottom: 6px; }
  .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
  .admin-top > a { display: none; }
  .admin-progress { flex-wrap: wrap; justify-content: flex-start; }
  .fact { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.quick-icon { position: relative; }
.quick-icon::before, .quick-icon::after { content: ""; position: absolute; }
.icon-learn::before { inset: 8px 7px; border: 1.7px solid currentColor; border-radius: 2px 4px 4px 2px; }
.icon-learn::after { inset: 9px 50% 9px auto; border-left: 1.7px solid currentColor; }
.icon-edit::before { width: 16px; height: 6px; border: 1.7px solid currentColor; border-radius: 1px 3px 3px 1px; transform: rotate(-43deg); }
.icon-edit::after { width: 13px; bottom: 7px; left: 7px; border-bottom: 1.7px solid currentColor; }
.icon-video::before { inset: 8px 6px; border: 1.7px solid currentColor; border-radius: 3px; }
.icon-video::after { border: 4px solid transparent; border-left: 6px solid currentColor; transform: translateX(2px); }
.icon-develop::before, .icon-develop::after { width: 7px; height: 7px; border: 1.7px solid currentColor; }
.icon-develop::before { border-width: 0 0 1.7px 1.7px; transform: translateX(-4px) rotate(45deg); }
.icon-develop::after { border-width: 1.7px 1.7px 0 0; transform: translateX(4px) rotate(45deg); }
.card.horizontal .card-media:not(:has(.fit)) img { object-position: 64% 50%; }
@media (min-width: 721px) {
  .lab-home .section-head { text-align: center; flex-direction: column; align-items: center; }
}

/* Detailed articles keep the reading flow narrow while allowing images and tables to use the full column. */
.editorial-main { padding-top: clamp(22px, 3.4vw, 48px) !important; }
.editorial-detail { display: grid; grid-template-columns: minmax(170px, 205px) minmax(0, 1fr); gap: clamp(24px, 4vw, 66px); align-items: start; }
.editorial-toc { border: 1px solid var(--line); padding: 12px; }
.editorial-toc a { line-height: 1.5; }
.editorial-flow { min-width: 0; }
.editorial-flow > section + section { margin-top: clamp(38px, 5vw, 72px); }
.editorial-flow p { color: var(--muted); max-width: 68ch; }
.editorial-summary { padding: clamp(20px, 3.4vw, 44px); background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.editorial-summary h2 { margin-bottom: 10px; }
.editorial-summary > p { color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.22rem); }
.editorial-summary-message { padding: 14px 16px; border-radius: 10px; background: white; border: 1px solid var(--line); }
.editorial-summary-message strong, .editorial-note strong { display: block; color: var(--accent-deep); margin-bottom: 5px; }
.editorial-summary-message p, .editorial-note p { margin: 0; }
.editorial-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 3vw, 32px); }
.editorial-figure { min-width: 0; margin: 0; }
.editorial-figure img { aspect-ratio: 16/10; height: auto; border-radius: 12px; }
.editorial-figure figcaption { padding-top: 6px; color: var(--muted); font-size: .88rem; }
.editorial-facts { border: 1px solid var(--line); background: var(--wash); border-radius: 12px; padding: 6px 15px; }
.editorial-facts .fact:first-child { border-top: 0; }
.editorial-facts .fact { grid-template-columns: minmax(92px, .55fr) 1fr; }
.editorial-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block: 14px 0; }
.editorial-panels.stacked { grid-template-columns: 1fr; margin: 0; }
.editorial-panels > :only-child { grid-column: 1 / -1; }
.editorial-panel { padding: clamp(14px, 2vw, 24px); background: white; border: 1px solid var(--line); border-radius: 12px; }
.editorial-panel h3 { margin: 0 0 7px; font-size: 1.12rem; }
.editorial-panel p { margin: 0; }
.editorial-note { margin-block: 15px; padding: clamp(15px, 2.5vw, 28px); border-radius: 12px; border: 1px solid #b9ded1; background: var(--mint); }
.editorial-note.outline { background: var(--wash); border-color: var(--line); }
.editorial-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.editorial-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.editorial-table caption { text-align: left; padding: 12px; font-weight: 750; }
.editorial-table th, .editorial-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.editorial-table thead { background: var(--wash); }
.editorial-table th[scope="row"] { min-width: 100px; }
.editorial-table td:last-child, .editorial-table th:last-child { white-space: nowrap; }
.editorial-example-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.editorial-work .editorial-split { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.editorial-guides .editorial-summary { background: var(--mint); }
.option-card.text-option { grid-template-columns: 1fr; }
.card-status { display: block; color: var(--muted); font-size: 0.965rem; margin-top: 2px; }
.home-people, .home-reviews { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: clamp(12px,2.4vw,28px); }
.home-people-list, .home-review-list { display: grid; gap: 12px; }
.home-people-list .card.horizontal, .home-review-list .card.horizontal { grid-template-columns: minmax(105px,32%) minmax(0,1fr); }
.home-people-list .card-body, .home-review-list .card-body { padding: 12px 15px; }
.home-people-list .card-body p { margin-bottom: 5px; }
.home-review-list .card-body p { margin-bottom: 5px; }
.home-people-list .card.horizontal .card-media img, .home-review-list .card.horizontal .card-media img { min-height: 0; }
.developer-inner img { width: min(41%,480px); height: auto; max-height: 245px; border-radius: 11px; }
.developer-inner .button { margin-top: 15px; }
.recent-annotated > div { grid-template-columns: max-content minmax(108px,max-content) minmax(0,1fr); }
.recent-annotated time { font-size: .91rem; color: var(--muted); }
.recent-annotated p { margin: 0; color: var(--muted); font-size: .9rem; }
.review-basis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.review-basis > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.review-basis dd { color: var(--muted); margin-top: 5px; }
.guide-levels { width: 100%; padding-top: 9px; border-top: 1px solid var(--line); }
.category-select { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.category-select select { min-width: 150px; }

@media (max-width: 900px) {
  .editorial-detail { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .editorial-toc { position: static; display: flex; flex-wrap: wrap; }
  .editorial-toc h2 { width: 100%; }
  .home-people, .home-reviews { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .editorial-split, .editorial-work .editorial-split, .editorial-panels, .review-basis { grid-template-columns: minmax(0,1fr); }
  .editorial-example-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .developer-inner img { width: 100%; max-height: none; }
  .recent-annotated > div { grid-template-columns: max-content 1fr; gap: 5px 11px; }
  .recent-annotated > div > div { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .editorial-facts .fact { grid-template-columns: minmax(0,1fr); }
  .home-people-list .card.horizontal, .home-review-list .card.horizontal { grid-template-columns: minmax(0,1fr); }
  .category-select { width: 100%; }
}
