/* media.zendama.store — press and media kit.
   Builds on /assets/sites/shared.css (tokens are not redefined here).
   Ink and brass on ivory; dense, calm, fast to scan. */

/* Header: nine links need a tighter bar than the other sites. */
@media (min-width: 60.01rem) {
  body[data-site="media"] .site-nav {
    gap: clamp(0.55rem, 1.25vw, 1.5rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  body[data-site="media"] .brand-lockup__word {
    font-size: 1.2rem;
    letter-spacing: 0.24em;
  }
  body[data-site="media"] .site-header__bar {
    gap: 0.75rem;
  }
}
@media (min-width: 60.01rem) and (max-width: 74rem) {
  body[data-site="media"] .brand-lockup__site {
    display: none;
  }
  body[data-site="media"] .lang-switch a {
    padding-inline: 0.3rem;
  }
}
.lang-switch a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

/* Page head */
.m-head {
  border-bottom: 1px solid var(--line);
  background: var(--porcelain);
}
.m-head__inner {
  padding-block: clamp(2rem, 5vw, 3.75rem);
}
.m-head h1 {
  font-size: var(--step-3);
  max-width: 20ch;
}
html[lang="en"] .m-head h1 {
  max-width: 16ch;
}
.m-head .lead {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
}
.m-head .eyebrow {
  margin-bottom: 0.9rem;
}
.m-head__role {
  margin: 1.25rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--brass);
  font-size: var(--step--1);
  line-height: 1.6;
}
.m-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.m-head__actions .button {
  min-height: 3.5rem;
}
.m-head__portrait {
  margin-top: 2rem;
  max-width: 20rem;
}
.m-head__portrait img {
  width: 100%;
}
@media (min-width: 48rem) {
  .m-head--home .m-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: end;
  }
  .m-head__portrait {
    margin-top: 0;
    max-width: none;
  }
}

/* Two-column layout with sticky in-page navigation on desktop */
.m-layout {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--section);
}
.m-side__nav {
  display: none;
}
.m-side__title {
  margin: 0 0 0.6rem;
  font-family: var(--serif-latin);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
html[lang="ko"] .m-side__title,
html[lang="ja"] .m-side__title {
  font-family: var(--sans);
  letter-spacing: 0.12em;
}
.m-side__kit {
  margin-bottom: 2rem;
}
.m-side__mail {
  margin: 0.9rem 0 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}
.m-side__mail a {
  color: var(--ink);
}
@media (max-width: 63.99rem) {
  .m-side__kit .m-side__title,
  .m-side__mail {
    display: none;
  }
  .m-page--home .m-side {
    display: none;
  }
}
@media (min-width: 64rem) {
  .m-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .m-side {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  .m-side__nav {
    display: block;
    margin-bottom: 2rem;
  }
  .m-side__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line-strong);
  }
  .m-side__nav a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.9rem;
    margin-left: -1px;
    border-left: 1px solid transparent;
    font-size: var(--step--1);
    line-height: 1.45;
    text-decoration: none;
    color: var(--ink-soft);
  }
  .m-side__nav a:hover,
  .m-side__nav a:focus-visible {
    border-left-color: var(--ink);
    color: var(--ink);
  }
  .m-side__kit {
    margin-bottom: 0;
  }
}

/* Sections */
.m-section {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}
.m-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.m-section > h2 {
  margin-bottom: 1.25rem;
  font-size: var(--step-2);
}
.m-section h3 {
  font-size: var(--step-1);
}
.m-prose p,
.m-section > p {
  max-width: 44rem;
}
.m-note {
  max-width: 44rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.m-notice {
  max-width: 46rem;
  font-size: var(--step-0);
}
.m-notice p:last-child {
  margin-bottom: 0;
}
.m-updated {
  margin: 1rem 0 1.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.m-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.m-pending {
  color: var(--ink-soft);
  font-style: normal;
}
.m-list {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 44rem;
}
.m-list li {
  margin-bottom: 0.55rem;
}
.m-list li::marker {
  color: var(--brass);
}

/* Key facts */
.m-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fact;
  border-top: 1px solid var(--line-strong);
}
.m-facts li {
  counter-increment: fact;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.m-facts li::before {
  content: counter(fact, decimal-leading-zero);
  font-family: var(--serif-latin);
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--brass);
}
@media (min-width: 80rem) {
  .m-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    border-top: 0;
  }
  .m-facts li:nth-child(-n + 2) {
    border-top: 1px solid var(--line-strong);
  }
}

