/* Phone reading layouts. Desktop editorial layouts remain in their own files. */
@media (max-width: 760px) {
  #rescue-story,
  #alloy,
  #care,
  #steel-story,
  #aftercare {
    scroll-margin-top: 76px;
  }

  /* Put the adoption story first, with a full-width photo spread below it. */
  #rescue-story .rescue-story-shell {
    padding: 44px 20px 40px;
  }

  #rescue-story .rescue-story-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  #rescue-story .rescue-story-copy {
    order: 0;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  #rescue-story .rescue-story-carousel {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #rescue-story .rescue-adoption h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1.06;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  #rescue-story .rescue-adoption > p,
  #rescue-story .rescue-health > p {
    max-width: none;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0;
    text-wrap: pretty;
  }

  #rescue-story .rescue-health {
    margin-top: 26px;
  }

  #rescue-story .rescue-health h3 {
    margin: 0 0 12px;
    font-size: clamp(29px, 8.4vw, 34px);
    line-height: 1.14;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  #rescue-story .rescue-story-choice {
    width: 100%;
    margin-top: 24px;
    padding-top: 22px;
    gap: 22px;
    align-items: center;
  }

  #rescue-story .rescue-choice-number {
    gap: 7px;
  }

  #rescue-story .rescue-choice-number strong {
    font-size: 66px;
  }

  #rescue-story .rescue-choice-number > span {
    font-size: 25px;
  }

  #rescue-story .rescue-story-choice > p {
    min-width: 0;
    font-size: 17px;
    line-height: 1.5;
  }

  #rescue-story .rescue-story-link {
    max-width: 100%;
    min-height: 44px;
    margin-top: 16px;
    gap: 16px;
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
  }

  #rescue-story .rescue-photo-layout {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
  }

  #rescue-story .rescue-photo-layout.is-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  #rescue-story .rescue-photo-layout img {
    min-width: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
  }

  #rescue-story .rescue-story-photo figcaption {
    min-height: 0;
    padding: 14px 0;
  }

  #rescue-story .rescue-story-photo figcaption strong {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-wrap: pretty;
  }

  #rescue-story .rescue-story-carousel-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    padding-top: 10px;
  }

  #rescue-story .rescue-story-position {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px;
  }

  #rescue-story .rescue-story-dots {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
  }

  #rescue-story .rescue-story-dots button {
    width: 30px;
    height: 44px;
  }

  #rescue-story .rescue-story-arrows {
    grid-column: 3;
    grid-row: 1;
    gap: 8px;
    margin: 0;
  }

  #rescue-story .rescue-story-arrows button {
    width: 44px;
    height: 44px;
  }

  #rescue-story .rescue-story-toggle {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 16px;
  }

  /* A clear material introduction, with a compact and level photo composition. */
  #alloy.material-intro .material-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    min-height: 0;
    padding: 44px 20px;
  }

  #alloy .material-intro-copy {
    grid-row: 1;
    width: 100%;
    max-width: none;
  }

  #alloy h2 {
    margin: 0 0 20px;
    font-family: 'PawMaker Editorial', Georgia, serif;
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1.06;
    font-weight: 400;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  #alloy h2 em {
    color: #a45530;
    font-style: italic;
    font-weight: 400;
    background: none;
  }

  #alloy .material-intro-subtitle {
    margin: 0 0 18px;
    font-size: 20px !important;
    line-height: 1.45;
    letter-spacing: 0;
    text-wrap: pretty;
  }

  #alloy .material-intro-body {
    max-width: none;
  }

  #alloy .material-intro-body p {
    margin: 0 0 16px;
    font-size: 17px !important;
    line-height: 1.6;
  }

  #alloy .material-intro-body p:last-child {
    margin-bottom: 0;
  }

  #alloy .material-intro-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d5c8b5;
  }

  #alloy .material-intro-tags li,
  #alloy .material-intro-tags li + li {
    border: 0;
    padding: 0;
    font-size: 16px !important;
    line-height: 1.5;
    white-space: normal;
  }

  #alloy .material-intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 24px;
  }

  #alloy .material-intro-primary,
  #alloy .material-intro-secondary {
    min-height: 48px;
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1.5;
    white-space: normal;
  }

  #alloy .material-intro-primary {
    padding: 12px 20px;
    gap: 18px;
  }

  #alloy .material-intro-visual,
  #alloy .material-intro-visual.can-reveal,
  #alloy .material-intro-visual.can-reveal.is-visible {
    grid-row: 2;
    width: 100%;
    max-width: 560px;
    min-height: 0;
    height: auto;
    aspect-ratio: 1.3;
    opacity: 1;
    transform: none;
    margin: 0;
  }

  #alloy .material-photo {
    border-radius: 12px;
    box-shadow: none;
    transform: none;
  }

  #alloy .material-photo-tray {
    inset: 0 0 15% 0;
    width: 100%;
    height: 85%;
    background: #e7ddcf;
  }

  #alloy .material-photo-tray img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #alloy .material-photo-detail {
    inset: auto 0 0 auto;
    width: 38%;
    height: 47%;
    border: 5px solid #f0e9df;
    border-radius: 12px;
  }

  /* Keep each laboratory image and explanation together as one readable card. */
  #care .care-material-shell {
    min-width: 0;
    padding: 44px 20px 40px;
  }

  #care .care-material-heading {
    display: block;
    margin: 0 0 24px;
  }

  #care .care-material-heading h2 {
    font-size: clamp(36px, 10vw, 43px);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  #care .care-material-heading h2 br {
    display: block;
  }

  #care .care-material-heading h2 em {
    white-space: normal;
  }

  #care .care-material-carousel,
  #care .care-material-scenes {
    min-width: 0;
    max-width: 100%;
  }

  #care .care-material-scenes {
    border-radius: 12px;
  }

  #care .care-material-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    min-width: 0;
    align-items: stretch;
  }

  #care .care-material-visual {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
  }

  #care .care-material-visual > img,
  #care .care-material-visual video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #e9dfd2;
  }

  #care .care-material-visual figcaption {
    left: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
  }

  #care .care-material-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    max-width: none;
    padding: 22px 20px 24px;
    border-top: 1px solid #d9cbb8;
    border-left: 0;
  }

  #care .care-material-chapter {
    gap: 10px;
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  #care .care-material-chapter > span {
    font-size: 16px;
  }

  #care .care-material-copy h3 {
    margin: 0 0 18px;
    font-size: clamp(32px, 9.1vw, 40px);
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }

  #care .care-material-copy h3 > em {
    white-space: normal;
  }

  #care .care-material-number {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    font-size: clamp(56px, 16vw, 72px);
    line-height: .98;
    letter-spacing: -.04em;
  }

  #care .care-material-number small {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  #care .care-material-copy > p:not(.care-material-chapter):not(.care-material-takeaway) {
    max-width: none;
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.6;
  }

  #care .care-material-signature {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0;
    padding-block: 16px;
  }

  #care .care-material-signature > strong {
    font-size: 36px;
    line-height: 1.1;
  }

  #care .care-material-signature > span {
    font-size: 16px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  #care .care-material-signature > .care-material-etch {
    display: none;
  }

  #care .care-material-result {
    gap: 6px;
    margin: 0;
    padding-top: 16px;
  }

  #care .care-material-result > span {
    font-size: 16px;
    line-height: 1.5;
  }

  #care .care-material-result > strong {
    font-size: 26px;
    line-height: 1.2;
  }

  /* These lines repeat the chapter headline and result; simplify phone reading. */
  #care .care-material-takeaway {
    display: none;
  }

  #care .care-material-scenes > .care-material-arrows {
    top: calc((100vw - 42px) * .375);
    right: 10px;
    left: 10px;
    transform: translateY(-50%);
    flex-direction: row;
    gap: 0;
  }

  #care .care-material-scenes > .care-material-arrows button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    background: #fffaf1ed;
    border-color: #bfaa91;
  }

  #care .care-material-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-top: 18px;
  }

  #care .care-material-tabs {
    display: flex;
    flex: 1 1 100%;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #bfa68e #e9dfd2;
  }

  #care .care-material-tabs button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d5c5b0;
    border-radius: 6px;
    background: #f6f0e7;
    color: #68523f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    scroll-snap-align: center;
  }

  #care .care-material-tabs button > span {
    display: inline;
    margin: 0;
    font-size: 15px;
    line-height: inherit;
    color: inherit;
  }

  #care .care-material-tabs button[aria-selected="true"] {
    background: #eadcc9;
    border-color: #a45d37;
    color: #834723;
  }

  #care .care-material-tabs button::after {
    inset: auto 8px 0;
    height: 2px;
  }

  #care .care-material-toggle {
    min-height: 44px;
    margin-left: auto;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.4;
  }

  /* Remove the old narrow chapter columns, with natural paragraph line breaks. */
  #steel-story .brand-origin-shell {
    padding: 44px 20px 36px;
  }

  #steel-story .brand-origin-heading {
    display: block;
    margin: 0 0 28px;
  }

  #steel-story .brand-origin-heading h2 {
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1.06;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  #steel-story .brand-origin-intro {
    max-width: none;
    margin: 18px 0 0;
    font-size: 17px !important;
    line-height: 1.6;
  }

  #steel-story .brand-origin-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  #steel-story .brand-origin-images {
    width: 100%;
    max-width: 560px;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.14;
    margin: 0;
  }

  #steel-story .brand-origin-sink {
    width: 100%;
    height: 82%;
    min-height: 0;
    border-radius: 12px;
  }

  #steel-story .brand-origin-tray {
    bottom: 0;
    right: 0;
    width: 44%;
    height: 49%;
    border: 5px solid #f0e9df;
    border-radius: 12px;
    box-shadow: none;
  }

  #steel-story .brand-origin-tray img {
    object-fit: contain;
    padding: 8px;
  }

  #steel-story .brand-origin-chapters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    min-width: 0;
  }

  #steel-story .brand-origin-chapter {
    display: block;
    min-width: 0;
    padding: 0 0 24px;
  }

  #steel-story .brand-origin-chapter:last-child {
    padding-bottom: 0;
  }

  #steel-story .brand-origin-chapter h3 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: pretty;
  }

  #steel-story .brand-origin-chapter h3 br {
    display: none;
  }

  #steel-story .brand-origin-chapter p:not(.brand-origin-kicker) {
    max-width: none;
    margin: 0;
    font-size: 17px !important;
    line-height: 1.6;
  }

  #steel-story .brand-origin-home {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 14px 16px;
    margin-top: 30px;
    padding: 24px 0;
  }

  #steel-story .brand-origin-home > img {
    width: 64px;
    height: 64px;
    margin-top: 2px;
  }

  #steel-story .brand-origin-home h3 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: pretty;
  }

  #steel-story .brand-origin-home p:not(.brand-origin-kicker) {
    margin: 0;
    font-size: 17px !important;
    line-height: 1.6;
  }

  #steel-story .brand-origin-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    min-height: 48px;
    max-width: 100%;
    padding: 10px 0;
    font-size: 16px !important;
    line-height: 1.5;
    white-space: normal;
  }

  /* Let the service story and photo breathe, then keep help routes in a 2x2 grid. */
  #aftercare .aftercare-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  #aftercare .aftercare-content {
    order: 0;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 40px 20px 18px;
    text-align: center;
  }

  #aftercare .aftercare-messages {
    min-height: 246px;
  }

  #aftercare .aftercare-message h2 {
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: clamp(36px, 10.2vw, 43px);
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  #aftercare .aftercare-message h2 em {
    white-space: normal;
  }

  #aftercare .aftercare-message > p {
    max-width: 44ch;
    margin: 0 auto;
    font-size: 17px !important;
    line-height: 1.6;
    text-wrap: pretty;
  }

  #aftercare .aftercare-text-link {
    display: inline-flex;
    min-height: 44px;
    max-width: 100%;
    gap: 18px;
    margin-top: 14px;
    padding: 8px 0;
    font-size: 16px !important;
    line-height: 1.5;
    white-space: normal;
  }

  #aftercare .aftercare-dots {
    position: static;
    inset: auto;
    margin: 0;
  }

  #aftercare .aftercare-dots > button {
    width: 44px;
    height: 44px;
    color: #92512e;
    filter: none;
  }

  #aftercare .aftercare-home-image {
    position: relative;
    order: 1;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 68% center;
  }

  #aftercare .aftercare-photo-shade {
    display: none;
  }

  #aftercare .aftercare-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 20px;
  }

  #aftercare .aftercare-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 110px;
    padding: 18px 14px;
    border-color: #d9cbb8;
  }

  #aftercare .aftercare-service:nth-child(odd) {
    padding-left: 0;
  }

  #aftercare .aftercare-service:nth-child(even) {
    border-right: 0;
    padding-right: 0;
  }

  #aftercare .aftercare-service:nth-child(-n + 2) {
    border-bottom: 1px solid #d9cbb8;
  }

  #aftercare .aftercare-service > span {
    font-size: 16px !important;
    line-height: 1.45;
    text-wrap: pretty;
  }

  #aftercare .aftercare-service > svg {
    width: 25px;
    height: 25px;
  }

  #aftercare .aftercare-service > b {
    display: none;
  }

  #aftercare .aftercare-help {
    padding-inline: 20px;
  }

  #aftercare .aftercare-help > summary {
    min-height: 64px;
    padding-block: 14px;
    font-size: 16px !important;
    line-height: 1.5;
    letter-spacing: 0;
  }

  #aftercare .aftercare-help-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 24px;
  }

  #aftercare .aftercare-help-body > p,
  #aftercare .aftercare-help-body a {
    font-size: 16px !important;
    line-height: 1.6;
  }

  #aftercare .aftercare-help-body > div {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

@media (max-width: 360px) {
  #rescue-story .rescue-story-shell,
  #alloy.material-intro .material-intro-grid,
  #care .care-material-shell,
  #steel-story .brand-origin-shell {
    padding-inline: 18px;
  }

  #rescue-story .rescue-adoption h2,
  #alloy h2,
  #steel-story .brand-origin-heading h2 {
    font-size: 38px;
  }

  #rescue-story .rescue-story-choice {
    gap: 16px;
  }

  #rescue-story .rescue-choice-number strong {
    font-size: 60px;
  }

  #rescue-story .rescue-story-carousel-controls {
    gap: 2px 7px;
  }

  #rescue-story .rescue-story-dots button {
    width: 26px;
  }

  #rescue-story .rescue-story-arrows {
    gap: 6px;
  }

  #care .care-material-copy {
    padding-inline: 18px;
  }

  #care .care-material-copy h3 {
    font-size: 32px;
  }

  #care .care-material-number {
    font-size: 56px;
  }

  #care .care-material-scenes > .care-material-arrows {
    top: calc((100vw - 38px) * .375);
  }

  #steel-story .brand-origin-home {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  #steel-story .brand-origin-home > img {
    width: 52px;
    height: 52px;
  }
}
