:root {
  --ink: #182d31;
  --muted: #465e61;
  --paper: #f4f7f5;
  --white: #fff;
  --line: #d9e5df;
  --deep: #123d39;
  --accent: #dcf088;
  --link: #185c50;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.65 system-ui, "PingFang SC", sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #996115; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h1 { font-size: clamp(2.15rem, 4.8vw, 3.9rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.42rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 3; padding: 8px 16px; background: white; }
.skip:focus { top: 0; }
main { min-height: 58vh; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.mast { min-height: 80px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { font-size: .82rem; color: var(--muted); }
.mark { display: grid; width: 42px; height: 42px; place-items: center; flex: none; border-radius: 12px; background: var(--deep); color: white; font-size: 1.25rem; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
nav a, .mast-account a { padding: 7px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"], .mast-account a:hover { background: #e4f1e8; color: #124d41; }
nav a[aria-current="page"] { font-weight: 700; }
.mast-account { display: flex; align-items: center; gap: 5px; }
.mast-account a:last-child { background: var(--deep); color: white; }

.home-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 53px); margin-top: 28px; background: var(--deep); color: #fff; border-radius: 25px; }
.eyebrow { font-size: .88rem; color: var(--link); font-weight: 720; margin-bottom: 8px; }
.hero-copy .eyebrow { color: var(--accent); }
.home-hero h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 1.06; }
.intro { color: #def0e6; margin: 17px 0 22px; }
.search { max-width: 580px; margin-top: 14px; }
.search label { display: block; font-size: .88rem; margin-bottom: 6px; }
.search > div { display: flex; gap: 8px; }
.search input { width: 100%; min-width: 0; border: 1px solid #afc9bf; border-radius: 9px; padding: 10px 13px; background: white; color: var(--ink); }
.search button, .detail { display: inline-block; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--deep); color: white; text-decoration: none; font-weight: 650; white-space: nowrap; }
.search button:hover, .detail:hover { background: #236457; }
.home-hero .search button { background: var(--accent); color: var(--deep); }
.hero-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-device { min-width: 0; background: #edf3ee; border-radius: 15px; overflow: hidden; color: var(--ink); text-decoration: none; }
.hero-device img { width: 100%; height: clamp(165px, 23vw, 300px); display: block; object-fit: cover; object-position: center 48%; }
.hero-device span { display: block; padding: 12px 13px; line-height: 1.4; }
.hero-device small { display: block; color: var(--link); font-size: .87rem; }
.hero-device strong { font-size: clamp(.91rem, 1.45vw, 1.13rem); }
.hero-device:hover strong { text-decoration: underline; }
.hero-device:nth-child(2) { margin-top: 32px; }

.record-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px 20px; margin: 18px 0 4px; padding: 16px 20px; border: 1px solid #dfd8bc; border-radius: 12px; background: #fcf8e7; color: #53492d; font-size: .9rem; }
.record-banner h2 { font-size: .95rem; line-height: inherit; }
.record-banner p + p { margin-top: 4px; }
.record-banner strong { color: #704519; }

.section { padding-block: 28px; }
.sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: grid; grid-template-columns: minmax(100px, 36%) 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.thumb { display: grid; place-items: center; min-height: 172px; padding: 14px; }
.thumb img { display: block; width: 100%; height: 144px; object-fit: contain; }
.yuwell-590 { background: #f2e8d9; }
.omron-j710 { background: #e5edf7; }
.cardtext { min-width: 0; padding: 18px; }
.cardtext h3 { margin: 7px 0; }
.cardtext h3 a { color: var(--ink); text-decoration: none; }
.cardtext h3 a:hover { text-decoration: underline; }
.chip { display: inline-block; border-radius: 6px; padding: 2px 8px; background: #e9f3ec; color: var(--link); font-size: .84rem; font-weight: 700; }
.cardtext p, .code { color: var(--muted); overflow-wrap: anywhere; font-size: .91rem; }
.cardtext .detail { margin-top: 10px; font-size: .86rem; padding: 5px 10px; color: var(--link); border-color: #b5cdc1; background: #fff; }
.cardtext .detail:hover { background: #e9f3ec; }
.empty { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.shortcut { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 36px; padding: 20px 24px; border-radius: var(--radius); background: #e4ede0; }
.shortcut h2 { margin-bottom: 5px; }
.shortcut p { color: var(--muted); }

.subhead { padding: 30px 32px; margin-top: 28px; border-radius: var(--radius); background: #e3eee8; }
.subhead p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.crumb { margin: 24px 0 12px; color: var(--muted); }
.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.pack { display: grid; place-items: center; padding: 22px; border-radius: var(--radius); }
.pack img { display: block; width: 100%; height: 390px; object-fit: contain; }
.facts, .reading, .material details { padding: clamp(16px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.facts h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 15px; }
dl { margin: 16px 0 0; }
dl div { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 8px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.material details { margin-bottom: 12px; }
.material details img { display: block; width: min(100%, 520px); margin-top: 12px; }
summary { cursor: pointer; font-weight: 650; color: var(--link); }
.reading { max-width: 800px; margin: 24px 0 36px; }
.reading > * + * { margin-top: 14px; }
.account-form { max-width: 540px; }
.account-form label:not(.consent) { display: grid; gap: 5px; margin-bottom: 14px; }
.account-form input:not([type=checkbox]) { min-width: 0; padding: 9px 11px; border: 1px solid #afc9bf; border-radius: 9px; }
.account-form .consent { display: block; margin: 12px 0; }
.account-form [role=status]:not(:empty) { margin-top: 10px; }

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-card { overflow: hidden; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.news-photo { min-width: 0; position: relative; min-height: 150px; }
.news-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-photo-balance img { object-position: center 20%; }
.news-photo-skin img { object-position: center 63%; }
.news-copy { padding: 18px; min-width: 0; }
.news-copy h2 { font-size: 1.25rem; margin-bottom: 9px; }
.news-source { margin: 12px 0 5px; color: var(--muted); font-size: .86rem; }
.news-credits { margin-bottom: 24px; font-size: .88rem; color: var(--muted); }

footer { background: #142e2d; color: #ecf4ef; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-block: 28px; }
.foot p { margin: 5px 0; }
.foot a { color: #d9efce; }
.footnote { grid-column: 1 / -1; border-top: 1px solid #52706a; padding-top: 12px; font-size: .9rem; }
.report-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.report-links a { max-width: 100%; }
.report-links img { display: block; width: auto; max-width: 100%; height: auto; max-height: 48px; }
.report-links a:focus-visible { outline-color: #dcf088; }

@media (max-width: 960px) {
  .mast { grid-template-columns: 1fr auto; padding-top: 13px; gap: 8px 12px; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 8px; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .home-hero, .profile, .cards { grid-template-columns: 1fr; }
  .hero-device:nth-child(2) { margin-top: 0; }
  .pack img { height: 260px; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 24px); }
  .mast { gap: 8px; }
  .brand { gap: 7px; }
  .brand strong { font-size: .83rem; }
  .brand small { font-size: .78rem; }
  .mark { width: 34px; height: 34px; }
  nav { gap: 3px; }
  nav a, .mast-account a { padding: 5px 6px; font-size: .83rem; }
  .home-hero { margin-top: 16px; padding: 17px; }
  .record-banner, .foot { grid-template-columns: 1fr; }
  .subhead { padding: 22px 18px; }
  .news-card { grid-template-columns: 1fr; }
  .news-photo { aspect-ratio: 16 / 9; }
  .shortcut { align-items: flex-start; flex-direction: column; }
  dl div { grid-template-columns: 5.3rem minmax(0, 1fr); }
}
