/* Final phone pass shared by the porch and its standalone rooms. */
/* Structural focus is for navigation announcements, not a frame around the page. */
#main:focus, #reading:focus, #career-experience:focus {
  outline: none;
}
.profile-share-short { display: none; }
.builder-heading { cursor: pointer; list-style: none; }
.builder-heading::-webkit-details-marker { display: none; }
.builder-heading:focus-visible { outline: 3px solid #b89553; outline-offset: 8px; border-radius: 5px; }
.builder-heading > div { flex: 1; min-width: 0; }
.builder-chevron { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; margin: 0 3px 4px; }
.porch-builder[open] .builder-chevron { transform: rotate(225deg); margin-top: 8px; }
.porch-builder:not([open]) .builder-heading h2 { margin-bottom: 0; }

@media (max-width: 760px) {
  /* A short, calm masthead; generous controls without a second toolbar row. */
  .site-header { min-height: 60px; padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); gap: 10px; }
  .site-header .brand { font-size: 23px; gap: 7px; }
  .site-header .brand img { width: 28px; height: 28px; }
  .header-links { gap: 6px; flex-wrap: nowrap; }
  .header-links > .button { font-size: 14px; padding: 10px 12px; min-height: 44px; }
  .header-links > .button[data-action=connections], .header-links > .button[data-action=customize] { width: 44px; min-width: 44px; padding: 0; }
  .header-links > .button[data-action=connections] .icon, .header-links > .button[data-action=customize] .icon { display: block; width: 21px; height: 21px; }
  .connection-button-label { display: none; }
  .header-links [data-action=start-setup] .icon { display: none; }
  .prototype-bar { padding: 7px 16px; font-size: 12px; line-height: 1.5; }
  .prototype-bar.visitor-status, .breadcrumb { display: none; }
  .shell { padding: 12px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); }
  .cover { height: 122px; border-radius: 14px; }
  .cover-note { top: 15px; left: 18px; font-size: 18px; line-height: 1.2; max-width: 220px; }
  .cover-note span { font-size: 10px; line-height: 1.5; margin: 0 0 8px; }
  .cover-edit { min-height: 44px; bottom: 6px; right: 6px; font-size: 14px; }
  .profile-area { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
  .profile-photo { width: 70px; height: 70px; margin-top: -18px; }
  .profile-copy { padding-top: 12px; }
  .profile-copy h1 { font-size: 29px; line-height: 1.12; }
  .profile-copy p { font-size: 15px; line-height: 1.5; margin-top: 6px; }
  .profile-copy .location { margin-top: 8px; font-size: 13px; }
  .profile-actions { gap: 8px; }
  .profile-actions .button { min-height: 44px; font-size: 14px; padding: 10px; }
  .profile-share-full { display: none; }
  .profile-share-short { display: inline; }
  .section-navigation { margin-bottom: 20px; padding-top: 0; }
  .has-many .mobile-section-picker { gap: 12px; padding: 7px 0; }
  .mobile-section-picker > span { font-size: 13px; }
  .mobile-section-picker select { min-height: 44px; padding-block: 9px; max-width: 230px; font-size: 15px; }
  #main { scroll-margin-top: calc(70px + env(safe-area-inset-top)); }
  .intro-card { padding-bottom: 22px; }
  .intro-card h2 { font-size: 28px; line-height: 1.16; margin-top: 10px; }
  .intro-card p { line-height: 1.65; }
  .section { margin-bottom: 26px; }
  .section-head { gap: 8px 12px; margin-bottom: 16px; }
  .section-head h2 { font-size: 26px; line-height: 1.2; }
  .panel { min-height: 0; }
  .panel-heading { gap: 14px; margin-bottom: 22px; }
  .panel-heading h2 { font-size: 30px; }
  .section-head .button.text { padding: 8px 0; }
  .side-card { padding: 20px; }
  .creation-card { border-radius: 13px; }
  .creation-text { padding: 16px; }
  .creation-text p { font-size: 15px; line-height: 1.5; margin-top: 8px; }
  .creation-text span { font-size: 11px; }
  .link-row { padding: 12px; border-radius: 12px; }
  .link-row .tag { font-size: 12px; }
  .eyebrow { line-height: 1.6; }

  /* Owners can open their workshop when needed, without burying the porch. */
  .porch-builder { padding: 18px; margin-bottom: 24px; border-radius: 15px; }
  .builder-heading { gap: 12px; align-items: center; }
  .builder-heading .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .builder-heading h2 { font-size: 23px; line-height: 1.15; margin: 5px 0 0; }
  .porch-builder:not([open]) .builder-heading h2 { font: 400 19px/1.25 var(--serif); }
  .builder-progress { font-size: 12px; padding: 6px 8px; white-space: normal; text-align: center; width: 56px; flex: none; }
  .builder-steps { margin-top: 18px; gap: 10px; }
  .builder-steps button { padding: 14px; }
  .builder-steps strong { font-size: 15px; line-height: 1.4; }
  .builder-steps small, .builder-footer { font-size: 13px; }
  .builder-footer { gap: 8px; }
  .builder-footer button { min-height: 44px; font-size: 14px; }
  .connection-card p, .guide-grid p { font-size: 16px; }
  .connection-card strong { font-size: 14px; }
  .connection-actions .button, .connection-actions a { min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; }

  /* Feature art stays expressive, sized to the phone rather than a poster. */
  .music-feature-main { padding: 24px 22px 18px; gap: 10px; min-height: 0; }
  .music-feature-kicker { font-size: 12px; }
  .music-feature h3 { font-size: clamp(42px, 12vw, 56px); margin: 14px 0; }
  .music-feature-tagline { font-size: 22px; margin-bottom: 10px; }
  .music-feature-description { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
  .music-feature-art { max-width: 230px; aspect-ratio: 1.15; }
  .music-feature-originals strong { font-size: 26px; }
  .music-feature-originals small { font-size: 10px; }
  .music-feature-vinyl span { border-width: 4px; font-size: 16px; }
  .music-feature-footer { padding: 10px 20px; font-size: 13px; }
  .book-invitation { padding: 24px 22px; gap: 16px; border-radius: 16px; }
  .book-invitation h2 { font-size: 37px; margin: 13px 0; }
  .book-invitation-kicker { font-size: 12px; }
  .book-invitation-copy > p { line-height: 1.6; margin-bottom: 14px; }
  .book-invitation-facts { margin-bottom: 16px; gap: 6px 15px; }
  .book-invitation-art { max-width: 230px; }
  .storybook-scene { aspect-ratio: 1/1.02; }
  .storybook-cover > strong { font-size: 24px; }
  .photo-highlights { padding: 20px 16px; }
  .photo-highlight-heading h2 { font-size: 30px; }
  .photo-highlight-heading p { font-size: 16px; line-height: 1.6; }
  .photo-highlight-number { font-size: 20px; margin-top: 12px; }
  .photo-highlight-footer { gap: 12px; }
  .business-feature, .newera-feature { border-radius: 15px; }
  .business-feature-main { padding: 24px; gap: 20px; }
  .business-feature h3, .newera-feature h3 { font-size: 33px; }
  .newera-feature-art { height: 200px; min-height: 200px; }
  .family-blog-feature { border-radius: 15px; }

  /* Reading and working should not require zooming. */
  .career-role ul, .career-skills li { font-size: 16px; line-height: 1.65; }
  .career-site .career-button { font-size: 14px; min-height: 44px; }
  .career-explore { font-size: 14px; min-height: 44px; }
  .career-workbench .career-button { font-size: 14px; }
  .career-workbench .career-actions { grid-template-columns: 1fr; }
  .career-preview { padding: 20px; }
  .career-preview h2 { font-size: 25px; }
  .contact-page-header > span { font-size: 12px; letter-spacing: .04em; }
  .contact-addresses > a { overflow-wrap: anywhere; }
  .contact-explore-links a, .contact-quick-actions a { font-size: 15px; min-height: 44px; }
  .contact-identity-bottom { font-size: 12px; }
  .contact-identity .contact-eyebrow { font-size: 12px; }
  .contact-location { font-size: 13px; }
  .modal-head h2 { font-size: 24px; }
  .modal-head { padding: 18px 18px 14px; }
  .modal-body { padding-top: 18px; }
  .music-dock { padding: 9px 10px; gap: 5px 10px; }
  .dock-track img { width: 38px; height: 38px; }
  .dock-title { font-size: 14px; }
  .dock-album { font-size: 12px; margin-top: 3px; }
}

@media (max-width: 650px) {
  .photo-highlight-collage { grid-template-rows: 210px 115px 115px; gap: 8px; }
  .photo-highlight-collage.count-3 { grid-template-rows: 210px 115px; }
  .photo-highlight-collage.count-2 { grid-template-rows: 210px 160px; }
  .photo-highlight-collage.count-1 { grid-template-rows: 210px; }
  .career-main { padding: 0 20px; }
  .career-hero { padding: 26px 0; gap: 24px; }
  .career-intro h1, .career-intro h2 { font-size: 41px; line-height: 1.1; }
  .career-headline { font-size: 20px; }
  .career-portrait { max-width: 280px; }
  .career-about, .career-columns { padding-block: 26px; }
  .career-role h3 { font-size: 20px; }
  .career-skills { padding: 22px; }
  .contact-identity { padding: 22px; grid-template-columns: 88px minmax(0, 1fr); gap: 0 16px; }
  .contact-portrait-wrap { width: 88px; height: 88px; }
  .contact-identity h1 { font-size: 33px; }
  .contact-details { padding: 24px 22px; }
}

@media (max-width: 720px) {
  .novel-header { padding: 10px 18px; }
  .novel-header > .novel-button { font-size: 14px; }
  .novel-hero-copy { padding: 28px 22px 0; }
  .novel-hero h1 { font-size: clamp(56px, 16vw, 78px); margin: 18px 0; }
  .novel-hook { font-size: 22px; margin: 18px 0 !important; }
  .novel-hero-art { height: 315px; max-width: 360px; margin-top: 4px; }
  .novel-container { padding: 40px 22px; }
  .novel-story h2 { font-size: 40px; }
  .novel-reader-note { font-size: 13px; line-height: 1.6; }
  .novel-art-caption { font-size: 14px; }
  .novel-art-filters button { min-height: 44px; font-size: 14px; }
  .novel-mobile-actions { padding: 9px 14px max(9px, env(safe-area-inset-bottom)); }
  .novel-mobile-actions .novel-button { min-height: 46px; font-size: 14px; }
}

@media (max-width: 700px) {
  .mob-header { padding: 10px 18px; }
  .mob-header .mob-button { font-size: 14px; }
  .mob-hero { padding: 28px 22px 20px; gap: 16px; }
  .mob-hero h1 { font-size: clamp(46px, 12.8vw, 64px); margin: 16px 0 18px; }
  .mob-hero-copy > p { line-height: 1.65; }
  .mob-hero-art { max-width: 290px; padding-bottom: 8px; }
  .mob-play-note { font-size: 13px; line-height: 1.65; }
  .mob-facts { padding: 18px 8px; }
  .mob-facts > div { padding: 0 10px; }
  .mob-facts span { font-size: 11px; letter-spacing: .04em; }
  .mob-container { padding-inline: 22px; }
  .mob-intro { padding-top: 38px; }
  .mob-intro-copy { margin-top: 20px; }
  .mob-factions, .mob-characters { padding-block: 38px; }
  .mob-faction { min-height: 390px; }
  .mob-faction > div { padding: 22px; }
  .mob-finale { padding-block: 38px; }
  .mob-gallery-card > span { font-size: 12px; }
  .mob-filters button { min-height: 44px; font-size: 14px; }
  .mob-mobile-actions { padding: 9px 14px max(9px, env(safe-area-inset-bottom)); }
  .mob-mobile-actions .mob-button { min-height: 46px; font-size: 14px; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 10px; gap: 6px; }
  .site-header .brand { font-size: 21px; gap: 5px; }
  .site-header .brand img { width: 25px; height: 25px; }
  .header-links { gap: 4px; }
  .header-links > .button { padding-inline: 9px; }
  .shell { padding-inline: max(12px, env(safe-area-inset-left)); }
  .profile-copy h1 { font-size: 27px; }
  .mobile-section-picker > span { max-width: 90px; }
  .creation-text { padding: 13px; }
  .creation-text h3 { font-size: 22px; }
  .music-view .record-card { grid-template-columns: 105px minmax(0, 1fr); gap: 14px; }
  .music-view .record-info h3 { font-size: 22px; }
  .music-view .cover-caption strong { font-size: 21px; }
  .contact-identity { grid-template-columns: 70px minmax(0, 1fr); gap: 0 13px; padding: 20px; }
  .contact-portrait-wrap { width: 70px; height: 70px; }
  .contact-identity h1 { font-size: 29px; }
  .contact-details { padding: 22px 18px; }
}