/* Tags (evidence status) */
.m-tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--porcelain);
}
.m-tag--ok {
  border-color: var(--ink);
  color: var(--ink);
}

/* Tables: real tables on wide screens, labelled cards on small ones */
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  line-height: 1.6;
}
.m-table thead th {
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.m-table tbody th,
.m-table tbody td {
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.m-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.m-table tbody tr > :last-child {
  padding-right: 0;
}
.m-table--timeline tbody th {
  width: 8.5rem;
  font-family: var(--serif-latin);
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.m-table--timeline tbody td:last-child {
  width: 11rem;
}
.m-table--titles tbody th {
  width: 26%;
  font-family: var(--serif);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.5;
}
.m-table--titles td:nth-child(3) {
  white-space: nowrap;
}
.m-table--coverage tbody th {
  width: 17%;
}
.m-table--coverage td:nth-child(2) {
  width: 17%;
}
.m-table--coverage td:nth-child(4) {
  width: 14%;
}
.m-table--coverage td:last-child {
  width: 15%;
}
@media (max-width: 47.99rem) {
  .m-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .m-table,
  .m-table tbody,
  .m-table tr,
  .m-table tbody th,
  .m-table tbody td {
    display: block;
    width: auto;
  }
  .m-table tbody tr {
    margin-bottom: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 2px solid var(--brass);
    background: var(--porcelain);
  }
  .m-table tbody th,
  .m-table tbody td,
  .m-table--timeline tbody th,
  .m-table--timeline tbody td:last-child,
  .m-table--titles tbody th,
  .m-table--coverage tbody th,
  .m-table--coverage td:nth-child(n) {
    width: auto;
    padding: 0.3rem 0;
    border: 0;
    white-space: normal;
  }
  .m-table tbody td {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  .m-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    padding-top: 0.1rem;
  }
  .m-table tbody th {
    margin-bottom: 0.35rem;
    font-size: var(--step-0);
  }
  .m-table--timeline tbody td:first-of-type {
    display: block;
    font-size: var(--step-0);
  }
  .m-table--timeline tbody td:first-of-type::before {
    content: none;
  }
  .m-table--timeline tbody td:last-child {
    display: block;
    padding-top: 0.5rem;
  }
  .m-table--timeline tbody td:last-child::before {
    content: none;
  }
}

/* Copy blocks */
.m-copy {
  max-width: 46rem;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
}
.m-copy__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.m-copy__head h3 {
  flex: 1;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.m-copy__count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.m-copy__btn {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--porcelain);
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.m-copy__btn:hover {
  background: transparent;
  color: var(--ink);
}
.m-copy__btn[data-state="done"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--porcelain);
}
.no-js .m-copy__btn {
  display: none;
}
.m-copy__text {
  padding: 1.1rem;
  user-select: all;
}
.m-copy__text p {
  max-width: none;
}
.m-copy__text p:last-child {
  margin-bottom: 0;
}
.m-copy__text--pre {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.m-copy__status {
  margin: 0;
  padding: 0 1.1rem;
  max-width: none;
  font-size: var(--step--1);
  color: var(--green);
}
.m-copy__status:not(:empty) {
  padding-bottom: 0.8rem;
}
.m-copy__scratch {
  position: fixed;
  top: 0;
  left: -200vw;
  opacity: 0;
}
.m-section + .m-section:has(> .m-copy) {
  border-top: 0;
  padding-top: 0;
}

/* Download buttons */
.m-dl {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.25rem 0.6rem 3rem;
  border: 1px solid var(--ink);
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf8f2' stroke-width='1.5'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E")
    no-repeat 0.95rem center / 1.35rem;
  color: var(--porcelain);
  text-decoration: none;
  line-height: 1.35;
  transition: background-color 0.3s var(--ease);
}
.m-dl:hover {
  background-color: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: var(--porcelain);
}
.m-dl__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.m-dl__meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.82;
}
.m-dl--ghost {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292c25' stroke-width='1.5'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
  color: var(--ink);
}
.m-dl--ghost:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf8f2' stroke-width='1.5'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
}
.m-side .m-dl {
  display: flex;
}
.m-inline-dl {
  margin: 1rem 0 0;
}

/* Quick links */
.m-quick {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.m-quick__link {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
html[lang="ja"] .m-quick__link {
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
}
.m-quick__link::after {
  content: "→";
  color: var(--brass);
}
.m-quick__link:hover {
  background: var(--porcelain);
}
.m-quick__name {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.3;
}
.m-quick__desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (max-width: 30rem) {
  .m-quick__link,
  html[lang="ja"] .m-quick__link {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .m-quick__desc {
    grid-column: 1;
    grid-row: 2;
  }
  .m-quick__link::after {
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Contact */
.m-contact-card {
  max-width: 44rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
}
.m-contact-card p:last-child {
  margin-bottom: 0;
}
.m-contact-card__mail,
.m-address__mail {
  font-family: var(--serif-latin);
  font-size: var(--step-2);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.m-contact-card__mail a,
.m-address__mail a {
  display: inline-block;
  padding-block: 0.4rem;
}
.m-addresses {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .m-addresses {
    grid-template-columns: 1.2fr 1fr;
  }
}
.m-address {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--porcelain);
}
.m-address--press {
  border-color: var(--ink);
  border-top-width: 3px;
}
.m-address__label {
  margin: 0 0 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.m-address__mail {
  margin: 0 0 0.6rem;
}
.m-address:not(.m-address--press) .m-address__mail {
  font-size: var(--step-1);
}
.m-address__note {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.m-address p:last-child {
  margin-bottom: 0;
}

/* Definition rows (books, brand name) */
.m-defs {
  margin: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.m-defs > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.m-defs dt {
  color: var(--ink-soft);
}
.m-defs dd {
  margin: 0;
}
.m-defs--wide {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  font-size: var(--step-0);
}
html[lang="en"] .m-defs > div {
  grid-template-columns: 9.5rem minmax(0, 1fr);
}
@media (max-width: 30rem) {
  .m-defs > div,
  html[lang="en"] .m-defs > div {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

/* Books */
.m-books {
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-book {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 48rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.m-book:first-child {
  border-top: 1px solid var(--line-strong);
}
.m-book__no {
  margin: 0;
  font-family: var(--serif-latin);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--brass);
}
.m-book__title {
  font-family: "Noto Serif JP", var(--serif);
  line-height: 1.45;
}
.m-book__sub {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
}
.m-book__gloss {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Photos */
.m-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 1.5rem;
  align-items: start;
}
.m-photos--two {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 20rem));
}
.m-photos__group {
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: 5.5rem;
}
.m-photos__group:first-child {
  margin-top: 0;
}
.m-photos__count {
  margin-left: 0.4rem;
  font-family: var(--serif-latin);
  font-size: var(--step-0);
  color: var(--brass);
}
.m-photo {
  margin: 0;
}
.m-photo__frame {
  background: var(--sage);
}
.m-photo__frame img {
  width: 100%;
}
.m-photo__title {
  margin: 0.75rem 0 0.4rem;
  font-weight: 600;
  line-height: 1.45;
}
.m-photo__meta {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.m-photo__meta > div {
  display: flex;
  gap: 0.5rem;
}
.m-photo__meta dt {
  min-width: 3rem;
}
.m-photo__meta dd {
  margin: 0;
  color: var(--ink);
}
.m-photo .m-dl {
  display: flex;
}
.m-credit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  max-width: 46rem;
  margin-top: 1.5rem;
  padding: 1rem 1rem 1rem 1.25rem;
  border-left: 2px solid var(--brass);
  background: var(--porcelain);
}
.m-credit__label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.m-credit__line {
  margin: 0;
  font-weight: 600;
  user-select: all;
}
.m-credit .m-copy__status {
  grid-column: 1 / -1;
  padding: 0;
}

/* Brand */
.m-logos {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 46rem;
}
@media (min-width: 40rem) {
  .m-logos {
    grid-template-columns: 1fr 1.6fr;
  }
}
.m-logo {
  margin: 0;
}
.m-logo__stage {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--porcelain);
}
.m-logo__stage img {
  width: 6rem;
}
.m-logo__stage .m-logo__word {
  width: min(100%, 17rem);
}
.m-logo figcaption {
  margin-top: 0.75rem;
}
.m-logo .m-dl {
  display: flex;
}
.m-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-swatches li {
  display: grid;
  font-size: var(--step--1);
  line-height: 1.5;
}
.m-swatch {
  height: 4.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line-strong);
}
.m-swatch--burgundy {
  background: var(--burgundy);
}
.m-swatch--ivory {
  background: var(--ivory);
}
.m-swatch--porcelain {
  background: var(--porcelain);
}
.m-swatch--sage {
  background: var(--sage);
}
.m-swatch--green {
  background: var(--green);
}
.m-swatch--brass {
  background: var(--brass);
}
.m-swatch--ink {
  background: var(--ink);
}
.m-swatch__name {
  font-weight: 600;
}
.m-swatch__hex {
  font-family: var(--serif-latin);
  font-size: var(--step-0);
  letter-spacing: 0.06em;
}
.m-swatch__role {
  color: var(--ink-soft);
}

/* Language chooser (root) and 404 */
.m-choose {
  padding-block: clamp(3rem, 8vw, 6rem) var(--section);
}
.m-choose h1 {
  font-size: var(--step-3);
}
.m-choose__lead {
  margin-top: 1.5rem;
}
.m-choose__lead p {
  color: var(--ink-soft);
}
.m-choose__list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .m-choose__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.m-choose__link {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--porcelain);
  text-decoration: none;
}
.m-choose__link:hover {
  background: var(--ink);
  color: var(--porcelain);
}
.m-choose__name {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
}
.m-choose__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  opacity: 0.8;
}
.m-choose__mail {
  font-family: var(--serif-latin);
  font-size: var(--step-1);
}
.m-choose__mail a {
  display: inline-block;
  padding-block: 0.6rem;
}

/* Links inside running text need a comfortable target on touch screens. */
.site-footer li a {
  display: inline-block;
  padding-block: 0.3rem;
}
.site-footer__top {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 48rem) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small phones: the bar holds the lockup, three languages and the menu. */
@media (max-width: 30rem) {
  body[data-site="media"] .site-header__bar {
    gap: 0.4rem;
  }
  body[data-site="media"] .brand-lockup {
    gap: 0.45rem;
    min-width: 0;
  }
  body[data-site="media"] .brand-lockup svg {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
  }
  body[data-site="media"] .brand-lockup__word {
    font-size: 1rem;
    letter-spacing: 0.16em;
  }
  body[data-site="media"] .brand-lockup__site {
    padding-left: 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  body[data-site="media"] .site-tools {
    gap: 0.1rem;
  }
  body[data-site="media"] .lang-switch a {
    padding-inline: 0.3rem;
    letter-spacing: 0.04em;
  }
}

/* Comfortable targets */
.m-side__nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.m-contact-card .text-link,
.m-address__mail a,
.m-contact-card__mail a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

/* Japanese pages: the shared --sans stack lists a Korean system font before
   the Japanese ones, which swaps in Korean-width punctuation (・（）、).
   Put the Japanese faces first on this site without touching the token. */
html[lang="ja"] body[data-site="media"],
body[data-site="media"] [lang="ja"] {
  font-family:
    "Manrope", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", "Apple SD Gothic Neo", system-ui, sans-serif;
}
html[lang="ja"] body[data-site="media"] :is(h1, h2, h3, h4),
body[data-site="media"] :is(h1, h2, h3, h4)[lang="ja"],
body[data-site="media"] :is(h1, h2, h3, h4) [lang="ja"] {
  font-family: "Editorial", "Noto Serif JP", "Noto Serif KR", Georgia, serif;
}
html[lang="ja"] .m-quick__name,
html[lang="ja"] .m-choose__name {
  font-family: "Editorial", "Noto Serif JP", Georgia, serif;
}

/* The display face has old-style figures ("10" reads as "IO"). */
body[data-site="media"] :is(h1, h2, h3, .m-quick__name) {
  font-variant-numeric: lining-nums;
}

/* Collapsible plain-text block */
.m-details {
  max-width: 46rem;
}
.m-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}
.m-details > summary::-webkit-details-marker {
  display: none;
}
.m-details > summary::before {
  content: "+";
  font-family: var(--serif-latin);
  font-size: 1.2rem;
  line-height: 1;
}
.m-details[open] > summary::before {
  content: "–";
}
.m-details[open] > summary {
  margin-bottom: 0.75rem;
}
.m-facts-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}
.m-facts-actions .m-details[open] {
  flex-basis: 100%;
}

/* Table cells keep their content in one grid item on the card layout. */
.m-cell {
  display: block;
  min-width: 0;
}
.m-cell > .m-tag {
  vertical-align: top;
}
@media (min-width: 48rem) {
  .m-table--serial td:nth-child(4) {
    width: 24%;
  }
  .m-table--serial td:nth-child(2) {
    width: 15%;
  }
}

/* The shared header uses backdrop-filter, which makes it the containing block
   for the fixed mobile menu and clips the menu to the bar's height. Drop the
   filter where the menu is an overlay so it can cover the viewport. */
@media (max-width: 60rem) {
  body[data-site="media"] .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ivory);
  }
}
