/* Pricing math page: a calm workbook look shared by neither theme. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(../shared/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(../shared/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(../shared/fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(../shared/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(../shared/fonts/nunito-latin-800-normal.woff2) format('woff2'); }

:root {
  --ink: #2b1640; --soft: #6b5a72; --line: #eadfe6; --bg: #fbf7f3; --card: #ffffff;
  --pink: #e8408f; --pink-l: #ffe3f0; --mint: #1f9d6a; --mint-l: #dcf5ea; --amber: #a86400; --amber-l: #fff0d6; --lemon-l: #fff6cc;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font: 400 1rem/1.6 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 600; }
a { color: var(--pink); }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.fine { font-size: .9rem; color: var(--soft); }
small { color: var(--soft); }

.top { background: var(--ink); color: #fff; }
.top-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; font-size: .92rem; }
.top a { color: #fff; text-decoration: none; font-weight: 700; }
.top .for { opacity: .75; }

.intro { padding: 40px 0 20px; max-width: 980px; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 46em; }
.formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 26px 0; }
.f-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; flex: 1 1 130px; display: flex; flex-direction: column; gap: 2px; }
.f-box b { font-family: 'Fredoka', sans-serif; font-size: 1.05rem; }
.f-box span { font-size: .82rem; color: var(--soft); }
.f-time { background: var(--lemon-l); border-color: #f0dc8a; }
.f-price { background: var(--pink); border-color: var(--pink); color: #fff; }
.f-price span { color: #ffe3f0; }
.f-op { align-self: center; font: 700 1.4rem/1 'Fredoka', sans-serif; color: var(--soft); }
.callout { background: var(--lemon-l); border: 1px solid #f0dc8a; border-radius: 14px; padding: 16px 20px; max-width: 980px; }

.layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px 0 80px; }
.panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.panel-in { padding: 20px; }
.panel h2 { font-size: 1.3rem; }
.fields { display: grid; gap: 10px; margin: 14px 0; }
.fields label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; }
.fields.small label { font-weight: 400; font-size: .86rem; }
.fields input { width: 86px; font: inherit; font-weight: 700; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; background: var(--bg); color: var(--ink); }
.money, .pct, .hrs { position: relative; display: inline-flex; align-items: center; gap: 3px; flex: none; }
.money::before { content: '$'; color: var(--soft); }
.pct::after { content: '%'; color: var(--soft); }
.hrs::after { content: 'hr'; color: var(--soft); font-size: .85em; }
details summary { cursor: pointer; font-weight: 800; padding: 8px 0; border-top: 1px solid var(--line); }
.btn-reset { margin-top: 14px; width: 100%; font: 700 .95rem/1 'Nunito', sans-serif; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.btn-reset:hover { background: var(--pink-l); }
.changed { background: var(--pink-l); padding: 10px 12px; border-radius: 10px; color: var(--ink); }

.content > section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--soft); white-space: nowrap; }
.glance td:nth-child(n+2):not(:nth-child(6)), .glance th:nth-child(n+2):not(:nth-child(6)) { text-align: right; white-space: nowrap; }
.glance tr.cat th { background: var(--bg); font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--ink); padding-top: 12px; }
.glance td:nth-child(6) { min-width: 170px; }
.mk { display: block; font-size: .78rem; }
.chip { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--soft); }
.chip.ok { background: var(--mint-l); color: var(--mint); }
.chip.low, .chip.high { background: var(--amber-l); color: var(--amber); }
.matrix td:not(:first-child):not(:last-child), .matrix th:not(:first-child):not(:last-child) { text-align: right; white-space: nowrap; }
.matrix td:last-child { min-width: 220px; }
.free { color: var(--soft); font-size: .85em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.card > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 0; list-style: none; }
.card > summary::-webkit-details-marker { display: none; }
.card > summary small { display: block; font-weight: 400; }
.card > summary .big { font: 700 1.5rem/1 'Fredoka', sans-serif; color: var(--pink); }
.card > summary::after { content: '▾'; color: var(--soft); margin-left: 6px; }
.card[open] > summary::after { content: '▴'; }
.card.open { padding: 14px 16px; }
.bd { background: var(--card); font-size: .88rem; }
.card .bd { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.bd td:last-child { text-align: right; white-space: nowrap; }
.bd tr.grp th { font: 600 .8rem/1 'Fredoka', sans-serif; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; padding-top: 12px; }
.bd tr.sum td { font-weight: 800; background: var(--bg); }
#others h3 { margin: 18px 0 10px; }
#others h3:first-child { margin-top: 0; }

.guests { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.guests input { width: 90px; font: 700 1.2rem/1 'Fredoka', sans-serif; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.plan p { font-size: .9rem; color: var(--soft); margin: 0 0 8px; }
.plan b { font: 700 1.6rem/1 'Fredoka', sans-serif; color: var(--pink); display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.tips { padding-left: 1.2em; display: grid; gap: 10px; margin: 0; }
.sources ul { padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .content > section { padding: 18px 14px; }
  .cards { grid-template-columns: 1fr; }
  .f-op { display: none; }
}
