/* Shared layout for the passport, village services and household settings. */
.np-page {
  --np-cream: #fff4dd;
  --np-ink: #142f46;
  --np-ice: #d3e5e9;
  --np-gold: #f7cf83;
  --np-line: #496275;
  max-width: 900px;
  margin-inline: auto;
  padding-bottom: 1.5rem;
}
.np-page [hidden] { display: none !important; }
.np-page>:first-child { margin-top: 0; }
.np-page :is(button,summary,select,input:not([type="checkbox"])) { min-height:48px; }
.np-page :is(button,summary):focus-visible,
.np-page :is(input,select,textarea):focus-visible {
  outline: 3px solid #f7cf83;
  outline-offset: 3px;
}
.np-page h1,.np-page h2,.np-page h3 { overflow-wrap:anywhere; }
.np-page .section-head { align-items:center; gap:.65rem; }
.np-page .section-head h2, .np-page h3 { margin:0; }
.np-page .panel,.np-page .quiet-details {
  border:1px solid var(--np-line);
  border-radius:18px;
  background:#1a394f;
  color:#fff4dd;
  box-shadow:none;
}
.np-page .panel { padding:clamp(16px,3vw,26px); }
.np-page .np-page-heading {
  display:grid;
  grid-template-columns:58px 1fr;
  align-content:center;
  column-gap:1rem;
  row-gap:0;
  margin-bottom:1rem;
  min-height:86px;
}
.np-page .np-page-heading h2 {
  align-self:end;
  font:700 clamp(1.65rem,4vw,2.65rem)/1.15 Georgia,serif;
  letter-spacing:-.03em;
  color:var(--np-cream);
}
.np-page .np-page-heading .np-page-seal { width:56px;height:56px;grid-row:1/3; }
.np-page .np-page-heading small { align-self:start;color:var(--np-ice);font-size:.9rem; }
.np-page .notice,.np-page .muted { font-size:clamp(.92rem,2vw,1rem);line-height:1.55; }
.np-page :is(.notice,[role="status"]):empty { margin:0;padding:0; }
.np-page .quiet-details { margin-block:.75rem;overflow:visible; }
.np-page details>summary {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:.8rem 1rem;
  color:var(--np-cream);
  font-size:1.06rem;
  font-weight:750;
  list-style:none;
  cursor:pointer;
}
.np-page details>summary::-webkit-details-marker {display:none;}
.np-page details>summary .disclosure { display:none; }
.np-page details>summary::after {
  content:"";
  width:8px;height:8px;
  margin-left:auto;margin-right:3px;
  border:solid var(--np-gold);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.np-page details[open]>summary::after { transform:rotate(225deg); }
.np-page .details-body { padding:0 1rem 1rem; }
.np-page .np-fold .details-body>.panel { background:transparent;border:none;padding:0;margin:0; }
.np-page input,.np-page select,.np-page textarea { font-size:1rem;border-radius:10px;max-width:100%; }
.np-page label { font-size:1rem;color:var(--np-ice); }
.np-page .pill { white-space:normal;text-align:center;font-size:.88rem; }
.np-page .season-hero {
  position:relative;display:grid;align-items:end;min-height:clamp(165px,27vw,230px);
  margin:1rem 0 1.25rem;overflow:hidden;border:1px solid #5b6c78;border-radius:20px;background:#173648;
}
.np-page .season-hero img { position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 43%; }
.np-page .season-hero>div {
  z-index:1;position:relative;inset:auto;width:100%;padding:clamp(22px,4vw,38px);
  background:linear-gradient(0deg,#0b2439fa,#112b43d9 64%,transparent);
}
.np-page .season-hero h1 { font:700 clamp(1.85rem,5vw,3.2rem)/1 Georgia,serif;letter-spacing:-.04em;color:var(--np-cream); }
.np-page .season-hero p { margin-top:.45rem;color:#fff4dd;font-size:1rem; }

[data-view="passport"].np-page .passport-banner {
  display:flex;align-items:center;gap:1.2rem;background:transparent;border:0;box-shadow:none;padding:.5rem 0 1.15rem;
}
.np-page .passport-banner img { width:clamp(54px,9vw,74px);height:clamp(60px,10vw,84px);object-fit:contain; }
.np-page .passport-banner h2 { margin:0;font:700 clamp(1.65rem,4vw,2.65rem)/1.12 Georgia,serif; }
.np-page .collection-switch {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #4a6474;
  background:#102a3b;padding:4px;gap:3px;border-radius:16px;
}
.np-page .collection-switch button { border:0;box-shadow:none;border-radius:12px;color:var(--np-cream);background:transparent;font-size:1rem; }
.np-page .collection-switch button[aria-pressed="true"] { color:var(--np-ink);background:var(--np-cream); }
.np-page :is(.stamp-grid,.achievement-grid,.charm-grid,.shop-grid) { gap:clamp(8px,2vw,16px); }
.np-page :is(.stamp-grid,.achievement-grid) { grid-template-columns:repeat(auto-fit,minmax(min(124px,45%),1fr)); }
.np-page #passstampspanel .section-head,.np-page #passtreasurepanel>.section-head { margin-top:1.25rem; }
.np-page .quiet-details .quiet-details { margin-bottom:0; }
.np-page .stamp,.np-page .ornament { min-width:0; }
.np-page .tree-panel .tag { display:none; }

.np-page .cam-disclaimer { margin:0 0 .7rem; }
.np-page .np-camera-stage { margin:0;padding:clamp(12px,2vw,20px); }
.np-page .np-camera-stage .cam { margin:10px 0;overflow:hidden;border-radius:12px; }
.np-page .np-camera-stage #camnote { margin-top:.45rem; }
.np-page .camtabs {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;
  overflow:visible;margin:1rem 0;
}
.np-page .camtabs button {
  display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0;overflow:hidden;
  border:1px solid #526d7d;background:#1a394f;color:var(--np-cream);border-radius:12px;box-shadow:none;
}
.np-page .camtabs button img { width:100%;height:clamp(45px,9vw,86px);border-radius:0;object-fit:cover; }
.np-page .camtabs button span { padding:.5rem .3rem;font-size:.92rem;line-height:1.2; }
.np-page .camtabs button[aria-pressed="true"] { outline:2px solid var(--np-gold);outline-offset:-2px;color:var(--np-gold); }
.np-page .camtabs button:focus-visible { outline-offset:3px; }
.np-page .camera-control-row { flex-wrap:wrap; }
.np-page .camera-control-row button { min-height:48px;font-size:1rem; }
.np-page #hideobject { min-height:52px;min-width:52px; }
.np-page .hide-note { gap:.75rem;margin-top:1rem;padding:1rem;border-radius:16px;color:var(--np-cream);background:#1a394f; }
.np-page .hide-note p { font-size:1rem; }

.np-page .advent-grid { grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(6px,1.8vw,12px); }
.np-page .advent-door { min-width:0;min-height:76px; }
.np-page .advent-door:disabled { opacity:.8; }
.np-page .letter-card { scroll-margin:1rem; }
.np-page .letter-card>p {font:1.1rem/1.65 Georgia,serif;}
.np-page .shop-grid { grid-template-columns:repeat(auto-fit,minmax(min(150px,45%),1fr)); }
.np-page .shop-item { min-width:0; }
.np-page .shop-item button { white-space:normal;line-height:1.25; }
.np-page #shopconfirm { border:2px solid #f7cf83; }
.np-page #shopconfirm .row { margin-top:.8rem; }
.np-page #shopfeedback:empty { display:none; }

.np-page #lookup .row { align-items:stretch; }
.np-page #wishfields { display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem; }
.np-page #wishfields label {margin:0; }
.np-page #wishfields input {margin-top:.35rem;}
.np-page #wishfields label:first-child {grid-column:1/-1;}
.np-page #wishstatus,.np-page #profilehint,.np-page #pinmsg,.np-page #parentmsg {margin-top:.5rem;}
.np-page #nickname[aria-invalid="true"] { border:2px solid #f2a4a4; }
.np-page #profileadvent { margin-top:.4rem; }
.np-page #profilehint:not(:empty) { font-weight:650; }
.np-page #report .report,.np-page #otherreport .report {
  border:1px solid #dbc38c;border-left:5px solid #bc3e48;border-radius:12px;padding:clamp(18px,3vw,28px);
  background:#fff4dd;color:#263a42;text-align:left;box-shadow:0 5px 12px #07162225;
}
.np-page .report h2 { font:700 1.8rem/1.2 Georgia,serif;margin:.4rem 0;color:#142f46; }
.np-page .report p { margin:.3rem 0; }
.np-page .rankline { gap:.5rem;grid-template-columns:2.3rem minmax(0,1fr) auto; }
.np-page .rankline button { overflow-wrap:anywhere; }
.np-page .np-wish-empty,.np-page #wishstatus { color:var(--np-ice);font-size:1rem; }
.np-page #otherreport:not(:empty) { margin:.75rem 0; }
.np-page #profileadvent,.np-page #lock { background:transparent;color:var(--np-ice);border:1px solid #5c7989;box-shadow:none; }
.np-page #locked { max-width:480px;margin:0 auto; }
.np-page #pin { width:min(100%,12rem);display:block;letter-spacing:.28em; }
.np-page #pinform {margin: .5rem 0 .85rem; }
.np-page #locked .muted {font-size:.92rem; }
.np-page #parentcontent .formgrid {gap:.6rem 1rem;}
.np-page #parentcontent [aria-pressed="true"] { background:#fff4dd;color:#142f46; }
.np-page #parentcontent .row {align-items:center;flex-wrap:wrap;}
.np-page .setting-toggle {min-height:48px;}
@media(max-width:540px) {
  .np-page .advent-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .np-page #wishfields {grid-template-columns:1fr;}
  .np-page .collection-switch button { padding-inline:.3rem; }
  .np-page .formgrid { grid-template-columns:1fr; }
  .np-page .shop-item {padding:10px;}
  .np-page .np-page-heading {grid-template-columns:46px 1fr;min-height:64px;gap:0 .7rem;}
  .np-page .np-page-heading .np-page-seal {width:46px;height:46px;}
  .np-page .camtabs button span { font-size:.88rem; }
  .np-page .hide-note { padding:.7rem; }
}
