/* Coin reference pages and the inherited collection worksheet (src/seo.js). */

/* ---------------------------------------------------------- private coin status */
.ref-private { border-color: var(--gold-leaf); }
.ref-status { display: inline-flex; align-items: center; min-height: 34px; margin: 2px 0 10px; padding: 5px 12px; border: 2px solid var(--edge); border-radius: 999px; background: var(--panel-2); font-weight: 800; }
.ref-status[data-state="owned"] { background: #CDEFE8; color: #082D27; }
.ref-status[data-state="hunting"] { background: #FFCF4D; color: #2B2100; }
.ref-status[data-state="none"] { color: var(--text-2); }
.ref-private [data-ref-years] { font-weight: 700; }
.ref-private [data-ref-extra] { color: var(--text-2); }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ------------------------------------------------------------------- worksheet */
.ws-warning { border: 2.5px solid var(--warn-line); border-radius: 16px; background: var(--warn-bg); color: var(--warn-text); padding: 14px 18px; margin: 0 0 var(--gap); line-height: 1.55; }
.ws-warning strong { font-weight: 850; }
.ws-sheet { padding: 18px 20px; }
.ws-head { display: flex; align-items: start; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.ws-head h2 { margin: 0 0 4px; }
.ws-head p { max-width: 78ch; }
.ws-limit { flex: none; border: 2px solid var(--edge); border-radius: 999px; padding: 4px 10px; font: 500 12px var(--mono); white-space: nowrap; }
.ws-spots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.ws-spots > div { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 9px 12px; }
.ws-spots span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ws-spots strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ws-spots small { color: var(--muted); }
.ws-price-status { min-height: 20px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.ws-rows { display: grid; gap: 14px; }
.ws-row { min-width: 0; margin: 0; border: 2px solid var(--edge); border-radius: 14px; padding: 10px 14px 14px; }
.ws-row legend { padding: 0 8px; font-weight: 800; }
.ws-row-grid { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(100px, .8fr) minmax(70px, .55fr) minmax(90px, .75fr) minmax(120px, .9fr) minmax(90px, .75fr) minmax(120px, .9fr) auto; gap: 10px; align-items: end; }
.ws-field { display: grid; gap: 4px; min-width: 0; }
.ws-field > span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ws-field small { font: 500 10px var(--body); text-transform: none; letter-spacing: 0; }
.ws-field input, .ws-field select { width: 100%; min-width: 0; min-height: 42px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); padding: 8px 10px; }
.ws-field input:focus, .ws-field select:focus { border-color: var(--focus); }
.ws-field [aria-invalid="true"] { border-color: var(--loss); box-shadow: 0 0 0 1px var(--loss); }
.ws-remove { min-height: 42px; white-space: nowrap; }
.ws-line-melt { grid-column: 1 / -1; margin: 0; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.ws-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 14px 0; }
.ws-total { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 16px 0; border: 2.5px solid var(--edge); border-radius: 16px; background: var(--butter); color: #1A1405; padding: 14px 18px; }
.ws-total > div { display: grid; gap: 2px; }
.ws-total span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.ws-total strong { font: 900 clamp(30px, 5vw, 44px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.ws-total p { max-width: 46ch; text-align: right; font-size: 14px; }
.ws-error { border: 2px solid var(--bad-line); border-radius: 12px; background: var(--bad-bg); color: var(--bad-text); padding: 11px 14px; margin: 12px 0; line-height: 1.5; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ws-privacy { margin-top: 12px; font-size: 13px; line-height: 1.55; }
.ws-privacy code { overflow-wrap: anywhere; }
.ws-help { margin-top: var(--gap); }
.ws-help h2 { margin-bottom: 6px; }
.ws-help p { max-width: 80ch; line-height: 1.6; margin-bottom: 12px; }
.ws-help .btn { margin: 0 8px 4px 0; }

@media (max-width: 1100px) {
  .ws-row-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-desc { grid-column: span 2; }
  .ws-spots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ws-warning { padding: 12px 14px; }
  .ws-sheet { padding: 14px; }
  .ws-head { display: block; }
  .ws-limit { display: inline-block; margin-top: 10px; }
  .ws-spots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws-spots > div { padding: 8px 10px; }
  .ws-spots strong { font-size: 18px; }
  .ws-row { padding: 8px 10px 12px; }
  .ws-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ws-desc { grid-column: 1 / -1; }
  .ws-remove { width: 100%; }
  .ws-total { display: block; }
  .ws-total p { margin-top: 8px; text-align: left; }
  .ws-actions .btn { flex: 1 1 180px; }
}

@media print {
  body { background: #fff !important; color: #000 !important; }
  .pc-top, .mt-foot, .ws-actions, .ws-row-actions, .ws-remove, .ws-privacy, .ws-help, .ws-price-status, .skip { display: none !important; }
  .pc-main { max-width: none !important; padding: 0 !important; }
  .pc-head { display: block !important; }
  .pc-head-a { margin-top: 8px; }
  .ws-sheet { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .ws-row { break-inside: avoid; background: #fff !important; border-color: #777 !important; }
  .ws-field input, .ws-field select { background: #fff !important; color: #000 !important; border-color: #777 !important; }
  .ws-total { background: #fff !important; color: #000 !important; border-color: #777 !important; }
  .ws-spots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ws-spots > div { background: #fff !important; border-color: #777 !important; }
  .ws-warning { background: #fff !important; color: #000 !important; border-color: #777 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}