/* Compass theme, based on Astryx's semantic tokens and 4px spacing scale.
   Reference and scope: docs/design-system.md. Loaded after the page layouts. */
:root {
  --color-background-body: #fcf8f4;
  --color-background-surface: #ffffff;
  --color-background-card: #ffffff;
  --color-background-page-hero: #fff6df;
  --color-background-page-hero-stripe: #fff1d2;
  --color-text-primary: #312923;
  --color-text-secondary: #65594f;
  --color-border: #dccdc0;
  --color-border-emphasized: #aaa79d;
  --color-accent: #a54112;
  --color-on-accent: #ffffff;
  --color-accent-muted: #ffead9;
  --color-text-accent: #8c350e;
  --color-focus: #a54112;
  --spacing-1: .25rem;
  --spacing-2: .5rem;
  --spacing-3: .75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --radius-inner: .375rem;
  --radius-element: .625rem;
  --radius-container: .75rem;
  --radius-page: 1.75rem;
  --radius-full: 9999px;
  --shadow-low: 0 2px 8px rgb(35 31 25 / 6%);
  --font-family-body: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-size-small: .875rem;
  --font-size-body: 1rem;
  --control-height: 3rem;
  --duration-fast: 160ms;
  /* Existing layouts use these aliases; the theme is their single source. */
  --orange: #f4a361;
  --orange-soft: var(--color-accent-muted);
  --orange-deep: var(--color-text-accent);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --paper: var(--color-background-body);
  --cream: #fff9f3;
  --butter: #fff1e4;
  --round: var(--font-family-body);
  font-family: var(--font-family-body);
  color: var(--color-text-primary);
  line-height: 1.85;
}
html { scroll-padding-top: 1.5rem; }
body { font-size: var(--font-size-body); background: var(--color-background-body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
img { vertical-align: middle; }
.wrap { width: min(1200px, calc(100% - 64px)); }
h1, h2, h3 { letter-spacing: .01em; line-height: 1.5; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.heading { margin-bottom: var(--spacing-10); }
.heading h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.heading p, .page-hero .wrap > p:not(.label) { font-size: 1rem; }
.label { font-size: .75rem; letter-spacing: .12em; font-weight: 700; color: var(--color-text-secondary); }
.label::before { display: none; }
.wave, .deco { display: none; }

/* Navigation: stable desktop rhythm, a real disclosure on small screens. */
.header { border-block-start: 3px solid var(--color-accent); padding-block: var(--spacing-5); gap: var(--spacing-5) var(--spacing-8); border-bottom: 1px solid var(--line); }
.brand img { width: 184px; }
.nav { flex: 1 1 100%; gap: var(--spacing-1); justify-content: space-between; font-size: .875rem; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-height); padding: .625rem .75rem; border-radius: var(--radius-element); line-height: 1.5; border-bottom: 0; }
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--color-text-accent); background: var(--butter); box-shadow: none; border: 0; }
.nav .nav-contact { background: var(--color-accent); color: var(--color-on-accent); border-radius: var(--radius-element); padding: .625rem 1rem; }
.nav-toggle { display: none; align-items: center; gap: var(--spacing-2); border: 1px solid var(--line); border-radius: var(--radius-element); min-height: var(--control-height); padding: .5rem 1rem; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[hidden] { display: none; }

/* Controls share shape, size and state treatment. */
.button, .nav-contact { min-height: var(--control-height); border: 1px solid transparent; border-radius: var(--radius-element); box-shadow: none; font-size: 1rem; font-weight: 600; padding: .75rem 1.5rem; transition: background-color var(--duration-fast), border-color var(--duration-fast); }
.button:not(.button-light) { background: var(--color-accent); color: var(--color-on-accent); }
.button:hover, .button-light:hover { transform: none; box-shadow: none; background: #89340d; }
.button-light { background: #fff; border-color: var(--color-border-emphasized); color: var(--ink); }
.button-light:hover { background: var(--cream); border-color: var(--ink); }
.text-link { min-height: 44px; font-size: .9375rem; line-height: 1.6; }
.tag, .status, .opening-status, .cat-tag, .news-meta span { border-radius: var(--radius-inner); font-size: .8125rem; }
.cat-nav { gap: var(--spacing-2); }
.cat-nav a { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-element); padding: .5rem 1rem; font-size: .875rem; }
.cat-nav a small { font-size: .75rem; border-radius: var(--radius-inner); }
.toc a, .support-anchor-nav a { border-radius: var(--radius-element); min-height: 44px; font-size: .875rem; }

/* Calm surfaces and a clear type hierarchy retain Compass's warm accent. */
.hero { background: #faf9f6; border-bottom: 1px solid var(--line); }
.hero-inner { grid-template-columns: 1.05fr 1fr; gap: var(--spacing-12); padding-block: 4rem; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.55; letter-spacing: -.02em; }
.hero h1 span { background: none; color: var(--color-text-accent); }
.hero-copy .lead { font-size: .875rem; font-weight: 600; }
.hero-copy > p:not(.lead) { font-size: 1rem; line-height: 1.9; }
.hero-photos { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-3); }
.hero-photos .photo-main { width: 100%; grid-column: 1 / -1; aspect-ratio: 16/7; border-radius: var(--radius-container); box-shadow: none; object-fit: cover; }
.hero-photos .photo-sub { position: static; width: 100%; grid-column: 2; aspect-ratio: 16/10; border: 0; border-radius: var(--radius-container); box-shadow: none; object-fit: cover; }
.hero-note { position: static; grid-column: 1; grid-row: 2; align-self: end; padding: 0; background: none; border-radius: 0; font-size: .75rem; line-height: 1.7; }
.opening-news { border-radius: var(--radius-container); box-shadow: none; background: #fff; border: 1px solid var(--line); }
.opening-news a { border-radius: var(--radius-element); }
.page-hero { background: repeating-linear-gradient(90deg, var(--color-background-page-hero) 0 14px, var(--color-background-page-hero-stripe) 14px 28px); border-bottom: 0; }
.page-hero .wrap { padding-block: var(--spacing-10) var(--spacing-12); }
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.crumbs { font-size: .875rem; gap: var(--spacing-2); line-height: 1.8; }
.services, .tint-cream, .support-home { background: var(--cream); }
.new, .tint-butter { background: var(--butter); }
.news { padding-block: 3rem; gap: var(--spacing-8); }
.news-list { border-radius: var(--radius-container); }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { padding: var(--spacing-4) var(--spacing-6); }
.news-list img { width: 64px; height: 64px; border-radius: var(--radius-element); }
.news-list span { font-size: 1rem; }
.news-list time { font-size: .875rem; }
.news-list .arrow { display: grid; place-items: center; }
.ui-chevron { width: 20px; height: 20px; flex: none; }

/* Shared card and image rules. Content photographs are never repainted. */
.service-grid, .news-cards, .about-grid, .card-grid, .job-grid, .gallery, .flow-banners, .banner-links { gap: var(--spacing-6); }
.service-card, .news-card, .soft-card, .job-card, .office-card, .new-feature, .idea-card, .mini-card, .access-card, .company-table, .form-preview, .fee-box, .job-post, .article, .timeline-card, .day-growth-card, .support-example, .support-audience, .support-video-panel, .support-home .support-editorial { border: 1px solid var(--line); border-radius: var(--radius-container); box-shadow: none; }
.service-body { padding: var(--spacing-6); }
.service-body h3 { font-size: 1.375rem; }
.service-body > p:not(.service-name), .soft-card p, .job-card p, .flow-steps p, .greeting-text p, .article-text p, .reading-copy p { font-size: 1rem; line-height: 1.9; }
.service-card > img, .news-card > img, .idea-card img { aspect-ratio: 3/2; width: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.service-card > .service-brand { object-fit: contain; background: #fff; }
.news-card:hover, .idea-card:hover { transform: none; border-color: var(--color-border-emphasized); box-shadow: var(--shadow-low); }
.news-card div { padding: var(--spacing-5); }
.news-card h2 { font-size: 1.0625rem; }
.news-meta { font-size: .875rem; }
.news-card .no-thumb { aspect-ratio: 3/2; background: var(--cream); }
.gallery img, .greeting-photo img, .access-card img, .office-card img { border-radius: var(--radius-container); box-shadow: none; }
.day-illustration, .support-editorial figure, .wide-figure { background: #fff; border-radius: var(--radius-container); border: 0; box-shadow: none; padding: 0; }
.day-illustration img, .support-editorial img, .support-intro img { display: block; width: 100%; height: auto; border: 0; border-radius: var(--radius-container); box-shadow: none; object-fit: contain; }
.wide-figure img { border-radius: var(--radius-element); width: 100%; height: auto; object-fit: contain; }
figure figcaption, .image-note { font-size: .875rem; line-height: 1.7; color: var(--muted); margin-top: var(--spacing-3); }
.article-lead { margin: 0; }
.article-lead img { max-height: none; border-radius: 0; background: var(--cream); }
.article-text { padding: var(--spacing-8); }
.article-gallery a { border-radius: var(--radius-element); }
.article-gallery img { border: 0; box-shadow: none; }
.pager a { border-radius: var(--radius-element); font-size: .875rem; }
.pager .pager-list { border-radius: var(--radius-element); }
.source-note { font-size: .875rem; }

/* Replaces all 10 baked-image banners. Shared typography, spacing and arrow. */
.flow-banners, .about-grid, .banner-links { align-items: stretch; }
.flow-banners .resource-card, .about-grid .resource-card, .banner-links .resource-card, .resource-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-container); overflow: hidden; box-shadow: none; transition: border-color var(--duration-fast), background-color var(--duration-fast), box-shadow var(--duration-fast); }
.flow-banners .resource-card:hover, .about-grid .resource-card:hover, .banner-links .resource-card:hover, .resource-card:hover { transform: none; border-color: var(--color-border-emphasized); background: #fcfbf8; box-shadow: var(--shadow-low); }
.resource-body { display: grid; grid-template-columns: minmax(0, 1fr) 84px 32px; align-items: center; gap: var(--spacing-4); padding: var(--spacing-6); min-height: 176px; flex: 1; }
.resource-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-2); min-width: 0; }
.resource-eyebrow { font-size: .75rem; line-height: 1.5; color: var(--muted); font-weight: 500; }
.resource-copy strong { font-size: clamp(1.125rem, 1.65vw, 1.375rem); line-height: 1.5; font-weight: 700; }
.resource-description { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.resource-card .resource-mascot { display: block; width: 84px; height: 84px; object-fit: contain; border: 0; border-radius: 0; background: none; box-shadow: none; }
.resource-icon { display: grid; place-items: center; width: 72px; height: 72px; background: var(--butter); border-radius: var(--radius-container); color: var(--color-text-accent); }
.resource-arrow { display: grid; place-items: center; width: 32px; height: 32px; color: var(--color-text-accent); background: var(--butter); border-radius: var(--radius-element); }
.resource-card .resource-photo { display: block; width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; border-radius: 0; border: 0; }
.resource-card-photo .resource-body { min-height: 148px; grid-template-columns: minmax(0, 1fr) 32px; }
.banner-links.three .resource-body { grid-template-columns: minmax(0, 1fr) 56px 28px; gap: var(--spacing-3); padding: var(--spacing-5); }
.banner-links.three .resource-mascot { width: 56px; height: 56px; }
.banner-links.three .resource-icon { width: 56px; height: 56px; }
.banner-links.three .resource-copy strong { font-size: 1.125rem; }
.banner-links.three .resource-arrow { width: 28px; height: 28px; }

/* Forms and disclosure keep their existing behavior and content. */
.form-preview { padding: var(--spacing-8); }
.form-notice, .mini-note, .example, .pull-quote { border-radius: var(--radius-element); font-size: .9375rem; }
.field label, .field-label, .field input, .field select, .field textarea { font-size: 1rem; }
.field :is(input, select, textarea) { border: 1px solid var(--color-border-emphasized); border-radius: var(--radius-element); padding: .75rem 1rem; background: #fff; }
.field :is(input, select) { min-height: var(--control-height); }
.field input[type="checkbox"], .field input[type="radio"] { min-height: auto; }
.faq details { border-radius: var(--radius-container); }
.faq summary { font-size: 1rem; min-height: 56px; }
.faq details p { font-size: 1rem; }
.faq summary::before { border-radius: var(--radius-inner); }
.data-table { border-radius: var(--radius-container); font-size: .9375rem; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius-container); }
.steps strong, .steps small { font-size: .9375rem; }
.visit { background: var(--cream); }
.visit-box { border: 1px solid var(--line); border-radius: var(--radius-container); background: #fff; box-shadow: none; }
.phones > div { border-radius: var(--radius-element); }
.phones small, .phones span { font-size: .875rem; }
.footer { background: #302e29; color: #f7f5ef; font-size: .875rem; }
.footer a, .footer-brand address, .footer p { color: #e6e2d9; }
.footer-nav b { font-size: .9375rem; }
.footer-nav a { padding-block: .25rem; }

/* Retains the production site's five-domain layout: three, then two. */
#domains .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1100px; margin: 2rem auto; }
#domains .soft-card { grid-column: span 2; padding: var(--spacing-6); text-align: center; }
#domains .soft-card:nth-child(4) { grid-column: 2 / span 2; }
#domains .soft-card:nth-child(5) { grid-column: 4 / span 2; }
#domains .day-domain-icon { margin: 0 auto 1rem; width: 56px; height: 56px; border-radius: var(--radius-element); }
#domains .soft-card h3 { font-size: 1.0625rem; }
#foundation .day-story h3 { font-size: 1.375rem; }

@media (max-width: 1024px) {
  .header { display: flex; align-items: center; justify-content: space-between; }
  .nav-toggle:not([hidden]) { display: inline-flex; }
  .nav { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-2); }
  .header[data-menu-ready] .nav:not([data-open]) { display: none; }
  .nav a { justify-content: flex-start; padding: .75rem; background: var(--cream); }
  .nav .nav-contact { grid-column: 1 / -1; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: var(--spacing-6); padding-block: 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-photos { align-self: center; }
  .banner-links.three { grid-template-columns: 1fr 1fr; }
  .banner-links.three .resource-body { min-height: 160px; }
  .resource-body { grid-template-columns: minmax(0, 1fr) 64px 28px; gap: var(--spacing-3); padding: var(--spacing-5); }
  .resource-card .resource-mascot { width: 64px; height: 64px; }
  .resource-arrow { width: 28px; height: 28px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { border-block-start: 3px solid var(--color-accent); padding-block: var(--spacing-4); gap: var(--spacing-4); }
  .brand img { width: 160px; }
  .nav-toggle { font-size: .875rem; padding: .5rem .75rem; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--spacing-8); padding-block: 2.5rem; }
  .hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.5rem); }
  .hero-photos { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-photos .photo-main { height: auto; aspect-ratio: 16/7; }
  .hero-photos .photo-sub { height: auto; aspect-ratio: 4/3; }
  .hero-note { margin: 0; }
  .hero .button-row { display: grid; grid-template-columns: 1fr; }
  .page-hero .wrap { padding-block: var(--spacing-6) var(--spacing-8); }
  .news { grid-template-columns: 1fr; gap: var(--spacing-5); }
  .news-list a { padding: var(--spacing-4); gap: var(--spacing-3); }
  .news-list img { width: 52px; height: 52px; }
  .news-list span { font-size: .9375rem; }
  .news-list time { font-size: .8125rem; }
  .service-grid, .flow-banners, .about-grid, .banner-links, .banner-links.three { grid-template-columns: 1fr; }
  .service-grid, .news-cards, .card-grid, .job-grid, .gallery, .flow-banners, .about-grid, .banner-links { gap: var(--spacing-4); }
  .resource-body, .banner-links.three .resource-body { min-height: 152px; grid-template-columns: minmax(0, 1fr) 64px 28px; padding: var(--spacing-5); gap: var(--spacing-3); }
  .resource-copy strong, .banner-links.three .resource-copy strong { font-size: 1.125rem; }
  .resource-card .resource-mascot, .banner-links.three .resource-mascot { width: 64px; height: 64px; }
  .resource-icon { width: 56px; height: 56px; }
  .resource-card-photo .resource-body { min-height: 128px; grid-template-columns: minmax(0, 1fr) 28px; }
  .article-text, .form-preview { padding: var(--spacing-5); }
  .article-gallery ul { gap: var(--spacing-3); }
  .phones { grid-template-columns: 1fr; }
  #domains .card-grid { grid-template-columns: 1fr 1fr; }
  #domains .soft-card, #domains .soft-card:nth-child(4), #domains .soft-card:nth-child(5) { grid-column: auto; padding: var(--spacing-4); }
  #domains .soft-card:last-child { grid-column: 1 / -1; }
  #domains .soft-card h3 { font-size: 1rem; }
  #domains .soft-card p { font-size: .9375rem; }
  .footer .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-8); }
}
@media (max-width: 380px) {
  .resource-body, .banner-links.three .resource-body { grid-template-columns: minmax(0, 1fr) 48px 24px; padding: var(--spacing-4); gap: var(--spacing-2); }
  .resource-card .resource-mascot, .banner-links.three .resource-mascot { width: 48px; height: 48px; }
  .resource-card-photo .resource-body { grid-template-columns: minmax(0, 1fr) 24px; }
  .resource-arrow { width: 24px; height: 28px; }
  .resource-description { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The upper page is warm and curved; menu labels sit on clear, high-contrast surfaces. */
.site-header { background: linear-gradient(110deg, #ffe1a6, #fff0d0); }
.site-header .header { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 28px; padding-block: 24px 12px; background: transparent; border: 0; }
.site-header .brand img { width: 190px; }
.site-header .brand img { mix-blend-mode: multiply; }
.brand-group { display: grid; gap: 12px; justify-items: start; }
.all-pages-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 1px solid #bc873d; border-radius: 12px; color: #493321; background: #fffdf8; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.all-pages-link:hover { background: #ffe4ac; }
.site-header .nav { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; font-size: 1rem; font-weight: 700; }
.site-header .nav a { grid-column: span 3; min-height: 48px; padding: 10px 12px; color: #493321; background: #fffdf8; border: 1px solid #e3c99d; border-radius: 16px; line-height: 1.6; text-align: center; text-decoration: none; box-shadow: none; }
.site-header .nav a:nth-child(n+5) { grid-column: span 2; }
.site-header .nav a:hover { color: #493321; background: #ffedc7; border-color: #b88136; }
.site-header .nav a[aria-current="page"]:not(.nav-contact) { color: #493321; background: #ffe4ac; border-color: #c68729; box-shadow: inset 0 -3px 0 #e9a438; }
.site-header .header .nav .nav-contact { grid-column: span 4; color: #38260f; background: #f5ab33; border-color: #cf8a22; border-radius: 16px; }
.site-header .header .nav .nav-contact:hover { color: #38260f; background: #ffc35e; }
.header-wave { display: none; }
.site-header .nav-toggle { color: #493321; background: #fffdf8; border-color: #cba876; font-size: 1rem; font-weight: 700; }
@media (max-width: 1180px) and (min-width: 1025px) {
  .site-header .header { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 1024px) {
  .site-header .header { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 18px 10px; }
  .site-header .nav { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .header[data-menu-ready] .nav:not([data-open]) { display: none; }
  .site-header .nav a, .site-header .nav a:nth-child(n+5) { grid-column: auto; justify-content: flex-start; text-align: left; }
  .site-header .header .nav .nav-contact { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 600px) {
  .site-header .brand img { width: 152px; }
  .site-header .nav { grid-template-columns: 1fr; }
  .header-wave { height: 28px; }
}
@media print {
  .site-header { background: none; }
  .site-header .nav, .site-header .nav-toggle, .header-wave { display: none; }
}

/* Equal visible head width, accounting for the transparent margins in each original. */
.mascot-face { display: block; position: relative; width: 120px; height: 120px; flex: none; overflow: hidden; }
.mascot-face.mascot-orange { --mascot-image-width: 118.638%; --mascot-image-left: -9.366%; --mascot-image-top: -10.123%; }
.mascot-face.mascot-blue { --mascot-image-width: 110.680%; --mascot-image-left: -5.649%; --mascot-image-top: -6.002%; }
.mascot-face.mascot-pink { --mascot-image-width: 115.257%; --mascot-image-left: -8.456%; --mascot-image-top: -10.616%; }
.mascot-face img { display: block; position: absolute; width: var(--mascot-image-width); height: auto; max-width: none; left: var(--mascot-image-left); top: var(--mascot-image-top); object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.service-guide { --guide-border: #e9b363; --guide-tint: #fff3dc; display: flex; align-items: center; gap: 28px; color: var(--ink); text-decoration: none; }
.service-guide[data-theme="work"] { --guide-border: #74b7c8; --guide-tint: #edf9fc; }
.service-guide[data-theme="visit"] { --guide-border: #dc9bbd; --guide-tint: #fff0f7; }
.guide-bubble { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; border: 2px solid var(--guide-border); border-radius: 24px; padding: 20px 24px; background: var(--guide-tint); }
.guide-bubble::before { content: ""; position: absolute; width: 16px; height: 16px; top: calc(50% - 8px); left: -10px; border-left: 2px solid var(--guide-border); border-bottom: 2px solid var(--guide-border); background: var(--guide-tint); transform: rotate(45deg); }
.guide-bubble strong { font-size: 1.0625rem; }
.guide-bubble > span { font-size: .9375rem; line-height: 1.9; }
.guide-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.service-guide[href]:hover .guide-bubble { border-color: var(--ink); }
.page-guide { padding-top: 32px; }
.page-guide .service-guide { max-width: 880px; margin-inline: auto; }
.service-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 32px 0 48px; }
.service-guides .service-guide { flex-direction: column; gap: 20px; }
.service-guides .guide-bubble { width: 100%; }
.service-guides .guide-bubble::before { left: calc(50% - 8px); top: -10px; transform: rotate(135deg); }
.illustrated-story, .illustrated-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-bottom: 36px; }
.illustrated-story > .reading-copy, .illustrated-story > .prose { margin: 0; max-width: none; min-width: 0; }
.illustrated-heading > .heading { margin: 0; }
.story-illustration { width: 100%; max-width: 560px; margin: 0 auto; }
.story-illustration img { display: block; width: 100%; height: auto; border: 0; border-radius: 24px; box-shadow: none; }
.story-illustration figcaption { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 8px; }
.soft-card.prose + .story-illustration, .story-illustration + .soft-card.prose { margin-top: 28px; }
.sitemap-list a, .sitemap-news a, .cat-links a { display: inline-block; padding-block: 10px; min-height: 44px; line-height: 1.7; }
@media (max-width: 900px) {
  .service-guides { grid-template-columns: 1fr; }
  .service-guides .service-guide { flex-direction: row; gap: 24px; }
  .service-guides .guide-bubble::before { top: calc(50% - 8px); left: -10px; transform: rotate(45deg); }
  .illustrated-story, .illustrated-heading { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .service-guide, .service-guides .service-guide { gap: 18px; align-items: center; }
  .service-guide > .mascot-face { width: 76px; height: 76px; }
  .guide-bubble { padding: 16px; border-radius: 20px; }
  .guide-bubble strong { font-size: 1rem; }
  .guide-bubble > span { font-size: .875rem; }
  .all-pages-link { font-size: .875rem; padding-inline: 8px; }
}

/* One gentle curve for background transitions only; striped fills stay straight.
   The next tinted section covers the preceding bottom curve with the same mask. */
@media screen {
  :root {
    --section-curve-height: clamp(24px, 3.2vw, 46px);
    --section-curve-mask: url('/assets/brand/section-curve.svg');
  }
  .site-header::after,
  #main > :is(.hero, .page-hero, .services, .new, .tint-cream, .tint-butter, .support-home, .visit, .day-growth-section)::before,
  #main > :is(.hero, .page-hero, .services, .new, .tint-cream, .tint-butter, .support-home, .visit, .day-growth-section)::after,
  .footer::before {
    content: "";
    display: block;
    height: var(--section-curve-height);
    -webkit-mask: var(--section-curve-mask) center / 100% 100% no-repeat;
    mask: var(--section-curve-mask) center / 100% 100% no-repeat;
    pointer-events: none;
  }
  .site-header::after {
    background: repeating-linear-gradient(90deg, var(--color-background-page-hero) 0 14px, var(--color-background-page-hero-stripe) 14px 28px);
  }
  #main > :is(.hero, .page-hero, .services, .new, .tint-cream, .tint-butter, .support-home, .visit, .day-growth-section),
  .footer { position: relative; }
  #main > :is(.hero, .page-hero, .services, .new, .tint-cream, .tint-butter, .support-home, .visit, .day-growth-section)::before,
  .footer::before {
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    background: inherit;
  }
  #main > :is(.hero, .page-hero, .services, .new, .tint-cream, .tint-butter, .support-home, .visit, .day-growth-section)::after {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: var(--color-background-body);
  }
  #main > :is(.hero, .page-hero)::before { content: none; }
  #main > :is(.hero, .page-hero) { padding-bottom: var(--section-curve-height); }
  #main > .day-growth-section::before { background: #fffaf1; }
  /* Guide bubbles end flush with their wrapper; reserve room for the next curve. */
  #main > .page-guide { padding-bottom: var(--section-curve-height); }
}
