:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #252624;
  --muted: #65645f;
  --accent: #625b4d;
  --line: #deddd6;
  --dark: #292b28;
}
.mobile-menu nav { max-height: min(70vh, 560px); overflow: auto; align-items: start; }

.editorial-hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); min-height: 430px; margin-top: 26px; background: #eeeee8; }
.editorial-hero-copy { align-self: center; padding: clamp(25px, 5vw, 68px); }
.editorial-hero h1, .module-intro h1 { margin: 12px 0 13px; font-size: clamp(33px, 4.8vw, 68px); line-height: 1.18; letter-spacing: -.05em; }
.editorial-deck, .module-heading > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.85; }
.editorial-deck { max-width: 42ch; }
.module-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.module-actions .button { white-space: normal; text-align: center; }
.module-picture { display: grid; min-height: 145px; overflow: hidden; background: #e9e9e4; }
.module-picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-picture { min-height: 100%; position: relative; }
.hero-picture img { position: absolute; inset: 0; }
.photo-placeholder { display: grid; place-items: center; min-height: 100%; padding: 26px; border: 1px dashed #c8c8c1; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.7; }
.module-intro.page-intro { background: #eeeee8; }
.section-jump { margin-top: clamp(14px, 2.4vw, 32px); }
.module-section { padding-block: clamp(40px, 5.6vw, 80px); scroll-margin-top: 20px; }
.module-section + .module-section { border-top: 1px solid var(--line); }
.module-heading { margin-bottom: 23px; }
.module-heading h2 { font-size: clamp(29px, 3.65vw, 52px); }
.module-heading > p:last-child:not(.eyebrow) { max-width: 58ch; margin-top: 12px; }
.module-section .prose h3 { margin-top: 21px; color: var(--ink); }
.aftercare-question { display: flex; gap: 12px; line-height: 1.6; }
.aftercare-number { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.aftercare-answer { padding: 0 24px 19px 0; }
.aftercare-faq .aftercare-answer p,
.aftercare-faq .aftercare-answer ul {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
}
.aftercare-faq .aftercare-answer p { padding: 0; }
.aftercare-answer ul { padding-inline-start: 1.35em; }
.aftercare-faq .aftercare-answer > :last-child { margin-bottom: 0; }
.lens-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.lens-brand-card { display: grid; min-height: 220px; grid-template-rows: 108px auto auto; gap: 9px; border: 1px solid var(--line); background: var(--white); }
.lens-brand-card:hover, .journal-card:hover, .need-card:hover, .module-topic:has(a):hover { border-color: #918d80; }
.lens-logo { display: grid; place-content: center; min-height: 105px; padding: 12px; background: #fdfdfa; border-bottom: 1px solid var(--line); text-align: center; }
.lens-logo img { width: min(137px, 100%); height: 53px; object-fit: contain; }
.lens-logo strong { color: var(--ink); font: 700 clamp(15px, 2vw, 24px)/1.15 Arial, sans-serif; letter-spacing: .07em; overflow-wrap: anywhere; }
.lens-logo > span { margin-top: 7px; color: var(--muted); font-size: 10px; }
.brand-profile .lens-logo { min-height: 130px; border: 1px solid var(--line); }
.lens-brand-navigation { margin-top: 18px; }
.lens-brand-details, .brand-profile ~ #prices { scroll-margin-top: 24px; }
.lens-brand-details .prose li + li { margin-top: 12px; }
.lens-brand-details .prose a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.lens-brand-name { display: grid; gap: 4px; padding: 1px 13px 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.lens-brand-name strong { color: var(--ink); font-size: 16px; }
.lens-card-action { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 650; }
.lens-brand-card .lens-card-action { align-self: end; margin: 0 13px 13px; }
.lens-price-strip { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 15px 28px; padding: 26px 0; border-block: 1px solid var(--line); scroll-margin-top: 20px; }
.lens-price-strip .module-heading { margin: 0; }
.lens-price-strip .module-heading h2 { font-size: clamp(25px, 3.2vw, 36px); }
.empty-note, .product-note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.need-card, .journal-card, .module-topic, .lens-product { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.need-card a {
  display: grid;
  grid-template-columns: clamp(76px, 9vw, 124px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
  padding: clamp(12px, 1.8vw, 22px);
}
.need-card .module-picture { position: relative; min-height: 0; aspect-ratio: 4 / 3; background: var(--paper); }
.need-card .module-picture img { position: absolute; inset: 0; object-fit: contain; }
.need-card .photo-placeholder { padding: 8px; }
.journal-card-copy { padding: 18px 20px 21px; }
.need-card-copy h3, .journal-card h3, .module-topic h3, .lens-product h3 { margin: 7px 0; font: 700 clamp(21px, 2.7vw, 31px)/1.28 var(--serif); }
.need-card-copy h3 { font-size: clamp(17px, 1.85vw, 25px); }
.need-card-copy > p:not(.eyebrow), .journal-card-copy > p:not(.journal-meta), .module-topic p:not(.eyebrow), .product-intro { color: var(--muted); font-size: 14px; line-height: 1.75; }
.need-card-copy .lens-card-action, .journal-card-copy .lens-card-action, .module-topic .lens-card-action { margin-top: 13px; }
.journal-grid, .module-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.module-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journal-card .module-picture { aspect-ratio: 1.65; position: relative; min-height: 135px; }
.journal-card .module-picture img { position: absolute; inset: 0; }
.journal-card-with-event .module-picture { aspect-ratio: 4 / 3; }
.journal-card .journal-wide-cover img { object-fit: contain; }
.journal-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--accent); font-size: 12px; }
.journal-categories, .pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; }
.journal-categories a, .pagination a, .pagination span { padding: 10px 13px; color: var(--muted); border: 1px solid var(--line); font-size: 14px; }
.journal-categories a[aria-current], .journal-categories a:hover { background: var(--dark); color: var(--white); }
.featured-journal { margin-bottom: 24px; }
.journal-feature a { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; }
.pagination { justify-content: center; margin-top: 22px; }
.module-topic a, .module-topic.service { display: block; height: 100%; padding: 20px; }
.module-callout { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; margin-block: 18px 60px; padding: clamp(22px, 5vw, 48px); background: #e9e9e2; }
.module-callout .module-heading, .module-callout .module-actions { margin: 0; }
.module-callout .module-heading h2 { font-size: clamp(28px, 3.9vw, 43px); }
.reading-wrap { padding-block: 40px; }
.reading-content { max-width: 710px; margin: auto; color: var(--ink); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.reading-content h2, .reading-content h3, .reading-content h4 { margin: 32px 0 10px; color: var(--ink); font-family: var(--serif); font-size: clamp(23px, 3.2vw, 36px); letter-spacing: -.035em; }
.reading-content h3, .reading-content .reading-subheading { font-size: clamp(21px, 2.8vw, 29px); }
.reading-content p { margin-bottom: 14px; }
.reading-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.reading-content img { max-height: 500px; object-fit: contain; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.table-scroll { max-width: 100%; overflow: auto; }
.reading-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reading-content th, .reading-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.reading-content th { background: #ecece6; }
.detail-links { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-links > a { padding: 9px 13px; border: 1px solid var(--line); background: var(--white); color: var(--accent); font-size: 14px; }
.detail-links > a:hover { border-color: var(--accent); }
.lens-products { display: grid; gap: 16px; }
.lens-product { padding: clamp(15px, 4vw, 38px); scroll-margin-top: 20px; }
.lens-product > .button, .lens-product .product-note { margin-top: 13px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-block: 15px; font-size: 14px; }
.product-specs dt { color: var(--muted); font-size: 12px; }
.product-specs dd { margin: 2px 0 0; color: var(--ink); }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 15px; }
.product-gallery figure { min-width: 0; border: 1px solid var(--line); }
.gallery-opening { display: flex; flex-direction: column; align-items: center; background: #f1f1ed; }
.gallery-opening img { height: clamp(125px, 18vw, 230px); object-fit: contain; }
.gallery-opening span { padding: 7px; font-size: 13px; }
.product-gallery figcaption { padding: 10px; overflow-wrap: anywhere; }
.product-gallery figcaption p { color: var(--muted); font-size: 13px; }
.media-dialog { position: fixed; width: min(96vw, 900px); max-height: 92dvh; padding: 10px 16px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: center; }
.media-dialog::backdrop, .asset-picker::backdrop { background: #191a18bd; }
.media-toolbar { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; }
.media-toolbar button, .asset-picker-head button { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); font-size: 20px; }
.media-stage { overflow: auto; }
.media-stage img { width: 100%; max-height: 69dvh; object-fit: contain; touch-action: pan-y pinch-zoom; }
.media-dialog > p { margin: 7px 0; }
.media-dialog > a { padding-block: 7px; display: inline-block; color: var(--accent); }
.contact-subject { margin-bottom: 12px; padding-block: 9px; overflow-wrap: anywhere; }
.contact-subject strong { margin-left: 7px; }
.text-button { border: 0; background: none; padding: 4px; color: var(--accent); text-decoration: underline; }
.information-panel > .product-note { margin-top: 10px; }

.admin-shell { margin-block: 35px 60px; }
.admin-intro h1 { margin: 8px 0; font-size: clamp(32px, 5vw, 49px); }
.admin-intro p:last-child, #admin-status { color: var(--muted); line-height: 1.7; }
#admin-status { margin-block: 13px; }
#admin-status[data-error=true] { color: #a2312c; }
.admin-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
#admin-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
#admin-navigation button, .admin-records button, .admin-inline button, .admin-markdown-tools button, [data-add-image] { padding: 7px 9px; min-height: 36px; border: 1px solid var(--line); background: var(--white); text-align: left; }
#admin-navigation button[aria-pressed=true], .admin-records button[aria-pressed=true] { border-color: var(--accent); background: #e9e9e2; }
#admin-workspace { min-width: 0; border: 1px solid var(--line); padding: clamp(12px, 2vw, 22px); background: var(--white); }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.admin-section-head h2 { font-size: 27px; }
.admin-records { display: flex; gap: 6px; flex-wrap: wrap; max-height: 210px; overflow: auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-records small { margin-left: 4px; color: var(--muted); }
.admin-records img { width: 60px; height: 42px; object-fit: contain; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; }
.admin-field { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--muted); font-size: 14px; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-check { display: flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink); font-size: 14px; }
.admin-field input, .admin-field select, .admin-field textarea, .admin-upload input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.admin-field textarea { resize: vertical; }
.admin-media-preview img, .admin-asset-hero img { width: auto; height: auto; max-height: 160px; object-fit: contain; }
.admin-inline, .admin-markdown-tools, .admin-editor-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.editor-image { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 12px; margin: 8px 0; padding: 9px; border: 1px solid var(--line); }
.editor-image-visual img { height: 125px; margin-bottom: 5px; object-fit: contain; }
.editor-image-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.asset-picker { width: min(94vw, 760px); max-height: 88dvh; padding: 12px; border: 1px solid var(--line); background: var(--white); }
.asset-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 10px; }
.asset-picker-head h2 { font-size: 24px; }
.admin-upload { display: grid; gap: 8px; padding: 10px; background: #eeeee9; }
.admin-upload label { display: grid; gap: 6px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; padding-top: 9px; }
.asset-grid button { min-width: 0; border: 1px solid var(--line); background: var(--white); padding: 7px; overflow-wrap: anywhere; }
.asset-grid img { height: 95px; object-fit: contain; }

@media (max-width: 900px) {
  .editorial-hero { min-height: 360px; }
  .module-callout { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .editorial-hero { grid-template-columns: 1fr; margin-top: 14px; min-height: 0; }
  .editorial-hero h1, .module-intro h1 { font-size: clamp(30px, 7.8vw, 46px); }
  .editorial-hero .hero-picture { aspect-ratio: 1.50; }
  .lens-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lens-brand-card { min-height: 171px; grid-template-rows: 82px auto auto; }
  .lens-brand-card .lens-logo { min-height: 82px; }
  .lens-price-strip, .needs-grid, .journal-grid, .module-topic-grid, .journal-feature a { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reading-wrap { padding-block: 22px; }
  .admin-grid { grid-template-columns: 1fr; }
  #admin-navigation { flex-direction: row; flex-wrap: wrap; }
  .admin-fields, .editor-image { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 370px) {
  .product-gallery { grid-template-columns: 1fr; }
}

/* Eyewear stories */
.story-hero, .story-detail-hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: stretch; margin-top: 26px; background: #eeeee8; }
.story-hero-copy, .story-detail-copy { align-self: center; padding: clamp(24px, 5vw, 68px); }
.story-hero h1, .story-detail h1 { margin: 12px 0 15px; font-size: clamp(35px, 5.3vw, 73px); line-height: 1.14; letter-spacing: -.055em; overflow-wrap: anywhere; }
.story-hero-copy > p:not(.eyebrow), .story-detail-deck, .story-feature-copy > p:not(.eyebrow), .story-card-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.story-hero-copy > p + p { margin-top: 10px; }
.story-hero .text-link { margin-top: 12px; }
.story-hero-carousel .hero-carousel-images,
.story-hero-carousel .hero-carousel-controls button:hover { background: #e5e5df; }
.story-detail-photo, .story-feature-image, .story-card-image, .story-photo-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebebe5;
}
.story-detail-photo { align-self: center; }
:is(.story-detail-photo, .story-feature-image, .story-card-image, .story-photo-link) img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}
.story-empty { padding: 17px 0; border-block: 1px solid var(--line); }
.story-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(14px, 4vw, 52px); padding-bottom: 35px; }
.story-feature + .story-feature { padding-top: 24px; border-top: 1px solid var(--line); }
.story-feature:last-child { padding-bottom: 0; }
.story-feature:nth-of-type(even) .story-feature-image { grid-column: 2; grid-row: 1; }
.story-feature h3 { margin: 12px 0 9px; font: 700 clamp(27px, 4vw, 50px)/1.22 var(--serif); }
.story-kit { margin: 6px 0 10px; font-weight: 650; overflow-wrap: anywhere; }
.story-feature .button { margin-top: 16px; }
.story-filters { padding-block: 5px; border-block: 1px solid var(--line); }
.story-filters > summary { display: none; }
.story-filter-row { display: grid; grid-template-columns: 6em minmax(0, 1fr); align-items: baseline; gap: 10px; font-size: 14px; }
.story-filter-label { color: var(--ink); font-weight: 650; }
.story-filter-options { display: flex; flex-wrap: wrap; column-gap: clamp(12px, 2.5vw, 34px); }
.story-filter-options a { padding-block: 7px; color: var(--muted); white-space: nowrap; }
.story-filter-options a[aria-current] { color: var(--ink); font-weight: 650; }
.story-filter-options a[aria-current], .story-filter-options a:hover, .story-filter-meta a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.story-filter-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-block: 10px 16px; color: var(--muted); font-size: 13px; }
.story-filter-meta a { display: inline-block; padding-block: 5px; color: var(--ink); }
.story-filter-context { margin-bottom: 13px; color: var(--muted); font-size: 14px; }
.story-grid, .story-photo-grid { display: grid; gap: clamp(18px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line); }
.story-card-copy { display: flex; flex: 1; flex-direction: column; padding: 16px 0 5px; }
.story-card-copy .eyebrow { flex-wrap: wrap; gap: 6px 9px; }
.story-card-copy h3 { margin-top: 8px; font: 700 clamp(21px, 2.15vw, 29px)/1.3 var(--serif); overflow-wrap: anywhere; }
.story-card-copy h3 a:hover, .story-facts dd a:hover { color: var(--accent); text-decoration: underline; }
.story-card-copy .text-link { margin-top: auto; }
.story-detail-copy .story-detail-deck { margin-bottom: 21px; }
.story-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 15px; margin-bottom: 0; }
.story-facts div { border-top: 1px solid var(--line); padding: 8px 0 5px; }
.story-facts dt { color: var(--muted); font-size: 12px; }
.story-facts dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.story-detail-body { padding-block: clamp(38px, 6vw, 76px); }
.story-narrative { display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,1.38fr); align-items: start; gap: 18px 35px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.story-narrative .reading-content, .story-notes .reading-content { width: 100%; margin: 0; }
.story-narrative h2 { font-size: clamp(28px, 3.65vw, 48px); }
.story-plan h3 { margin-top: 0; }
.story-plan h3:not(:first-child) { margin-top: 25px; }
.story-photo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.story-photo-grid > figure:only-child { width: min(100%, 760px); }
.story-photo-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.story-notes { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 34px; padding: clamp(23px, 5vw, 57px); margin-block: 15px 30px; background: #e9e9e2; }
.story-notes .module-heading { margin-bottom: 0; }
.story-related > .button, .story-related .story-similar-title { margin-top: 18px; }
.story-similar-title { margin-bottom: 13px; font: 700 24px/1.35 var(--serif); }
.story-related .story-grid { margin-top: 11px; }
.story-preview-banner, .admin-case-note { margin-top: 18px; padding: 13px 15px; border: 1px solid #c9c0a6; background: #f2efe6; color: var(--muted); line-height: 1.65; }
.story-preview-banner strong { color: var(--ink); }
.story-preview-banner p, .admin-case-note p + p { margin-top: 6px; }
.admin-case-note p { font-size: 14px; }
.admin-case-tags { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); }
.admin-case-tags > div { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.admin-case-tags input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.story-enter { animation: story-enter .45s ease-out both; }
@keyframes story-enter { from { opacity: .62; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .story-enter { animation: none; } }
@media (max-width: 960px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .story-hero, .story-detail-hero, .story-feature, .story-narrative, .story-notes { grid-template-columns: 1fr; }
  .story-hero, .story-detail-hero { margin-top: 14px; }
  .story-hero h1, .story-detail h1 { font-size: clamp(34px, 8.4vw, 46px); }
  .story-feature:nth-of-type(even) .story-feature-image { grid-column: auto; grid-row: auto; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .story-photo-grid { grid-template-columns: minmax(0, 1fr); }
  .story-filters { padding-block: 0; }
  .story-filters > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
  .story-filters > summary::-webkit-details-marker { display: none; }
  .story-filters > summary [data-case-filter-count] { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
  .story-filter-chevron { width: 7px; height: 7px; margin-inline: 2px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
  .story-filters[open] .story-filter-chevron { transform: rotate(225deg); }
  .story-filters > div { padding-block: 1px 7px; }
  .story-filter-row { grid-template-columns: 4.5em minmax(0, 1fr); font-size: 13px; }
  .story-filter-options a { padding-block: 9px; }
  .story-narrative { padding-block: 19px; }
}

/* Store directory */
.store-list { display: grid; gap: clamp(24px, 6vw, 70px); }
.store-row, .store-detail-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); background: #eeeee8; }
.store-row-text { grid-template-columns: minmax(0, 1fr); }
.store-row:nth-child(even) .store-row-photo { grid-column: 2; grid-row: 1; }
.store-row-photo { display: block; position: relative; align-self: center; aspect-ratio: 1.5; background: #e5e5de; overflow: hidden; }
.store-row-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.store-row-copy, .store-detail-copy { align-self: center; min-width: 0; padding: clamp(23px, 4.4vw, 58px); }
.store-row-copy h2 { margin: 13px 0 9px; font-size: clamp(26px, 3.25vw, 48px); line-height: 1.24; overflow-wrap: anywhere; }
.store-row-copy h2 a:hover, .footer-stores a:hover { text-decoration: underline; text-underline-offset: 4px; }
.store-position { margin-bottom: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.store-row address, .store-address-panel address, .store-compact-grid address, .footer-stores address { font-style: normal; line-height: 1.75; overflow-wrap: anywhere; }
.store-row address { font-size: 15px; }
.store-hours, .store-map-note { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.store-phone-link { text-decoration: underline; text-underline-offset: 3px; }
.store-contact-actions { display: flex; flex-wrap: wrap; gap: 7px 10px; margin-top: 13px; }
.store-contact-actions .button { min-height: 44px; gap: 8px; padding-inline: 12px; }
.store-maps { margin-top: 12px; }
.store-map-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.store-map-button { display: grid; align-content: center; gap: 4px; min-height: 48px; padding: 7px 5px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: center; font-size: 13px; line-height: 1.35; }
.store-map-button:hover { border-color: var(--accent); }
.store-map-button small { color: var(--muted); font-size: 11px; }
.store-map-note { max-width: 62ch; }
.store-detail-hero { margin-top: 26px; }
.store-detail-hero h1 { margin: 11px 0 14px; font-size: clamp(33px, 4.3vw, 60px); line-height: 1.2; letter-spacing: -.06em; overflow-wrap: anywhere; }
.store-exact-name { margin-bottom: 7px; color: var(--ink); }
.store-summary, .store-route-copy p { max-width: 66ch; color: var(--muted); font-size: 15px; line-height: 1.8; }
.store-row-text .store-row-copy { width: 100%; max-width: 860px; }
.store-summary-features, .store-route-copy { margin-block: 13px; }
.store-summary-features h3, .store-route-copy h3 { margin: 0 0 7px; color: var(--ink); font: 700 19px/1.4 var(--serif); }
.store-highlights { margin: 0; padding-inline-start: 1.2em; color: var(--ink); line-height: 1.75; }
.store-summary-features .store-highlights { display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); max-width: 670px; font-size: 14px; }
.store-address-panel .store-route-copy { margin-top: 19px; }
.store-route-copy p + p { margin-top: 5px; }
.store-route-note { font-size: 14px; }
.store-map-web { margin-top: 10px; font-size: 14px; }
.store-map-web summary { width: fit-content; padding: 8px 0; color: var(--accent); cursor: pointer; }
.store-map-web .detail-links { margin-top: 4px; }
.store-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.store-photo-grid figure { min-width: 0; }
.store-photo-grid figure > a { display: block; aspect-ratio: 1.4; background: #e5e5de; overflow: hidden; }
.store-photo-grid img { height: 100%; object-fit: cover; }
.store-photo-grid figcaption { padding-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.store-service-list ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; padding: 0; list-style: none; }
.store-service-list li { padding: 6px 9px; border: 1px solid var(--line); background: var(--white); font-size: 14px; }
.store-service-list h3 { margin: 16px 0 9px; font: 700 23px/1.3 var(--serif); }
.store-address-panel address { font-size: clamp(16px, 2.25vw, 22px); }
.store-map-preview { position: relative; min-height: 240px; margin-top: 20px; border: 1px solid var(--line); background: #e5e5de; }
.store-map-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.store-map-preview > a { position: absolute; inset: 0; justify-items: end; align-content: end; background: transparent; border: 0; padding: 9px; }
.store-map-preview > a span { padding: 9px; border: 1px solid var(--line); background: var(--white); }
.store-compact-grid, .footer-stores ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.store-compact-grid article { display: flex; min-width: 0; }
.store-compact-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.store-compact-photo { flex: none; width: 104px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.store-compact-photo img { height: 100%; object-fit: cover; }
.store-compact-link > div:last-child { min-width: 0; }
.store-compact-link:hover, .store-compact-link:focus-visible { border-color: var(--accent); }
.store-compact-link:hover .text-link, .store-compact-link:focus-visible .text-link { color: var(--accent); }
.store-compact-link .text-link { padding-block: 8px 0; }
.store-compact-grid h3 { font: 700 19px/1.4 var(--serif); }
.store-compact-grid p, .store-compact-grid address { margin-top: 6px; color: var(--muted); font-size: 14px; }
.footer-stores { padding: 13px 0 26px; border-top: 1px solid var(--line); }
.footer-stores > h2 { font: 700 17px/1.4 var(--serif); letter-spacing: 0; }
.footer-stores ul { margin: 10px 0 0; padding: 0; list-style: none; }
.footer-stores li { min-width: 0; line-height: 1.55; }
.footer-stores li > a { font-size: 13px; font-weight: 650; }
.footer-stores address { margin-top: 3px; color: var(--muted); font-size: 12px; }
.contact-stores h3 { margin-bottom: 10px; font: 700 22px/1.4 var(--serif); }
.contact-store-choices { display: grid; gap: 7px; margin-bottom: 14px; }
.contact-store-choices a { display: grid; gap: 5px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); line-height: 1.5; }
.contact-store-choices a[aria-current] { border-color: var(--accent); background: #eeeee8; }
.contact-store-choices a > span { color: var(--muted); font-size: 13px; }
@media (max-width: 960px) {
  .store-compact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 690px) {
  .store-row, .store-detail-hero, .footer-stores ul { grid-template-columns: 1fr; }
  .store-compact-photo { width: 88px; }
  .store-row:nth-child(even) .store-row-photo { grid-column: auto; grid-row: auto; }
  .store-row-photo { min-height: 0; aspect-ratio: 1.65; }
  .store-detail-hero { margin-top: 14px; }
  .store-detail-hero .store-row-photo { grid-row: 1; }
  .store-row-copy, .store-detail-copy { padding: 19px; }
  .store-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-stores ul { row-gap: 11px; }
}

.frame-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}
.frame-profile-hero:has(.frame-profile-visual) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.frame-profile-head { min-width: 0; }
.frame-profile-head h1 { font-size: clamp(34px, 5.3vw, 75px); overflow-wrap: anywhere; }
.frame-profile-alias { margin-top: 6px; color: var(--muted); font-size: 18px; }
.frame-profile-position { margin-top: 14px; font-size: 17px; line-height: 1.7; }
.frame-profile-hero .brand-logo { border: 1px solid var(--line); min-height: 115px; }
.frame-profile-hero .brand-logo img { max-width: 205px; height: 70px; }
.frame-profile-visual { display: grid; gap: 10px; }
.frame-profile-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 19px 0 0; }
.frame-profile-facts dt { color: var(--muted); font-size: 13px; }
.frame-profile-facts dd { margin: 5px 0 0; font-size: 16px; font-weight: 650; }
.frame-profile-intro { max-width: 740px; }
.frame-profile-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.frame-craft-cards, .frame-expertise-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); }
.frame-visit-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); }
.frame-profile-cards article { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.frame-profile-card-copy { padding: clamp(16px, 2.4vw, 29px); }
.frame-profile-card-copy h3 { font: 700 clamp(20px, 2.3vw, 28px)/1.3 var(--serif); overflow-wrap: anywhere; }
.frame-profile-card-copy p, .frame-profile-card-copy address { max-width: 72ch; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.frame-profile-card-copy address { font-style: normal; }
.frame-profile-card-copy .text-link { margin-top: 11px; color: var(--accent); }
.frame-profile-photo img { height: auto; width: 100%; }
.frame-profile-cards .frame-profile-photo img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--white); }
.frame-profile-photo figcaption { padding: 7px 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.frame-collection-photos a { display: block; cursor: zoom-in; }
.frame-collection-photos a + a { border-top: 1px solid var(--line); }
.frame-collection-photos .frame-profile-photo { background: white; }
.frame-collection-photos .frame-profile-photo img { background: white; }
.frame-collection-photos figcaption { text-align: center; }
.frame-craft-cards:has(.frame-craft-gallery) { grid-template-columns: minmax(0, 1fr); }
.frame-craft-features { margin: 13px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 15px; line-height: 1.75; }
.frame-craft-features li + li { margin-top: 4px; }
.frame-craft-features strong { color: var(--ink); }
.frame-craft-gallery { padding: 0 clamp(16px, 2.4vw, 29px) clamp(16px, 2.4vw, 29px); }
.frame-craft-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.frame-craft-gallery-grid .frame-profile-photo img { aspect-ratio: 5 / 6; }
.frame-craft-gallery-grid:has(> :only-child) { grid-template-columns: minmax(0, 760px); }
.frame-craft-gallery-grid:has(> :only-child) img { aspect-ratio: auto; }
.frame-craft-gallery-credit { margin-top: 8px; color: var(--muted); font-size: 13px; }
.frame-craft-gallery-credit a { min-height: 32px; }
@media (max-width: 760px) {
  .frame-craft-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.frame-collection-facts { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 9px; }
.frame-collection-facts div { margin-bottom: 8px; }
.frame-collection-facts dt { color: var(--ink); font-size: 13px; font-weight: 650; }
.frame-collection-facts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.frame-series-cards article { display: flex; flex-direction: column; }
.frame-series-cards .frame-profile-card-copy { display: flex; flex: 1; flex-direction: column; align-items: start; }
.frame-series-cards .frame-series-chinese { margin-top: 5px; color: var(--ink); }
.frame-series-cards .frame-series-action { margin-top: auto; white-space: normal; }
.frame-series-cards .frame-profile-card-copy > p:last-of-type { margin-bottom: 20px; }
.frame-series-photo-slot {
  display: grid; place-items: center; min-width: 0; aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line); background: #efede7; color: var(--muted);
  font-size: 14px; text-align: center;
}
.frame-series-cards .frame-series-photo-slot, .frame-series-cards .frame-profile-photo img { aspect-ratio: 66 / 41; }
.frame-series-hero:has(.frame-series-head) {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(20px, 4vw, 56px);
}
.frame-series-hero h1 { overflow-wrap: anywhere; }
.frame-series-head > p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.frame-series-hero .frame-profile-photo figcaption { padding-inline: 0; }
.frame-series-detail { display: grid; gap: clamp(30px, 4vw, 55px); }
.frame-series-detail-part { padding-top: clamp(20px, 3vw, 30px); border-top: 1px solid var(--line); }
.frame-series-detail-part h2 { margin-bottom: 13px; font-size: clamp(24px, 3vw, 38px); }
.frame-series-detail-part .prose { max-width: 68ch; }
.frame-series-models { margin-bottom: 7px; }
.frame-model-gallery > a { display: block; min-width: 0; border: 1px solid var(--line); background: var(--white); cursor: zoom-in; }
.frame-model-gallery > a:hover { border-color: var(--accent); }
.frame-model-gallery .frame-profile-photo img { aspect-ratio: 1; }
.frame-model-gallery figcaption { padding: 9px 10px; text-align: center; color: var(--ink); }
.frame-reading { margin-top: 22px; }
.frame-reading h3 { margin-bottom: 9px; font: 700 21px/1.4 var(--serif); }
.frame-faq { max-width: 820px; }
.frame-visit-cards h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.frame-visit-cards address { overflow-wrap: anywhere; }
.frame-update { padding-block: 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .frame-profile-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .frame-profile-hero, .frame-profile-hero:has(.frame-profile-visual), .frame-profile-cards { grid-template-columns: minmax(0, 1fr); }
  .frame-series-hero:has(.frame-series-head) { grid-template-columns: minmax(0, 1fr); }
  .frame-profile-hero .brand-logo { min-height: 78px; }
  .frame-profile-hero .brand-logo img { height: 48px; max-width: 178px; }
  .frame-profile-head .brand-back { margin-bottom: 10px; }
  .frame-profile-alias { font-size: 16px; }
  .frame-profile-position { font-size: 16px; }
}

/* Search administration */
#search-admin section { padding-block: 24px; }
#search-admin form { display: grid; gap: 10px; justify-items: start; }
#search-admin form .admin-field { width: min(100%, 620px); }
#search-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
#search-overview dt { color: var(--muted); font-size: 14px; }
#search-overview dd { margin: 3px 0 0; }
.search-history-wrap { overflow: auto; max-height: 480px; margin-block: 12px; }
#search-admin table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
#search-admin th, #search-admin td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
#search-admin td:first-child { min-width: 200px; overflow-wrap: anywhere; }
#search-alt { overflow-wrap: anywhere; }
