/* Edition 4: a colour-indexed field guide, with the original food artwork. */
.zk-head {
  position: relative;
  min-height: 88px;
  margin-bottom: 6px;
  padding: 7px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border: 2px solid #195c65;
  border-radius: 18px 18px 8px 8px;
  background: #d8eee3 url('../ui/design4-book.webp') center right / cover no-repeat;
  box-shadow: 0 3px 0 #195c6526;
  color: #173e50;
  overflow: hidden;
}
.zk-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#f5faeefa 0%,#f5faeede 40%,#f5faee00 70%); pointer-events: none; }
.zk-h { position: relative; font-size: 27px; line-height: 1.2; color: #173e50; }
.zk-h::before { content: 'ながさきの たからもの'; display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: #236b68; }
.zk-meter { position: relative; gap: 7px; }
.zk-meter__t { font-size: 12px; color: #28565b; }
.zk-meter__n { font-size: 19px; color: #174a53; }
.zk-meter__bar { width: 48px; height: 6px; background: #b9d8c6; }
.zk-meter__bar > i { background: #268a78; }
.zk-search { margin-bottom: 6px; }
.zk-search__in { border: 2px solid #5c9697; border-radius: 10px; background: #fffdf3; box-shadow: none; }
.zk-chips { gap: 4px; margin-bottom: 6px; }
.c-chip.zk-chip {
  min-height: 44px;
  border: 1px solid var(--c, #4b8a82);
  border-bottom: 3px solid var(--c, #4b8a82);
  border-radius: 9px 9px 5px 5px;
  background: var(--c-tint, #e5f3e5);
  color: var(--c-deep, #1d665c);
  box-shadow: none;
}
.c-chip.zk-chip[aria-pressed="true"] { border-color: var(--c-deep,#175f66); border-bottom-color: #efc35b; background: var(--c-deep,#175f66); color: #fffdf3; box-shadow: none; }
.zk-chip__t { font-size: 14px; }
.zk-chip__n { font-size: 12px; opacity: .84; }
.zk-state { height: 46px; margin-bottom: 8px; border: 1px solid #95b6b1; border-radius: 9px; background: #fffdf3; }
.zk-state__btn + .zk-state__btn { border-left-color: #cadad0; }
.zk-state__btn[aria-checked="true"] { background: #195c65; }
.zk-state__btn--met[aria-checked="true"] { background: #167d95; }
.zk-state__btn--eaten[aria-checked="true"] { background: #997018; }
.zk-sech { height: 44px; border: 0; border-radius: 5px 14px 14px 5px; background: var(--c-deep); color: #fffdf3; box-shadow: 0 3px 0 #173e5014; }
.zk-sech::before { width: 4px; background: #ffd665; }
.zk-sech__name, .zk-sech__cnt, .zk-sech__m { color: #fffdf3; }
.zk-sech__bar { background: #ffffff45; }
.zk-sech__bar > i { background: #ffd665; }
.zk-sech__reps { border-radius: 9px; background: #fffdf3df; }
.zk-sech__comp { color: #655019; }

/* Each card reads as a numbered guidebook entry, rather than a white UI tile. */
.card, .card[data-state="met"], .card[data-state="eaten"] {
  border: 2px solid var(--c-deep, #326a72);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--c-tint,#e2efdf) 0 68%, #fffdf3 68%);
  box-shadow: 0 3px 0 #173e5021;
  color: #173e50;
}
.card__band { height: 5px; background: var(--c-deep,#326a72); opacity: 1; }
.card__no, .card[data-state="met"] .card__no, .card[data-state="eaten"] .card__no {
  height: 19px;
  padding: 0 5px;
  border-radius: 3px 3px 7px 3px;
  background: var(--c-deep,#326a72);
  color: #fffdf3;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: .02em;
}
.card__pic { isolation: isolate; }
.card__pic::before { left: 7%; right: 7%; top: 9%; bottom: 5%; height: auto; border-radius: 50%; background: #fffdf3b8; z-index: -1; }
.card__name { padding-top: 3px; border-top: 1px solid #173e5020; }
.card__seal { border: 2px solid currentColor; background: #fffdf3; transform: rotate(-10deg); }
.card__seal--met { color: #167d95; }
.card__seal--eaten { color: #b07d17; background: #fff0ae; }
.card__mark--fresh { border: 1px solid #fffdf3; background: #bf593e; box-shadow: none; transform: rotate(-5deg); }
.card[data-state="locked"] { border: 2px solid #bb963e; border-radius: 12px; background: linear-gradient(150deg,#2a5764,#123d4b); box-shadow: 0 3px 0 #173e5021; }
.card[data-state="locked"] .card__no { background: #ffd665; color: #173e50; }
.card[data-state="locked"] .card__name { border-top-color: #f4d7826b; }
.card--mini { border-radius: 10px; }
.zk-grid .card:not(.card--mini) .card__pic { width: min(72px,100%); }
.zk-empty__say { border: 2px solid #4a8b87; border-radius: 14px; background: #fffdf3; box-shadow: 0 3px 0 #173e5014; }
.zk-empty__say::before { border-width: 2px; border-color: #4a8b87; background: #fffdf3; }
.zk-fnote { border: 1px solid #84aaa5; border-left: 5px solid #347a71; border-radius: 9px; background: #edf5e7; }

/* Ingredient pages: a printed category plate and a numbered chapter header. */
.sht-panel { border: 2px solid #195c65; background: #fffdf3; }
.sht-panel .c-sheet__head { border-bottom: 3px solid #e4bf5c; background: #195c65; }
.sht-panel .c-sheet__x, .sht-panel .sht-prev, .sht-panel .sht-next { color: #fffdf3; }
.sht-panel .sht-prev:disabled, .sht-panel .sht-next:disabled { opacity: .35; }
.sht-pos { display: flex; flex-direction: column; justify-content: center; gap: 1px; color: #fffdf3; font-size: 16px; line-height: 1.1; }
.sht-pos::before { content: 'ずかん NO.'; color: #e8d48b; font-size: 10px; letter-spacing: .08em; }
.sht-page { grid-template-columns: 148px minmax(0,1fr); column-gap: 12px; }
.sht-stage {
  width: 148px;
  height: 148px;
  border: 2px solid var(--c-deep,#276a74);
  border-radius: 22px 22px 36px 22px;
  background: var(--c-tint,#e5efdc);
  box-shadow: 0 4px 0 #173e5015;
}
.sht-stage::before { left: 10%; right: 10%; top: 12%; bottom: 9%; height: auto; border-radius: 50%; background: #fffdf3a8; }
.sht-img { width: 132px; height: 132px; }
.sht-hero[data-rare="3"] .sht-stage, .sht-hero[data-rare="4"] .sht-stage { border-color: #ab8130; box-shadow: 0 4px 0 #ab813029; }
.sht-hero[data-locked="1"] .sht-stage { background: #174854; border-color: #d6b758; box-shadow: 0 4px 0 #173e501a; }
.sht-hero[data-locked="1"] .sht-stage::before { background: #ffffff0a; }
.sht-name { padding-bottom: 4px; border-bottom: 3px solid var(--c,#2a8988); color: #173e50; }
.sht-cat { border: 1px solid var(--c-deep); border-radius: 5px; background: var(--c-deep); color: #fffdf3; }
.sht-stars { color: #a16f0b; letter-spacing: 2px; }
.sht-season, .sht-badge, .sht-solved, .sht-seek { border-radius: 8px; }
.sht-season { border-color: var(--c); }
.sht-region { border-color: #428b98; border-radius: 8px; background: #dff2f0; color: #185a68; }
.sht-seek { background: var(--c-tint); border-color: var(--c); }
.sht-catch { border: 2px solid #b69b4f; border-radius: 8px 18px 18px 18px; background: #fff0bb; box-shadow: none; }
.sht-catch::before { border-width: 2px; border-color: #b69b4f; background: #fff0bb; }
.sht-memo { border: 1px solid #9cbbb3; border-radius: 12px; background: #fffdf3; box-shadow: 0 3px 0 #173e5010; overflow: hidden; }
.sht-memo__h { margin: -10px -14px 8px; padding: 7px 14px; border-bottom: 1px solid var(--c); background: var(--c-tint); color: var(--c-deep); }
.sht-links__chip { border: 1px solid var(--c); border-radius: 8px; background: var(--c-tint); color: var(--c-deep); }
.sht-maff { border: 1px solid #73a9a2; border-left: 5px solid #22776e; border-radius: 9px; background: #e6f2e7; box-shadow: none; color: #185f59; }
.sht-maff__ic { border-radius: 8px; background: #22776e; }
.sht-obs { position: relative; display: block; }
.sht-obs > .c-avatar { position: absolute; z-index: 1; left: 12px; top: 9px; border: 1px solid #b69b4f; }
.sht-obs .c-bubble__say { padding: 8px 12px 12px; border: 1px solid #ccb775; border-radius: 12px; background: #fff5cf; box-shadow: none; }
.sht-obs .c-bubble__say::before { display: none; }
.sht-obs .c-bubble__who { display: flex; align-items: center; min-height: 52px; padding-left: 62px; margin-bottom: 6px; color: #775c21; font-size: 14px; }
.sht-rec { border: 2px solid #17697b; border-radius: 12px; background: #bce9e8; box-shadow: 0 3px 0 #17697b3b; color: #134d5a; }
.sht-rec--mikke { background: #bce9e8; }
.sht-rec--tabeta { border-color: #99751e; background: #ffd665; color: #5b4610; box-shadow: 0 3px 0 #99751e38; }
.sht-rec__seal { border: 2px solid currentColor; transform: rotate(-8deg); background: #fffdf3; }
.sht-rec--mikke.is-done { border-color: #7faaa9; background: #e8f3ea; color: #286f73; }
.sht-rec--tabeta.is-done { border-color: #bdab70; background: #fff2c5; color: #8c6817; }
.sht-rec.is-done { box-shadow: none; }
.sht-rec.is-done .sht-rec__seal { transform: none; }
.sht-undo { border: 1px solid #4e8e88; border-radius: 9px; background: #fffdf3; color: #24665f; }
.sht-met { border-top: 2px solid var(--c); }
.sht-flagbtn, .sht-morebtn { border: 1px solid #6d9a8c; border-radius: 10px; }
.sht-fix__box { padding: 10px; border: 1px solid #9cbbb3; border-radius: 12px; background: #f2f5e5; }
.sht-ask { border: 1px solid #bd6549; border-left-width: 5px; border-radius: 10px; background: #fff4dc; }
@media (hover:hover) {
  .sht-rec--mikke:not([aria-disabled="true"]):hover { background: #ccefee; }
  .sht-rec--tabeta:not([aria-disabled="true"]):hover { background: #ffe08c; }
}
@media (max-width:359px) {
  .zk-head { min-height: 80px; padding: 4px 12px; }
  .zk-h { font-size: 25px; }
  /* At 320px, a horizontal catalogue entry keeps the art large and its full name readable. */
  .zk-grid { grid-template-columns: minmax(0,1fr); }
  .zk-grid .card:not(.card--mini) { display: grid; grid-template-columns: 76px minmax(0,1fr); grid-template-rows: 19px minmax(33px,auto) 16px; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; background: linear-gradient(90deg,var(--c-tint) 0 35%,#fffdf3 35%); }
  .zk-grid .card:not(.card--mini) .card__pic { grid-column: 1; grid-row: 1 / 4; width: 76px; margin: 0; }
  .zk-grid .card:not(.card--mini) .card__no { grid-column: 2; grid-row: 1; justify-self: start; }
  .zk-grid .card:not(.card--mini) .card__name { grid-column: 2; grid-row: 2; align-items: flex-start; padding: 0; border-top: 0; text-align: left; }
  .zk-grid .card:not(.card--mini) .card__stars { grid-column: 2; grid-row: 3; justify-self: start; }
  .zk-grid .card[data-state="locked"] { background: linear-gradient(90deg,#245463 0 35%,#143e4c 35%); }
  .sht-page { grid-template-columns: 126px minmax(0,1fr); column-gap: 10px; }
  .sht-stage { width: 126px; height: 126px; }
  .sht-img { width: 114px; height: 114px; }
}
@media (min-width:600px) and (min-height:500px) {
  .zk-head { min-height: 128px; padding: 16px 22px; }
  .zk-h { font-size: 34px; }
  .zk-grid .card:not(.card--mini) .card__pic { width: min(112px,100%); }
  .sht-page { grid-template-columns: 184px minmax(0,1fr); column-gap: 18px; }
  .sht-stage { width: 184px; height: 184px; }
  .sht-img { width: 164px; height: 164px; }
}
@media (min-width:900px) and (min-height:500px) {
  .sht-stage { width: 220px; height: 220px; }
  .sht-img { width: 196px; height: 196px; }
  .sht-name { border-bottom: 0; }
}
@media (orientation:landscape) and (max-height:499px) {
  .zk-head { min-height: 84px; padding: 7px 12px; margin-bottom: 6px; }
  .zk-h { font-size: 25px; }
  .zk-state { height: auto; margin: 0; }
  .zk-state__btn + .zk-state__btn { border-left: 0; }
  .zk-state__btn:nth-child(2n) { border-left: 1px solid #cadad0; }
  .zk-state__btn:nth-child(n+3) { border-top: 1px solid #cadad0; }
  .zk-sech { height: 44px; }
  .zk-grid .card:not(.card--mini) .card__pic { width: min(76px,100%); }
  .sht-page { grid-template-columns: 200px minmax(0,1fr); column-gap: 20px; }
  .sht-stage { width: var(--sht-hero,100px); height: var(--sht-hero,100px); border-radius: 16px 16px 24px 16px; }
  .sht-img { width: 94%; height: 94%; }
  .sht-name { padding-bottom: 2px; border-bottom-width: 2px; }
}
@media (orientation:landscape) and (max-height:359px) {
  .zk-head { min-height: 56px; padding: 2px 9px; gap: 1px; }
  .zk-h { font-size: 23px; }
  .zk-h::before { display: none; }
  .zk-grid .card:not(.card--mini) .card__pic { width: min(60px,100%); }
}
