@import url("./use-controls.css");
:root {
  --ink: #28271f;
  --green: #24594f;
  --line: #d7d4c6;
  --cream: #fbfaf5;
  --yellow: #f0cd55;
  --rounded: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.75 "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
}
* { box-sizing: border-box }
body, figure, h1, h2, h3, ul { margin: 0 }
a { color: var(--green); text-underline-offset: .22em }
a:focus-visible, summary:focus-visible { outline: 3px solid #19655c; outline-offset: 3px }
.wrap { width: min(90%, 1080px); margin-inline: auto }
.use-mast { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; padding-block: 14px }
.use-brand { display: inline-flex; font: 700 26px/1 var(--rounded); text-decoration: none; letter-spacing: .035em }
.use-brand span { display: grid; text-align: center }
.use-brand small { font-size: 10px; line-height: 1.3 }
.hub-crumb { font-size: .84rem; color: #5b574e }
.hub-crumb::before { content: "＞"; margin-right: 6px }
.band { background: var(--yellow); border-block: 1px solid #d5b550 }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(88px,17%); gap: 3%; align-items: center; padding-block: clamp(20px, 3.6vw, 48px) }
.camel { width: 100%; max-width: 158px; height: auto; justify-self: end }
h1,h2,h3 { font-family: var(--rounded); line-height: 1.42 }
h1 { font-size: clamp(28px, 3.45vw, 48px); letter-spacing: .012em }
.who { display: block; color: var(--green); font-size: clamp(22px,2.2vw,31px); margin-bottom: .24em }
.hero p { margin: .9em 0 0; line-height: 1.75 }
h2 { font-size: clamp(23px, 2.35vw, 34px) }
h3 { font-size: 21px; margin: 1.3em 0 .55em }
.matrix { margin-top: clamp(20px,3vw,36px) }
.matrix ul,.topics,.community { padding: 0; list-style: none }
.columns,.matrix li a { display: grid; grid-template-columns: minmax(0,36%) minmax(0,1fr) 12px; gap: 14px; align-items: center }
.columns { border-bottom: 2px solid var(--green); font-size: .88rem; color: #504d43; padding: 0 8px 8px }
.columns strong { color: var(--green) }
.matrix li a { color: var(--ink); text-decoration: none; padding: 12px 8px; border-bottom: 1px solid var(--line) }
.matrix li a span { color: var(--green) }
.matrix a::after,.topics a::after,.more::after { content: ""; width: 7px; height: 7px; border: solid var(--green); border-width: 2px 2px 0 0; transform: rotate(45deg) }
.matrix a:hover span,.topics a:hover strong { text-decoration: underline }
.sample { font-size: .875rem; color: #625e52; margin: 14px 0 25px }
.story { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,31%); align-items: start; gap: clamp(28px, 6vw, 80px); padding-block: clamp(28px,4.8vw,64px); border-top: 1px solid var(--line) }
.problem { margin: 0 0 .55em; font-weight: 700; color: var(--green) }
.steps { list-style: decimal; margin: 1.35em 0; padding-left: 1.8em }
.steps li { margin-bottom: .9em; padding-left: .25em }
.steps li::marker { font-weight: bold; color: var(--green); font-variant-numeric: tabular-nums }
.features { font-size: .94rem; padding-block: .7em; border-block: 1px solid var(--line) }
.features b { color: var(--green); margin-right: .5em }
.screen { margin: 0; padding: 14px; border: 1px solid #d8ded2; border-radius: 12px; background: #ebefe5 }
.screen img { display: block; width: 100%; height: auto; border-radius: 5px; border: 1px solid #d9d8c9 }
figcaption { color: #37463d; font-size: .82rem; line-height: 1.6; margin-top: .7em }
.reference { border-top: 1px solid var(--line); padding: 26px 0 }
.reference h2 { font-size: 1.38rem }
.reference p { margin: .6em 0 }
.more { font-weight: 700 }
.more::after { display: inline-block; margin: 0 0 .1em .55em }
.directory section { padding-block: 25px; border-top: 1px solid var(--line) }
.jump { display: flex; gap: 10px; margin: 22px 0 }
.jump a { padding: 8px 15px; border: 1px solid var(--green); border-radius: 5px; font-weight: bold; text-decoration: none }
.jump a:hover { background: #e9eee7 }
.topics,.community { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px }
.topics a,.community a,.community .community-note { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 17px 21px; text-decoration: none; color: var(--ink) }
.topics a { display: grid; grid-template-columns: 1fr 10px; gap: 5px 10px }
.topics a::after { grid-area: 1/2; align-self: center }
.topics a strong,.community .who { font: 700 20px/1.5 var(--rounded); color: var(--green) }
.topics a span { grid-column: 1/-1 }
.community a:hover,.topics a:hover { border-color: var(--green) }
@media (min-width: 681px) {
  .use-others ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px }
}
footer { margin-top: 42px; padding: 25px 0; border-top: 1px solid var(--line); color: var(--green) }
footer .wrap,footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px }
footer nav { font-size: .85rem }
@media(max-width: 680px) {
  :root { font-size: 15px }
  .hero { grid-template-columns: minmax(0,1fr) 72px; gap: 10px }
  h1 { font-size: clamp(23px,5.8vw,32px) }
  .who { font-size: clamp(19px,4.9vw,24px) }
  .hero p { font-size: .95rem }
  .columns,.matrix li a { grid-template-columns: minmax(0,38%) minmax(0,1fr) 8px; gap: 8px; padding-inline: 2px }
  .story,.topics,.community { grid-template-columns: minmax(0,1fr) }
  .story { gap: 14px }
  .screen { width: min(100%,390px); justify-self: center }
  .topics a,.community a,.community .community-note { padding: 14px }
}

/* Use-case directory and the shop guides */
.guide-body .use-brand,.guide-body .use-crumb a,.guide-body footer a,.guide-body .more {
  display: inline-flex; align-items: center; min-height: 44px;
}
.use-brand small { font-size: 12px }
.guide-body .more::after { flex: none }
.guide-body a:focus-visible { outline-offset: 2px }
.guide-body .matrix a { min-height: 44px }
.guide-body .jump { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 580px; gap: 0; margin: 22px 0 0; border-bottom: 1px solid var(--line) }
.jump a { display: grid; min-height: 48px; place-content: center; border: none; border-bottom: 3px solid transparent; border-radius: 0; padding: 6px; font-size: 1.05rem }
@supports selector(:has(*)) {
  .directory:not(:has(#purpose:target)) .purpose-list,.directory:has(#purpose:target) .industry-list { display: none }
  .directory:not(:has(#purpose:target)) a[href="#industry"],.directory:has(#purpose:target) a[href="#purpose"] { border-bottom-color: var(--green); background: #e7ece3 }
}
.directory section { scroll-margin-top: 58px; border: none; padding-block: 20px }
.directory h2 { font-size: clamp(20px,2.2vw,29px) }
.topics { gap: 0 28px; margin: 12px 0 0; border-top: 1px solid var(--line) }
.topics li { min-width: 0; border-bottom: 1px solid var(--line) }
.topics a { position: relative; display: grid; grid-template-columns: clamp(125px,14vw,174px) minmax(0,1fr); align-items: center; gap: 16px; padding: 16px 15px 16px 0; border: none; border-radius: 0; background: transparent }
.topics a::after { position: absolute; right: 0; top: 50%; grid-area: auto }
.topics a:hover { background: #f0f1e8 }
.topics img { width: 100%; height: auto; display: block; border: 1px solid #d6daca; border-radius: 3px }
.topics strong { display: block }
.topics p { margin: .25em 0; font-size: .94rem; line-height: 1.55 }
.topics small { display: block; color: #42564c; font-size: .86rem; line-height: 1.6 }
.topics small b { margin-right: .45em }
.example-summary { margin: 12px 0 20px; padding-left: 13px; border-left: 3px solid #b7c7b6; font-size: .94rem }
.example-summary div { display: grid; grid-template-columns: 6em minmax(0,1fr); gap: .65em; margin: .22em 0 }
.example-summary dt { color: var(--green); font-weight: 700 }
.example-summary dd { margin: 0 }
.first-example { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 16px clamp(25px,4vw,60px); align-items: start; padding-block: clamp(24px,4vw,52px) }
.first-example h2 { font-size: clamp(23px,2.35vw,34px) }
.example-heading { grid-area: 1 / 1 }
.example-instructions { grid-area: 2 / 1 }
.example-instructions > :first-child { margin-top: 0 }
.phone-pair { grid-area: 1 / 2 / span 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-self: start }
.phone-pair figcaption { display: flex; flex-direction: column; margin: 0 0 7px; font-size: .875rem }
.phone-pair figcaption b { color: var(--green); font-size: 1.02rem }
.phone-frame { display: block; border: 4px solid #39473e; overflow: hidden; border-radius: 15px; background: #f4f5ee; padding: 6px 0; box-shadow: 0 2px 0 #c7ccbd }
.phone-frame img { width: 100%; height: auto; display: block }
.phone-pair .photo-note { grid-column: 1/-1; color: #576355; font-size: .85rem; line-height: 1.55; margin: 0 }

.guide-end { padding: 28px clamp(16px,4vw,44px); background: #e6eee3; margin-block: 32px 4px }
.guide-end h2 { font-size: clamp(21px,2.4vw,32px); margin-bottom: 16px }
.inline-actions,.guide-actions { display: flex; gap: 10px; flex-wrap: wrap }
.inline-actions { padding: 16px 0 26px; border-top: 1px solid var(--line) }
.register,.consult { min-height: 46px; display: inline-grid; place-items: center; padding: 8px 20px; border: 1px solid var(--green); border-radius: 4px; font-weight: 700; text-decoration: none; line-height: 1.4 }
.register { background: var(--green); color: #fff }
.consult { background: white }
.register:hover,.consult:hover { text-decoration: underline }
.related-guides { margin-top: 28px; border-top: 2px solid var(--green); padding-top: 23px }
.related-guides h2 { font-size: 24px }
.related-guides > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 7em 1fr; align-items: baseline }
.related-guides h3 { margin: 0; font-size: 17px }
.related-guides ul { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px }
.related-guides li a { display: flex; align-items: center; min-height: 44px }
@media(max-width:680px) {
  .guide-body .hero { padding-block: 15px }
  .guide-body .jump { margin-top: 12px }
  .topics a { grid-template-columns: clamp(125px,36vw,154px) minmax(0,1fr); gap: 10px; padding: 12px 12px 12px 0 }
  .topics a strong { font-size: 17px }
  .topics small { font-size: 14px }

  .first-example { grid-template-columns: minmax(0,1fr); gap: 15px }
  .example-heading,.example-instructions,.phone-pair,.first-example .screen { grid-area: auto }
  .example-summary { margin-bottom: 0 }
  .phone-pair { gap: 8px }
  .phone-pair figcaption { min-height: 3.5em }
  .related-guides > div { grid-template-columns: 1fr }
}
.phone-frame::before { content: ""; width: 16%; height: 3px; border-radius: 2px; background: #67756d; margin: 0 auto 4px; display: block }
.original-screen { grid-column: 1/-1; border-top: 1px solid var(--line) }
.original-screen summary { min-height: 44px; padding: 10px 0; color: var(--green); font-weight: 700; cursor: pointer }
.original-screen .screen { margin: 6px 0 0; width: min(100%,360px) }
.booking-video { grid-column: 1/-1; display: flex; align-items: start; flex-wrap: wrap; gap: 16px 28px; padding: 20px; background: #ecf0e8 }
.booking-video figcaption { flex: 1 1 180px; font-size: 1rem; margin: 0 }
.booking-video figcaption b,.booking-video figcaption span { display: block }
.booking-video figcaption b { font-size: 1.2rem; margin-bottom: 7px }
.booking-video video { display: block; width: min(100%,240px); height: auto; aspect-ratio: 39/70; background: #25372d }
@media(max-width:680px) {
  .topics p { margin: 2px 0 }
  .topics small b { display: inline }
  .booking-video video { width: min(100%,230px); margin-inline: auto }
}
.related-guides li a { min-width: 44px }
.guide-body .use-mast { padding-block: 8px }
.guide-body .sample { margin: 10px 0 12px }
.first-example { padding-top: clamp(16px,2vw,28px) }
@media(max-width:680px) {
  .guide-body:has(.first-example) .hero > div { display: contents }
  .guide-body:has(.first-example) .hero .camel { grid-area: 1/2 }
  .guide-body:has(.first-example) .hero p { grid-column: 1/-1; margin: 0 }
  .guide-body .matrix { margin-top: 14px }
  .guide-body .matrix li a { padding-block: 7px }
}

.topics p, .hero p, .example-summary { font-size: 15px }
.topics small, .features, .phone-pair figcaption { font-size: 14px }
.topics figcaption { margin-top: 4px; color: var(--green); font-weight: 700; font-size: 14px }
.topics .card-problem { font-weight: 700 }
@media print {
  .guide-body { padding: 0 }
  .directory .industry-list, .directory .purpose-list { display: block !important }
}

@media(min-width:681px) and (max-width:900px) {
  .topics { grid-template-columns: 1fr }
}

/* Lead with the scene, then the example and its features. */
.directory .topics a {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 16px 0;
}
.directory .topics a::after { content: none }
.directory .card-copy { position: relative; padding-right: 22px }
.directory .card-copy::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--green);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
.directory .card-photo { border: 0; aspect-ratio: 3 / 2 }
.directory .topics figcaption { margin: 0 0 4px }
.directory .topics figure img {
  aspect-ratio: 2.15;
  object-fit: cover;
  object-position: center var(--preview-focus, 50%);
}
@media (min-width: 681px) {
  .directory .topics a {
    grid-template-columns: 240px minmax(0, 1fr);
    align-content: center;
    gap: 16px;
  }
}
@media (min-width: 681px) and (max-width: 1159px) {
  .directory .topics { grid-template-columns: minmax(0, 1fr) }
}

/* Voiced scene videos (2026-11-27): the PTA movie block. Portrait 9:16; the full column on a phone (at most 360px), 360px beside the text on wide screens. */
.movie { grid-column: 1/-1; display: grid; gap: 12px; margin-top: 18px; padding: 16px; background: #ecf0e8; border-radius: 12px }
.movie-title { font-family: var(--rounded); font-size: 1.15rem; line-height: 1.4; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.movie-title::before { content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green) no-repeat 56% 50% / 12px 14px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M0 0v14l12-7z' fill='%23fff'/%3E%3C/svg%3E") }
.movie-title small { font-size: 15px; font-weight: 700; color: #576355; margin-left: -6px }
.movie-text p { margin: 6px 0 0; font-size: 15px; line-height: 1.75; color: #42564c }
.movie-frame { width: 100%; max-width: 360px; margin: 0 auto }
.movie-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 16px; border: 3px solid #39473e; background: #e6eee3 }
.movie-frame figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: #576355; text-align: center }
@media (min-width: 681px) {
  .movie { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: center; margin-top: 24px; padding: 26px 32px }
  .movie-title { font-size: 1.4rem }
  .movie-text p { font-size: 16px }
}
