* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font: var(--jtl-text-body,16px)/1.55 var(--jtl-font-ui,Inter,"PingFang SC","Microsoft YaHei",sans-serif);
  color: var(--jtl-ink,#252524); background: var(--jtl-paper,#f8f8f4); -webkit-font-smoothing: antialiased;
  scroll-padding-top: 88px;
}
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: var(--jtl-disabled-opacity,.4); cursor: default; }
:focus-visible { outline: 2px solid var(--jtl-focus,#9382ff); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 40; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 16px; background: white; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.frame { width: min(1420px,calc(100% - 2 * clamp(24px,7.35vw,166px))); margin: auto; }
.cover { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(335px,40vw,560px); margin: 0 clamp(12px,1.6vw,32px); overflow: hidden; border-radius: var(--jtl-radius-card,12px); background: #1f201e; color: white; }
.cover picture,.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; z-index: -1; }
.cover::before { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg,#0009,transparent 65%); }
.cover-copy { position: relative; z-index: 1; align-self: center; padding: 52px clamp(28px,6vw,115px); }
h1 { font-size: clamp(48px,6.5vw,100px); font-weight: 650; letter-spacing: -.07em; line-height: 1.08; }
.cover-copy p { max-width: 23em; margin: 18px 0 25px; color: #f4f4ef; font-size: clamp(15px,1.25vw,20px); }
.cover-caption { position: absolute; bottom: 14px; right: 20px; padding: 3px 8px; border-radius: 4px; background: #17171699; color: #fff; font-size: var(--jtl-text-caption,12px); }
.contents, .actions, .choices, .filter-bar, .screen-toolbar, .section-line, .dialog-rail, .moving-controls { display: flex; align-items: center; gap: 10px; }
.contents { flex-wrap: wrap; gap: 4px 25px; padding: 11px 0; border-bottom: 1px solid var(--jtl-line,#dcded7); }
.contents a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--jtl-text-label,14px); }
.contents a:hover, footer a:hover { color:var(--jtl-muted); }
.chapter { padding: clamp(54px,6.5vw,104px) 0; border-bottom: 1px solid var(--jtl-line,#dcded7); }
h2 { font-size: clamp(32px,3.75vw,65px); font-weight: 600; line-height: 1.13; letter-spacing: -.055em; }
h3 { font-size: clamp(21px,1.85vw,31px); line-height: 1.28; font-weight: 590; letter-spacing: -.045em; }
.intro, .sub, .foundation-panel p, .caption, .source-path, #screen-note { color: var(--jtl-muted,#646460); }
.intro { margin-top: 12px; max-width: 42em; }
.sub { margin: 7px 0 16px; font-size: var(--jtl-text-label,14px); }
.foundation-grid, .component-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2.4vw,42px); margin-top: 28px; }
.foundation-panel { display: flex; flex-direction: column; min-width: 0; }
.foundation-panel h3 { margin-bottom: 12px; }
.foundation-panel p { margin-top: 12px; font-size: var(--jtl-text-label,14px); }
.brand-plates, .swatches { display: grid; min-height: clamp(122px,12vw,192px); overflow: hidden; border: 1px solid var(--jtl-line,#dcded7); border-radius: var(--jtl-radius-card,12px); }
.brand-plates { grid-template-columns: repeat(2, 1fr); }
.brand-plates > div { display: grid; place-items: center; background: white; }
.brand-plates > [data-brand-plate=dark] { background: var(--jtl-ink,#252524); color: var(--jtl-on-dark,#eeeee9); }
.brand-plates .pub-brand { justify-self: center; text-decoration: none; }
.swatches { grid-template-columns: repeat(4,1fr); background: white; }
.swatches > div { display: flex; min-width: 0; flex-direction: column; padding-bottom: 9px; }
.swatches i { flex: 1; min-height: 52px; margin-bottom: 8px; }
.swatches b, .swatches code { margin-inline: 8px; font-size: 12px; overflow-wrap: anywhere; }
.swatches code { color: var(--jtl-muted,#646460); }
.swatch-paper { background: var(--jtl-paper,#f8f8f4); }.swatch-ink { background: var(--jtl-ink,#252524); }.swatch-muted { background: var(--jtl-muted,#646460); }.swatch-line { background: var(--jtl-line,#dcded7); }
.type-rules { display: grid; grid-template-columns: 1.3fr 1fr .7fr; align-items: end; gap: 20px; border-top: 1px solid var(--jtl-line,#dcded7); padding-top: 26px; margin-top: 34px; }
.type-rules span, .type-rules small { display: block; }
.type-rules small,.caption { color: var(--jtl-muted,#646460); font-size: var(--jtl-text-caption,12px); }
.type-rules small { margin-top: 10px; }
.type-display { font-size: var(--jtl-text-hero,clamp(38px,5.02vw,96px)); font-weight: 650; letter-spacing: -.07em; line-height: 1.05; }
.type-section { font-size: var(--jtl-text-section,clamp(44px,3.75vw,72px)); font-weight: 550; letter-spacing: -.055em; line-height: 1.1; }
.dimensions { margin-top: 24px; font-size: var(--jtl-text-label); }
.dimensions > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(12px,2.5vw,40px); border-top: 1px solid var(--jtl-line); padding: 10px 0; }
.dimensions dt { min-width: 3em; font-weight: 600; }
.dimensions dd { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gap-sample { display: inline-flex; gap: var(--sample); }
.gap-sample::before, .gap-sample::after { content: ''; width: 4px; height: 17px; border-radius: 1px; background: var(--jtl-muted); }
.radius-sample { display: inline-block; width: 39px; height: 28px; border-radius: var(--sample); border: 1px solid var(--jtl-muted); background: var(--jtl-white); }
@media(max-width:600px) { .dimensions dt { width: 100%; }.dimensions dd { font-size: 12px; } }
.choices { flex-wrap: wrap; gap: 3px; width: fit-content; max-width: 100%; padding: 3px; background: #eaeae5; border-radius: 24px; }
.demo-panel { min-width: 0; padding: clamp(18px,2.6vw,40px); background: #fff; border: 1px solid var(--jtl-line,#dcded7); border-radius: var(--jtl-radius-card,12px); }
#measure-form { margin-top: 19px; }
#measure-form label { display: block; margin-bottom: 5px; font-weight: 550; font-size: 14px; }
.measure { position: relative; max-width: 300px; }
.measure .jtl-field { width: 100%; padding-right: 45px; }
.measure span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; color: var(--jtl-muted,#646460); }
#measure-hint { display: block; color: var(--jtl-muted,#646460); margin: 5px 0 14px; }
#measure-result { min-height: 1.55em; margin-top: 8px; }
.motion-art { position: relative; width: 100%; height: clamp(125px,12vw,192px); margin: 16px 0; overflow: hidden; border-radius: 8px; background: #f5f3e7; }
.motion-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#enamel-layer { opacity: 0; transition: opacity var(--jtl-motion-control,180ms) ease; }
#enamel-layer.visible { opacity: 1; }.media-panel.instant #enamel-layer { transition: none; }
.moving-controls, .section-line, .screen-toolbar, .dialog-rail { justify-content: space-between; flex-wrap: wrap; }
.check { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 14px; }.check input { accent-color: var(--jtl-ink,#252524); width: 16px; height: 16px; }
.examples { margin-top: clamp(38px,4vw,72px); }
#result-count { font-size: 14px; color: var(--jtl-muted,#646460); }
.filter-bar { flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
#search-form { display: flex; align-items: center; gap: 5px; width: min(100%,330px); }
#search-form .jtl-field { min-width: 0; width: 100%; }
#search-form .jtl-button { flex-shrink: 0; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.4vw,25px); }
.card { display: block; min-width: 0; width: 100%; padding: 0; text-align: left; background: transparent; border: 0; border-radius: 10px; }
.card img { display: block; width: 100%; aspect-ratio: 1.27; object-fit: contain; background: #eaeae5; border-radius: var(--jtl-radius-card,12px); }
.card:hover .card-title { opacity:.78; }
.card-title, .card-meta { display: block; }.card-title { margin: 9px 0 2px; font-size: clamp(17px,1.5vw,23px); font-weight: 590; }.card-meta { color: var(--jtl-muted,#646460); font-size: 13px; }
.no-results { padding: 32px 0; }.no-results p { margin-bottom: 9px; }
.screen-toolbar { align-items: start; gap: 10px; margin: 26px 0 14px; }
.screen-figure { display: grid; align-items: center; grid-template-columns: minmax(0,2.35fr) minmax(200px,.8fr); gap: clamp(16px,3.5vw,65px); }
.screen-image { display: grid; place-items: center; aspect-ratio: 1.56; padding: 10px; background:#e6e6df; border-radius: var(--jtl-radius-card,12px); }
.screen-image a { display: grid; width: 100%; height: 100%; align-items: center; justify-items: center; min-width: 0; min-height: 0; }
#screen-preview { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.screen-image[data-device=mobile] a { width: auto; max-height: 100%; aspect-ratio:390/844; }
.screen-image[data-device=mobile] img { width: auto; max-width: 100%; }
.screen-figure h3 { margin: 9px 0; }.screen-figure .jtl-button { margin-top: 18px; }
.handoff { margin: 26px 0 20px; }.handoff div { display: grid; grid-template-columns: minmax(110px, .55fr) 2fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--jtl-line,#dcded7); }
.handoff dt { font-weight: 600; }.source-path { font-size: 13px; }.delivery .actions { margin-top: 18px; flex-wrap: wrap; }
footer { display: flex; justify-content: space-between; gap: 14px; padding: 14px clamp(24px,7.35vw,166px); background:var(--jtl-ink,#252524); color: white; }
footer a { display: inline-flex; align-items: center; gap: var(--jtl-space-1); min-height: 44px; text-decoration: none; font-size: 14px; }
dialog { width: min(620px,calc(100vw - 26px)); max-height: 92svh; padding: 15px 20px; border: 0; border-radius: var(--jtl-radius-card,12px); background: var(--jtl-paper,#f8f8f4); color: inherit; }
dialog::backdrop { background: #101110b8; } dialog h2 { font-size: 25px; }.round { width:44px;height:44px;padding:0;font-size:21px; }
#viewer-image { display: block; width: 100%; height: min(55svh,460px); margin: 12px 0; object-fit: contain; background: #eaeae5; border-radius: 8px; }
#viewer-note { font-size: 14px; margin-bottom: 12px; }#viewer-index { color:var(--jtl-muted,#646460);font-size:13px; }
@media(max-width:850px) { .frame { width:calc(100% - 40px); }.cover-copy { padding-inline: 30px; }.screen-figure { grid-template-columns:minmax(0,1.7fr) minmax(170px,.8fr); }.type-rules { gap:12px; } }
@media(max-width:700px) { .foundation-grid,.component-grid {grid-template-columns:1fr;gap:22px;}.cards {grid-template-columns:repeat(2,minmax(0,1fr));}.screen-figure {grid-template-columns:1fr;}.screen-image[data-device=mobile] {max-height:390px;height:62svh;aspect-ratio:auto;}.screen-image[data-device=mobile] a {height:100%;}.type-rules {grid-template-columns:1fr 1fr;}.type-rules > div:last-child {grid-column:1/-1;}.brand-plates,.swatches {min-height:130px;} }
@media(max-width:600px) { .frame {width:calc(100% - 32px);}.cover {min-height:460px;align-items:end;}.cover picture,.cover img {object-position: center 44%;}.cover::before {background:linear-gradient(0deg,#131311e8 4%,#13131144 56%,transparent 75%);}.cover-copy {align-self:end;padding:30px 22px 58px;}.cover-copy p {margin:10px 0 17px;font-size:14px;}.cover-caption {right:12px;bottom:9px;}.contents {justify-content:space-between;gap:0 8px;}.contents a {font-size:13px;}.chapter {padding-block:48px;}.type-display {font-size:38px;}.type-section {font-size:30px;}.handoff div {grid-template-columns:1fr;gap:4px;}.screen-toolbar .choices {border-radius:16px;}.motion-art {height:150px;} }
@media(prefers-reduced-motion:reduce) { #enamel-layer {transition:none;} }
@media print { .public-header,.skip,.cover,.contents,.chapter:not(.delivery),footer,dialog,.delivery .actions {display:none!important;}.frame {width:100%;}.delivery {border:0;padding:0;}.delivery h2 {font-size:26pt;}.source-path {margin-top:24pt;} }

@media(min-width:601px) { .cover picture {background:linear-gradient(#060606,#10100e 64%,#383637);} .cover img {object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent 18%,black 55%);} }

.imagery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  margin-top: 28px;
}
.imagery-grid figure { min-width: 0; }
.imagery-plate {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--jtl-radius-card);
  background: var(--jtl-white);
}
.imagery-plate img { display: block; width: 100%; height: 100%; object-fit: contain; }
.imagery-detail img {
  position: absolute;
  width: 375%;
  height: auto;
  max-width: none;
  left: -170%;
  top: -30%;
}
.imagery-drawing {
  border: 1px solid var(--jtl-line);
  padding: clamp(6px, .8vw, 14px);
}
.imagery-grid figcaption { padding-top: 16px; }
.imagery-grid h3 { font-size: clamp(20px, 1.6vw, 27px); margin: 4px 0 6px; }
.imagery-grid figcaption > p:last-child { font-size: 14px; color: var(--jtl-muted); }
.direction-study {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.5vw, 54px);
  margin-top: clamp(32px, 5vw, 72px);
  padding-top: var(--jtl-space-6);
  border-top: 1px solid var(--jtl-line);
}
.direction-study > img { display: block; width: 100%; height: auto; border-radius: var(--jtl-radius-card); }
.direction-study h3 { margin: 4px 0 12px; font-size: clamp(23px, 2.1vw, 32px); }
.direction-study figcaption > p:not(.caption) { margin: 8px 0; color: var(--jtl-muted); }
.direction-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: var(--jtl-space-4); }
.direction-links > a { min-height: var(--jtl-control-touch); }
@media (max-width: 720px) {
  .imagery-grid { grid-template-columns: 1fr; gap: 26px; }
  .imagery-grid figcaption { padding-top: 10px; }
  .direction-study { grid-template-columns: 1fr; gap: var(--jtl-space-4); }
}

#tool-example .jtl-source { display: flex; width: fit-content; min-height: 28px; margin-top: 3px; }
@media (pointer: coarse) { #tool-example .jtl-source { min-height: var(--jtl-control-touch); } }

/* The controls stay on paper while the specimen switches surface. */
.icon-atlas { margin-top: 22px; }
.atlas-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 32px; margin-bottom: 16px; }
.atlas-toolbar fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.atlas-toolbar legend { padding: 0; margin-bottom: 5px; font-size: 12px; color: var(--jtl-muted); }
.atlas-switch { display: inline-flex; align-items: center; padding: 2px; border-radius: var(--jtl-radius-pill); background: #e8e8e2; }
.atlas-switch label { position: relative; cursor: pointer; }
.atlas-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.atlas-switch span { display: grid; place-items: center; min-height: 36px; min-width: 50px; padding: 0 12px; border-radius: var(--jtl-radius-pill); font-size: 13px; font-variant-numeric: tabular-nums; }
.atlas-switch input:checked + span { background: var(--jtl-ink); color: white; }
.atlas-switch input:focus-visible + span { outline: 2px solid var(--jtl-workspace-focus); outline-offset: 2px; }
.atlas-paper { --atlas-rule: #dedfd8; --atlas-note: #565751; color: var(--jtl-ink); background: var(--jtl-white); border: 1px solid var(--atlas-rule); border-radius: var(--jtl-radius-card); padding: clamp(18px,3vw,46px); }
.icon-atlas:has([value="dark"]:checked) .atlas-paper { --atlas-rule: #4a4a46; --atlas-note: #cfcec7; background: var(--jtl-ink); color: var(--jtl-on-dark); }
.atlas-paper h3 { font-size: clamp(21px,1.7vw,28px); }
.atlas-paper ul { list-style: none; padding: 0; margin: 0; }
.atlas-paper .atlas-resources { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 16px 0 30px; padding-block: 10px 19px; border-bottom: 1px solid var(--atlas-rule); }
.atlas-resources a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 2px; font-size: 14px; font-weight: 550; border-radius: var(--jtl-radius-control); }
@media (hover: hover) { .atlas-resources a:hover { background: color-mix(in srgb,currentColor 7%,transparent); } }
.atlas-resources svg { height: var(--jtl-icon-resource); width: var(--jtl-icon-resource); }
.atlas-family { display: grid; grid-template-columns: minmax(76px,1fr) 8fr; gap: 16px; border-top: 1px solid var(--atlas-rule); margin-top: 16px; padding-top: 15px; }
.atlas-family h4 { font-size: 13px; font-weight: 550; color: var(--atlas-note); margin: 6px 0 0; }
.atlas-items { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); column-gap: 4px; row-gap: 14px; }
.atlas-items li { display: grid; grid-template-rows: 26px auto; gap: 4px; align-items: center; justify-items: center; text-align: center; }
.atlas-items li span { color: var(--atlas-note); font-size: 12px; }
.icon-atlas:has([value="16"]:checked) .atlas-items svg { width: var(--jtl-icon-small); height: var(--jtl-icon-small); --jtl-icon-stroke: 2.25; }
.icon-atlas:has([value="24"]:checked) .atlas-items svg { width: var(--jtl-icon-large); height: var(--jtl-icon-large); }
.atlas-notes { display: flex; justify-content: space-between; align-items: start; gap: 14px 36px; flex-wrap: wrap; margin-top: 12px; }
.atlas-notes p { max-width: 44em; padding-top: 8px; font-size: 13px; color: var(--jtl-muted); }
.atlas-notes > div { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.atlas-notes a { min-height: 36px; }
@media (max-width: 860px) {
  .atlas-family { grid-template-columns: 1fr; gap: 12px; }
  .atlas-items { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .atlas-paper .atlas-resources { grid-template-columns: repeat(auto-fit,minmax(81px,1fr)); row-gap: 8px; }
  .atlas-items { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .atlas-resources a { font-size: 13px; }
  .atlas-switch span, .atlas-notes a { min-height: 44px; }
}
@media (forced-colors: active) {
  .atlas-switch input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
