.mobile-view .header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  padding-block-start: env(safe-area-inset-top);
}
.mobile-view .header .utility,
.mobile-view .header .header-shop,
.mobile-view .header .header-mail { display: none; }
.mobile-view .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: min(100%, 680px);
  min-height: 68px;
  padding-inline: 12px;
  gap: 5px;
}
.mobile-view .header-inner .wordmark { gap: 7px; font-size: 1.28rem; letter-spacing: .14em; }
.mobile-view .header-inner:has(#header-logout:not([hidden])) { grid-template-columns: auto minmax(0, 1fr) auto; }
.mobile-view .header-inner .wordmark { justify-self: center; }
.mobile-view .header-inner .wordmark-small { font-size: .53rem; }
.mobile-view .header-inner .brandmark { width: 38px; height: 38px; }
.mobile-view .header-actions { justify-self: end; gap: 4px; }
.mobile-view .header :is(.menu-toggle, .theme-toggle, #header-account) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--soft-surface);
  color: var(--accent);
}
.mobile-view .header .menu-toggle { width: 46px; justify-self: start; }
.mobile-view .header-logout { min-height: 44px; padding-inline: 7px; font-size: .78rem; border-radius: 12px; }
@media (max-width: 370px) {
  .mobile-view .header :is(.theme-toggle, #header-account) { width: 36px; }
}
.mobile-view .header :is(.menu-toggle, .theme-toggle, #header-account):hover { border-color: var(--accent); }
.mobile-view .menu-toggle > [aria-hidden] { font-size: 0; }
.mobile-view .menu-toggle > [aria-hidden]::before {
  display: block;
  content: "";
  width: 19px;
  height: 2px;
  border-radius: 2px;
  margin-block-end: 6px;
  background: currentColor;
  box-shadow: 0 6px currentColor;
}
.mobile-user-icon { position: relative; display: block; width: 22px; height: 22px; }
.mobile-user-icon::before, .mobile-user-icon::after { content: ""; position: absolute; border: 1.8px solid currentColor; }
.mobile-user-icon::before { width: 7px; height: 7px; inset: 1px 0 auto; margin-inline: auto; border-radius: 50%; }
.mobile-user-icon::after { width: 15px; height: 7px; inset: auto 0 1px; margin-inline: auto; border-radius: 9px 9px 4px 4px; }
.mobile-menu-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 13px 13px; }
.mobile-menu-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .82rem;
  color: var(--accent);
}
.mobile-view .back-to-top {
  border-color: var(--line);
  border-radius: 15px;
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 4px 16px #24242424;
}

.mobile-home {
  --edge: clamp(14px, 4.6vw, 24px);
  --home-soft: #f2f2f2;
  --home-sea: #edf6f6;
  --home-deep: #363636;
  --home-border: #dadada;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(100%, 680px) minmax(0, 1fr);
  padding-block: 16px 35px;
}
.mobile-home > * { grid-column: 2; min-width: 0; }
:root[data-theme="night"] .mobile-home {
  --home-soft: #252525;
  --home-sea: #162f39;
  --home-deep: #e1e1e1;
  --home-border: #383838;
}
.pia-home-inset { margin-inline: var(--edge); }
.pia-chevron {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(-45deg);
}
.pia-carousel { min-width: 0; }
.pia-carousel-track {
  position: relative;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0 var(--edge);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.pia-carousel-track:focus-visible, .pia-video-rail:focus-visible { outline-offset: -3px; }
.pia-carousel-track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.pia-carousel-track > li > .pia-feature-card { height: 100%; }
.pia-carousel-hero .pia-carousel-track {
  align-items: flex-start;
  gap: clamp(6px, 2vw, 10px);
  overflow-y: hidden;
}
.pia-hero-card {
  --main-banner-min-height: 140px;
  --main-banner-ratio: 11 / 5;
}
.pia-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px var(--edge) 0;
  padding-inline: 4px;
}
.pia-banner-controls { justify-content: center; gap: 5px; margin-inline: 0; padding-inline: 0; }
.pia-position {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--home-soft);
  color: var(--home-deep);
  font-size: .82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pia-position span { font-weight: 500; color: var(--muted); }
.pia-carousel-buttons { display: flex; gap: 3px; }
.pia-carousel-buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--accent);
  background: transparent;
}
.pia-carousel-buttons button:hover { border-color: var(--home-border); background: var(--home-soft); }
.pia-carousel-buttons button[data-step="-1"] .pia-chevron { transform: rotate(135deg); }
.pia-carousel-buttons .pia-chevron { width: 9px; height: 9px; border-width: 0 2px 2px 0; }
.pia-carousel-buttons [data-pause] i { width: 10px; height: 13px; border-inline: 3px solid currentColor; }
.pia-carousel-buttons [data-pause][aria-pressed="true"] i {
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right: 0;
  border-left: 10px solid currentColor;
}
.pia-feature-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  width: 100%;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #343434;
  text-align: left;
}
.pia-slide-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}
.pia-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #1f1f1ffb, #242424c4 41%, #34343430 92%);
}
.pia-hero-card:focus-visible, .pia-feature-card:focus-visible { outline-color: #fff; outline-offset: -4px; }

.mobile-home > .pia-ad { grid-column: 1 / -1; margin-block-start: 19px; }
.pia-ad a { display: block; border-block: 1px solid var(--home-border); background: var(--home-soft); }
.pia-ad a:focus-visible { outline-offset: -3px; }
.pia-ad-art { display: block; padding-block: 5px; background: var(--ad-art) center / 100% 100% no-repeat; }
.pia-ad img { display: block; width: 100%; height: auto; aspect-ratio: auto 4 / 1; background: var(--home-soft); }
.pia-ad-line { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; color: var(--home-deep); font-size: .81rem; }
.pia-ad-line strong { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pia-ad-tag { padding: 2px 5px; border: 1px solid var(--home-border); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: .67rem; }

.pia-home-notices, .pia-home-news { margin-block-start: 34px; }
.pia-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 6px; }
.pia-home-heading h2 { margin: 0; font-size: clamp(1.27rem, 4.9vw, 1.57rem); letter-spacing: -.04em; }
.pia-home-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding-inline: 7px;
  border-radius: 10px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.pia-home-heading a:hover { background: var(--home-soft); }
.pia-notices, .pia-news-cards, .pia-video-list { margin: 0; padding: 0; list-style: none; }
.pia-notices { border-top: 1px solid var(--line); }
.pia-notices li + li { border-top: 1px solid var(--line); }
.pia-notices a {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 9px 7px 9px 0;
  border: 0;
  text-align: left;
  background: transparent;
}
.pia-notices a:hover { background: var(--home-soft); }
.pia-notices a > .pia-chevron { color: var(--accent); }
.pia-notice-badge {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  height: 38px;
  border-radius: 11px 11px 11px 3px;
  color: var(--home-deep);
  background: var(--home-soft);
  font-size: .74rem;
  font-weight: 850;
}
.pia-notice-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.pia-notice-copy strong, .pia-notice-copy > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pia-notice-copy strong { font-size: .93rem; }
.pia-notice-copy > span, .pia-home-empty { color: var(--muted); font-size: .84rem; }
.pia-home-empty { margin-block: 0; padding: 16px 12px; border-radius: 10px; background: var(--soft-surface); }

.pia-home-stories { margin-block-start: 30px; padding-block: 14px 12px; background: var(--home-sea); }
.pia-feature-card {
  min-height: clamp(180px, 48vw, 255px);
  padding: 17px 18px;
  border-radius: 9px 19px 19px 19px;
  background: #254c51;
}
.pia-feature-card::after { background: linear-gradient(80deg, #142e42fa, #153046d4 39%, #1f484c40 84%); }
.pia-feature-copy { display: grid; gap: 6px; justify-items: start; max-width: 90%; }
.pia-story-tag { color: var(--accent); font-size: .74rem; font-weight: 800; }
.pia-feature-card .pia-story-tag { color: #b7f1eb; }
.pia-feature-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(1.2rem, 4.9vw, 1.58rem);
  line-height: 1.27;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.pia-story-date { color: var(--muted); font-size: .76rem; }
.pia-feature-card .pia-story-date { color: #f5f5f5; }
.pia-feature-more { display: flex; gap: 8px; align-items: center; margin-block-start: 5px; color: #fff; font-size: .8rem; font-weight: 800; }

.pia-home-videos { margin-block-start: 16px; padding-block: 13px 19px; background: var(--home-soft); }
.pia-video-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr)); gap: 14px; }
.pia-video-list.pia-video-rail {
  display: flex;
  gap: 11px;
  padding: 0 var(--edge) 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--home-border) transparent;
}
.pia-video-rail li { flex: 0 0 min(86%, 300px); min-width: 0; scroll-snap-align: start; }
.pia-video-card { display: grid; gap: 7px; }
.pia-video-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .91rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pia-video-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  color: white;
  background: linear-gradient(140deg,#4d4d4d,#326370);
}
.pia-video-card .pia-video-thumbnail img { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; }
.pia-video-thumbnail i {
  position: absolute;
  display: grid;
  place-items: center;
  width: 41px;
  height: 34px;
  border: 1px solid #ffffff74;
  border-radius: 10px;
  background: #202020d9;
}
.pia-video-thumbnail i::before { content: ""; border: 6px solid transparent; border-right: 0; border-left: 10px solid currentColor; }
.pia-home-videos .pia-home-empty { margin-inline: var(--edge); }

.pia-news-cards { display: grid; gap: 9px; }
.pia-news-cards li { min-width: 0; }
.pia-news-cards a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: var(--surface);
  text-align: left;
}
.pia-news-cards li:first-child a { background: var(--home-soft); }
.pia-news-cards a:hover { border-color: var(--accent); }
.pia-news-cards a > img { grid-column: 1 / -1; width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.pia-news-card-copy { display: grid; gap: 6px; padding: 13px; }
.pia-news-card-copy strong { font-size: .98rem; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.pia-news-card-copy .pia-news-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
}
.pia-news-cards a > .pia-chevron { color: var(--accent); }
.pia-mobile-launcher {
  display: grid;
  gap: 13px;
  margin-block-start: 32px;
  padding: 16px;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: var(--home-soft);
}
.pia-launcher-copy { display: flex; gap: 12px; align-items: center; }
.pia-launcher-copy img { object-fit: contain; }
.pia-launcher-copy h2 { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.pia-launcher-copy p { margin: 5px 0 0; font-size: .83rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.pia-launcher-links { display: flex; flex-wrap: wrap; gap: 7px; }
.pia-launcher-links a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
