/* Calendar: six-panel monthly price atlas. Dark, dense and colourful like the original suite. */
.atl-wrap { max-width: 1560px; margin: 0 auto; padding: 22px 20px 120px; }
.atl-wrap h1 { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.4px; }
.atl-lede { color: var(--sc-text-2); font-size: 14px; margin: 4px 0 14px; max-width: 90ch; }
.atl-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sc-text-3); margin-bottom: 6px; }
.atl-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; background: var(--sc-panel); border: 1px solid var(--sc-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.atl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.atl-chip { font-size: 13px; font-weight: 700; color: var(--sc-text); border: 1px solid var(--c, var(--sc-line)); border-left-width: 6px; border-radius: 8px; padding: 5px 10px; background: var(--sc-panel-2); }
.atl-modes { display: inline-flex; border: 1px solid var(--sc-line); border-radius: 10px; overflow: hidden; }
.atl-mode { font: inherit; font-size: 13px; font-weight: 600; color: var(--sc-text-2); background: transparent; border: 0; padding: 0 14px; min-height: 44px; cursor: pointer; }
.atl-mode[aria-pressed="true"] { background: var(--sc-accent); color: #06202a; }
.atl-mode:focus-visible, .atl-tab:focus-visible, .atl-x:focus-visible, .atl-c:focus-visible, .atl-open:focus-visible, #atl-refsel:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 2px; }
#atl-ref { display: flex; flex-direction: column; gap: 3px; }
#atl-ref label { font-size: 12px; font-weight: 600; color: var(--sc-text-2); }
#atl-ref select { font: inherit; font-size: 14px; color: var(--sc-text); background: var(--sc-panel-2); border: 1px solid var(--sc-line); border-radius: 8px; min-height: 44px; padding: 0 10px; }
.atl-refnote { font-size: 12px; color: var(--sc-text-3); }

.atl-legendbox { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--sc-line); border-radius: 12px; background: var(--sc-panel); }
.atl-scale { flex: 1 1 360px; max-width: 520px; font-size: 13px; color: var(--sc-text); }
.atl-scale small { display: block; margin-top: 4px; font-size: 12px; color: var(--sc-text-3); line-height: 1.4; }
.atl-ramp { height: 14px; border-radius: 7px; margin: 6px 0 2px; border: 1px solid var(--sc-line); }
.atl-ticks { position: relative; height: 16px; font-size: 12px; color: var(--sc-text-2); }
.atl-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.atl-ticks span:first-child { transform: none; } .atl-ticks span:last-child { transform: translateX(-100%); }
.atl-states { display: grid; gap: 6px; font-size: 13px; color: var(--sc-text-2); flex: 1 1 300px; }
.atl-states span { display: flex; align-items: center; gap: 8px; }
.atl-sw { width: 30px; height: 20px; border-radius: 4px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; font-weight: 700; color: var(--sc-text-3); }
.atl-sw-price { background: #1fa3a3; }
.atl-sw-partial { background: #1fa3a3 repeating-linear-gradient(45deg, rgba(6,20,36,0.55) 0 2px, transparent 2px 6px); }
.atl-sw-small { background: #1fa3a3; position: relative; } .atl-sw-small::after { content: ""; position: absolute; inset: 2px; border: 2px dotted #07202a; border-radius: 2px; }
.atl-sw-withheld { border: 1.5px dashed var(--sc-text-3); }
.atl-sw-empty { border: 1.5px dashed #3a5278; }

/* panels */
.atl-tabs { display: none; }
.atl-panels { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1320px) { .atl-panels { grid-template-columns: 1fr 1fr; } }
.atl-panel { background: var(--sc-panel); border: 1px solid var(--sc-line); border-top: 4px solid var(--hull, var(--sc-line)); border-radius: 14px; padding: 12px 12px 14px; min-width: 0; }
.atl-ph { --hull: #4aa3f0; --band: #8fd694; border-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; padding: 0 4px; }
.atl-panel[data-panel^="monohull"] { --hull: #4aa3f0; } .atl-panel[data-panel^="catamaran"] { --hull: #4ecdc4; } .atl-panel[data-panel^="motor"] { --hull: #e8b448; }
.atl-ph h3 { font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.atl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hull); display: inline-block; flex: none; }
.atl-band { font-size: 13px; font-weight: 700; color: #08161f; background: var(--band); border-radius: 6px; padding: 2px 8px; }
.atl-pc { font-size: 12px; color: var(--sc-text-3); }
.atl-pc b { color: var(--sc-text); }

.atl-grid { display: grid; grid-template-columns: 150px repeat(12, minmax(40px, 1fr)); gap: 3px; font-size: 12px; position: relative; }
.atl-corner, .atl-mh { position: sticky; top: 0; z-index: 3; background: var(--sc-panel); font-size: 12px; font-weight: 700; text-align: center; color: var(--sc-accent); padding: 8px 0 6px; border-bottom: 1px solid var(--sc-line); }
.atl-corner { left: 0; z-index: 4; text-align: left; padding-left: 6px; color: var(--sc-text); font-size: 13px; }
.atl-mh.none { color: var(--sc-text-3); font-weight: 500; }
.atl-rl { position: sticky; left: 0; z-index: 2; background: var(--sc-panel); color: var(--sc-text); font-size: 12px; font-weight: 600; line-height: 1.15; padding: 0 6px; min-height: 32px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; white-space: nowrap; border-right: 1px solid var(--sc-line); }
.atl-rl > span { overflow: hidden; text-overflow: ellipsis; display: block; }
.atl-rl.newc { box-shadow: 0 -2px 0 0 var(--sc-line); }
.atl-cn { color: var(--sc-text-3); font-size: 11px; font-weight: 400; }
.atl-rl.hl, .atl-rl.pin { background: #1c3150; color: #fff; }
.atl-rl.pin { box-shadow: inset 4px 0 0 var(--sc-focus); }
.atl-c { position: relative; min-height: 32px; border-radius: 5px; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; text-align: center; line-height: 1.1; }
button.atl-c { cursor: pointer; font-size: 12px; transition: transform .12s ease; }
button.atl-c:hover { transform: scale(1.08); z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.atl-v { position: relative; z-index: 1; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; }
.atl-pct { position: relative; z-index: 1; font-size: 11px; font-weight: 600; opacity: .95; }
.atl-c.is-partial::before { content: ""; position: absolute; inset: 0; border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(6,20,36,.5) 0 2px, transparent 2px 6px); pointer-events: none; }
.atl-c.is-small::after { content: ""; position: absolute; inset: 2px; border-radius: 3px; border: 2px dotted currentColor; pointer-events: none; }
.atl-c.atl-nobase { background: #1b2c47; color: var(--sc-text-2); border: 1px dashed var(--sc-text-3); }
.atl-withheld { background: transparent; border: 1.5px dashed var(--sc-text-3) !important; color: var(--sc-text-2); }
.atl-n { font-size: 11px; font-weight: 700; }
.atl-empty { border: 1px dashed #243a5c; background: transparent; }
.atl-c.sel { outline: 3px solid #fff; outline-offset: 1px; z-index: 6; }
.atl-c.hl:not(.sel) { outline: 2px solid rgba(255,255,255,.55); outline-offset: 0; }
.atl-c.pin:not(.sel) { outline: 2px solid var(--sc-focus); }

.atl-cov { font-size: 13px; color: var(--sc-text-2); margin: 14px 2px 0; }
.atl-cov b { color: #fff; }
.atl-notes { margin: 12px 2px 0 18px; display: grid; gap: 6px; font-size: 13px; color: var(--sc-text-2); max-width: 120ch; }
.atl-notes b { color: var(--sc-text); }
.atl-unavail { border: 1px dashed var(--sc-amber); border-radius: 12px; padding: 16px 18px; color: var(--sc-text); background: rgba(232,180,72,.08); font-size: 14px; }

/* detail drawer */
.atl-detail { position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1100px, 100%); max-height: 62vh; overflow: auto; background: #0e1b30; border: 1px solid var(--sc-accent); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.55); padding: 14px 18px 20px; color: var(--sc-text); }
.atl-detail[hidden], #atl-unavailable[hidden], #atl-main[hidden], #atl-ref[hidden] { display: none; }
.atl-dh { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.atl-dh h3 { font-size: 17px; font-weight: 800; color: #fff; }
.atl-x { font: inherit; font-size: 13px; font-weight: 700; color: var(--sc-text); background: var(--sc-panel-2); border: 1px solid var(--sc-line); border-radius: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; flex: none; }
.atl-dtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; font-size: 12px; color: var(--sc-text-2); align-items: center; }
.atl-ks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0; }
.atl-k { display: flex; flex-direction: column; font-size: 12px; color: var(--sc-text-3); }
.atl-k b { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.atl-k.big b { font-size: 26px; color: var(--sc-amber); }
.atl-recon { font-size: 13px; color: var(--sc-text-2); margin: 8px 0; }
.atl-good { color: #7be0b1; font-weight: 700; } .atl-bad { color: #ff9a9a; font-weight: 700; }
.atl-wk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .atl-wk { grid-template-columns: 1fr; } }
.atl-swarm { min-width: 0; }
.atl-readout { font-size: 12px; color: var(--sc-text-2); min-height: 34px; margin-bottom: 4px; }
.atl-iqr { fill: rgba(78,205,196,.12); } .atl-grid-l { stroke: #213552; stroke-width: 1; }
.atl-ax { font-size: 11px; fill: #93a9c0; } .atl-wl { font-size: 12px; fill: #cfdbe8; }
.atl-dotq { stroke: rgba(255,255,255,.55); stroke-width: .8; cursor: pointer; }
.atl-wmean { stroke: var(--sc-amber); stroke-width: 3; }
.atl-mmean { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 3; }
.atl-miss { stroke: #3a5278; stroke-dasharray: 3 4; }
.atl-wt, .atl-tw table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.atl-wt caption { text-align: left; font-size: 12px; color: var(--sc-text-3); padding-bottom: 4px; }
.atl-wt th, .atl-wt td, .atl-tw th, .atl-tw td { padding: 4px 6px; border-bottom: 1px solid #1e3050; text-align: right; white-space: nowrap; }
.atl-wt th:first-child, .atl-tw th:first-child, .atl-tw td:first-child, .atl-wt tbody th { text-align: left; }
.atl-wt thead th, .atl-tw thead th { color: var(--sc-text-3); font-weight: 600; }
.atl-wt small { color: var(--sc-text-3); }
.atl-ns { color: var(--sc-text-3); text-align: left !important; white-space: normal !important; }
.atl-boats { margin-top: 10px; font-size: 13px; }
.atl-boats summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--sc-accent); font-weight: 600; }
.atl-tw { max-height: 240px; overflow: auto; border: 1px solid #1e3050; border-radius: 8px; }
.atl-dlinks { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.atl-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--sc-accent); color: #06202a; font-weight: 800; text-decoration: none; font-size: 14px; }
.atl-fine { font-size: 12px; color: var(--sc-text-3); }

/* phones: one panel at a time, switched by tabs; the panel scrolls locally with sticky month header and destination labels */
@media (max-width: 720px) {
  .atl-wrap { padding: 14px 12px 90px; }
  .atl-wrap h1 { font-size: 24px; }
  .atl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
  .atl-tab { font: inherit; font-size: 13px; font-weight: 700; color: var(--sc-text-2); background: var(--sc-panel); border: 1px solid var(--sc-line); border-left: 5px solid var(--hull); border-radius: 8px; min-height: 48px; padding: 4px 8px; text-align: left; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
  .atl-tab small { font-size: 12px; font-weight: 500; color: var(--sc-text-3); }
  .atl-tab .atl-dot { display: none; }
  .atl-tab[aria-selected="true"] { background: var(--sc-panel-2); color: #fff; border-color: var(--sc-accent); border-left-color: var(--hull); }
  .atl-panel { display: none; }
  .atl-panel.on { display: block; }
  .atl-scroll { overflow: auto; max-height: 70vh; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .atl-grid { grid-template-columns: 112px repeat(12, 52px); width: max-content; }
  .atl-rl { min-height: 36px; }
  .atl-c { min-height: 36px; }
  .atl-detail { max-height: 78vh; padding: 12px 12px 18px; }
  .atl-legendbox { gap: 10px; }
}
@media (min-width: 721px) { .atl-panel { display: block !important; } }

.atl-cf { position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 9px solid #fff; border-left: 9px solid transparent; border-top-right-radius: 5px; z-index: 2; }
.atl-sw-carried { background: #1fa3a3; position: relative; overflow: hidden; } .atl-sw-carried::after { content: ""; position: absolute; top: 0; right: 0; border-top: 11px solid #fff; border-left: 11px solid transparent; }
.atl-wk > * { min-width: 0; }
@media (max-width: 720px) {
  .atl-wt th, .atl-wt td { white-space: normal; padding: 4px 3px; }
  .atl-wt small { display: block; }
  .atl-tw { max-width: 100%; }
}
/* T9: on a phone the 500 and 1k ticks of the square-root EUR ramp collide; keep 500 and drop 1k */
@media (max-width: 560px) { [data-qa="legend-abs"] .atl-ticks span:nth-child(2) { display: none; } }

.atl-paired-scroll{overflow-x:auto;max-width:100%;margin:14px 0}.atl-paired-grid{display:grid;grid-template-columns:170px repeat(12,76px);gap:3px;min-width:1118px;align-items:stretch}.atl-paired-grid>b{padding:10px 4px;text-align:center;color:#bfd3e6;font-size:12px}.atl-paired-name{padding:9px 5px;font-size:12px;color:#dce8f6;line-height:1.4}.atl-paired-name small{display:block;color:#9fb6ce}.paired-cell,.paired-withheld{min-height:52px;border-radius:6px;border:1px solid #557189;font-size:14px;font-weight:750;cursor:pointer}.paired-cell small,.paired-withheld small{display:block;font-size:10px;margin-top:4px;font-weight:500}.paired-withheld{background:#15283f;color:#c9d9e8;border:1px dashed #627b96}.paired-missing{text-align:center;padding:18px 0;color:#7d91a8;background:#0c1c31;border-radius:6px}.paired-partial{border:2px dashed #e3edf8}.paired-cell:focus-visible,.paired-withheld:focus-visible{outline:3px solid #fff;outline-offset:2px}.paired-reference{border-bottom:3px solid #e8b448}.atl-paired-intro p{max-width:900px;color:#b6cbdf;line-height:1.6;font-size:13px}.atl-paired-intro h2{font-size:19px;color:#eef5ff}.atl-paired-intro select{background:#14273f;color:#e6f1ff;min-height:44px;border:1px solid #41617d;border-radius:6px;margin-left:8px;max-width:100%;padding:8px}.atl-paired-evidence{background:#10243a;padding:16px;border:1px solid #35546e;border-radius:9px;margin-top:15px}.atl-paired-evidence:empty{display:none}.atl-paired-evidence p{font-size:13px;color:#bfd3e6;line-height:1.6}.atl-paired-key span:first-child{color:#e8b448}.atl-paired-key span:nth-child(2){color:#4ecdc4}.atl-paired-evidence table{min-width:700px;width:100%;border-collapse:collapse;font-size:12px}.atl-paired-evidence td,.atl-paired-evidence th{padding:9px;text-align:left;border-bottom:1px solid #31506a}
@media(max-width:600px){.atl-paired-intro h2{font-size:17px}.atl-paired-intro select{display:block;margin:8px 0;width:100%}.atl-paired-grid{grid-template-columns:135px repeat(12,72px);min-width:1035px}.atl-paired-evidence{padding:10px}}

.atl-panels[hidden],.atl-tabs[hidden],#atl-legend[hidden],#atl-cov[hidden],#atl-note[hidden],#atl-matched[hidden]{display:none!important}
