/* Can I Keep It - Moreton Bay | Fishing Australia | v20261009
   Every selector is scoped under #fa-ck. No globals, no :root. */

#fa-ck {
  --fa-marine-deep: #123e5d;
  --fa-ocean-blue: #1a5b8c;
  --fa-coastal-sky: #299bd5;
  --fa-tackle-orange: #ea6c00;
  --ck-canvas: #f0f4f8;
  --ck-card: #ffffff;
  --ck-text: #14212b;
  --ck-text-2: #4a5b69;
  --ck-stroke: #c9d5df;
  --ck-stroke-2: #dde5ec;
  --ck-head: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ck-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --x-mnp: #2e9d4a;
  --x-cpz: #e8c547;
  --x-hpz: #2b5a9b;
  --x-guz: #9cc9e8;
  --x-ok: #1b7f3b;
  --x-no: #c62828;
  --x-check: #ea6c00;
  --ck-r-s: 10px;
  --ck-r-m: 14px;
  --ck-r-l: 18px;
  --ck-tap: 48px;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 12px 104px;
  background: var(--ck-canvas);
  border-radius: var(--ck-r-l);
  color: var(--ck-text);
  font-family: var(--ck-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  font-style: normal;
  word-spacing: normal;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 600px) { #fa-ck { padding: 24px 24px 104px; } }
@media (min-width: 900px) { #fa-ck { padding: 32px; } }

/* ---------- defensive resets ---------- */
#fa-ck *, #fa-ck *::before, #fa-ck *::after { box-sizing: border-box; }
#fa-ck div, #fa-ck section, #fa-ck header, #fa-ck figure, #fa-ck figcaption,
#fa-ck p, #fa-ck h2, #fa-ck h3, #fa-ck ul, #fa-ck li, #fa-ck label {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  float: none; max-width: none; text-transform: none; letter-spacing: normal; text-indent: 0;
}
#fa-ck p, #fa-ck li, #fa-ck label, #fa-ck figcaption { font-family: var(--ck-body); font-size: inherit; line-height: 1.5; color: inherit; }
#fa-ck h2, #fa-ck h3 { font-family: var(--ck-head); color: var(--fa-marine-deep); line-height: 1.2; font-style: normal; text-align: left; text-decoration: none; border: 0; text-shadow: none; }
#fa-ck h2::before, #fa-ck h2::after, #fa-ck h3::before, #fa-ck h3::after,
#fa-ck li::before, #fa-ck li::after, #fa-ck p::before, #fa-ck p::after { content: none; display: none; }
#fa-ck ul { list-style: none; }
#fa-ck li { list-style: none; display: block; }
#fa-ck br { display: none; }
#fa-ck strong, #fa-ck b { font-weight: 700; color: inherit; }
#fa-ck small { font-size: 13px; }
#fa-ck i { font-style: normal; }
#fa-ck a { color: var(--fa-ocean-blue); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; background: none; border: 0; box-shadow: none; }
#fa-ck a:hover { color: var(--fa-marine-deep); }
#fa-ck a:focus-visible { outline: 2px solid var(--fa-coastal-sky); outline-offset: 2px; }
#fa-ck [hidden] { display: none !important; }
#fa-ck svg { display: block; max-width: 100%; overflow: hidden; vertical-align: middle; fill: initial; stroke: initial; }
#fa-ck svg title { display: none; }
#fa-ck input, #fa-ck button {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  margin: 0; box-sizing: border-box; max-width: 100%; height: auto;
  font-family: var(--ck-body); font-size: 16px; line-height: 1.4; font-weight: 400;
  letter-spacing: normal; text-transform: none; text-shadow: none; text-decoration: none;
  box-shadow: none; outline: none; transform: none; float: none; position: static;
  transition: none; opacity: 1; visibility: visible; pointer-events: auto;
}
#fa-ck input[type="number"] { -moz-appearance: textfield; }
#fa-ck input::-webkit-outer-spin-button, #fa-ck input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#fa-ck input::placeholder { color: #7a8a97; opacity: 1; }

/* ---------- header ---------- */
#fa-ck .x-top { display: grid; gap: 6px; padding: 0 0 16px; }
#fa-ck .x-top h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; margin: 0; }
#fa-ck .x-top p { color: var(--ck-text-2); font-size: 17px; }

/* ---------- app layout ---------- */
#fa-ck .x-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
#fa-ck .x-inputs { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
  #fa-ck .x-app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
  #fa-ck .x-result { position: sticky; top: 16px; }
}

#fa-ck .x-panel { padding: 18px; border-radius: var(--ck-r-l); background: var(--ck-card); border: 1px solid var(--ck-stroke-2); display: grid; gap: 12px; min-width: 0; }
#fa-ck .x-panel__head { display: flex; align-items: center; gap: 10px; font-family: var(--ck-head); font-size: 20px; font-weight: 700; color: var(--fa-marine-deep); line-height: 1.2; }
#fa-ck .x-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fa-ocean-blue); color: #fff; font-family: var(--ck-head); font-size: 14px; font-weight: 700; line-height: 1; }
#fa-ck .x-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--ck-text-2); line-height: 1.4; }
#fa-ck .x-hint { font-size: 13px; color: var(--ck-text-2); }
#fa-ck .x-input {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--ck-stroke); border-radius: var(--ck-r-s);
  background: #fff; color: var(--ck-text);
}
#fa-ck .x-input:focus { border-color: var(--fa-ocean-blue); outline: 2px solid var(--fa-coastal-sky); outline-offset: 1px; }
#fa-ck .x-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* combobox */
#fa-ck .x-combo { position: relative; }
#fa-ck .x-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  display: block; margin: 0; padding: 6px; list-style: none; max-height: min(50vh, 360px); overflow-y: auto;
  background: #fff; border: 1px solid var(--ck-stroke);
  border-radius: var(--ck-r-s); box-shadow: 0 10px 30px rgba(18, 62, 93, 0.18);
}
#fa-ck .x-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--ck-tap); padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ck-text); font-size: 15px; }
#fa-ck .x-list li small { color: var(--ck-text-2); white-space: nowrap; text-align: right; }
#fa-ck .x-list li[aria-selected="true"], #fa-ck .x-list li:hover { background: #e3eef7; }
#fa-ck .x-list li.x-empty { color: var(--ck-text-2); cursor: default; background: none; }

/* buttons */
#fa-ck .x-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 12px 16px; border: 0; border-radius: var(--ck-r-s);
  background: #b85400; color: #fff; font-family: var(--ck-head); font-size: 17px; font-weight: 700;
  cursor: pointer; text-align: center;
}
#fa-ck .x-primary:hover { background: #9e4800; }
#fa-ck .x-primary:focus-visible { outline: 3px solid var(--fa-coastal-sky); outline-offset: 2px; }
#fa-ck .x-msg { font-size: 14px; color: var(--ck-text-2); }
#fa-ck .x-msg:empty { display: none; }
#fa-ck .x-msg.is-error { color: var(--x-no); }
#fa-ck .x-spots { display: flex; flex-wrap: wrap; gap: 8px; }
#fa-ck .x-spot {
  display: inline-flex; align-items: center; min-height: var(--ck-tap); width: auto; padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--ck-stroke); background: #fff; color: var(--fa-marine-deep);
  font-size: 14px; font-weight: 500; line-height: 1.25; cursor: pointer; text-align: left;
}
#fa-ck .x-spot:hover { background: #e3eef7; }
#fa-ck .x-spot:focus-visible { outline: 2px solid var(--fa-coastal-sky); outline-offset: 2px; }
#fa-ck .x-spot[aria-pressed="true"] { background: var(--fa-ocean-blue); color: #fff; border-color: var(--fa-ocean-blue); }

/* map */
#fa-ck .x-map { margin: 0; display: grid; gap: 10px; }
#fa-ck .x-map svg { display: block; width: 100%; height: auto; max-height: 78vh; border-radius: var(--ck-r-m); background: #fff; border: 1px solid var(--ck-stroke-2); cursor: crosshair; touch-action: manipulation; }
#fa-ck .x-map path { stroke: #fff; stroke-width: 0.6; fill-rule: evenodd; }
#fa-ck .x-map path.is-active { stroke: var(--ck-text); stroke-width: 2; }
#fa-ck .x-map path.x-z-mnp { fill: var(--x-mnp); }
#fa-ck .x-map path.x-z-cpz { fill: var(--x-cpz); }
#fa-ck .x-map path.x-z-hpz { fill: var(--x-hpz); }
#fa-ck .x-map path.x-z-guz { fill: var(--x-guz); }
#fa-ck .x-map .x-marker circle { fill: var(--fa-tackle-orange); stroke: #fff; stroke-width: 3; }
#fa-ck .x-map .x-marker line { stroke: var(--ck-text); stroke-width: 1.5; }
#fa-ck .x-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ck-text-2); }
#fa-ck .x-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
#fa-ck .x-legend i { flex: none; width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
#fa-ck .x-legend i.x-sw-mnp { background: var(--x-mnp); }
#fa-ck .x-legend i.x-sw-cpz { background: var(--x-cpz); }
#fa-ck .x-legend i.x-sw-hpz { background: var(--x-hpz); }
#fa-ck .x-legend i.x-sw-guz { background: var(--x-guz); }

/* verdict */
#fa-ck .x-verdict { --tone: var(--x-check); --tone-bg: #fdf0e4; padding: 20px; border-radius: var(--ck-r-l); border: 2px solid var(--tone); background: var(--tone-bg); display: grid; gap: 14px; }
#fa-ck .x-verdict[data-tone="ok"] { --tone: var(--x-ok); --tone-bg: #e8f4ec; }
#fa-ck .x-verdict[data-tone="no"] { --tone: var(--x-no); --tone-bg: #fbeaea; }
#fa-ck .x-verdict__top { display: flex; gap: 14px; align-items: flex-start; }
#fa-ck .x-big { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #fff; font-family: var(--ck-body); font-weight: 700; font-size: 28px; line-height: 1; }
#fa-ck .x-verdict[data-tone="check"] .x-big { color: #1d1000; }
#fa-ck .x-verdict h3 { font-family: var(--ck-head); font-size: clamp(24px, 3vw, 30px); font-weight: 900; color: var(--ck-text); line-height: 1.15; }
#fa-ck .x-verdict__sub { margin-top: 4px; font-size: 16px; color: var(--ck-text); }
#fa-ck .x-today { font-size: 13px; color: var(--ck-text-2); }
#fa-ck .x-checks { list-style: none; margin: 0; padding: 0; }
#fa-ck .x-checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-top: 1px solid rgba(18, 62, 93, 0.14); }
#fa-ck .x-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--ck-body); font-weight: 700; font-size: 13px; line-height: 1; background: var(--ck-text-2); }
#fa-ck .x-ico[data-s="ok"] { background: var(--x-ok); }
#fa-ck .x-ico[data-s="no"] { background: var(--x-no); }
#fa-ck .x-ico[data-s="check"] { background: var(--x-check); color: #1d1000; }
#fa-ck .x-ico[data-s="info"] { background: var(--fa-ocean-blue); }
#fa-ck .x-checks b { display: block; font-size: 13px; font-weight: 500; color: var(--ck-text-2); text-transform: uppercase; letter-spacing: 0.04em; }
#fa-ck .x-checks strong { display: block; font-weight: 500; color: var(--ck-text); }
#fa-ck .x-checks p { font-size: 14px; color: var(--ck-text-2); margin-top: 2px; }
#fa-ck .x-official { font-size: 13px; color: var(--ck-text-2); }

/* mobile result bar */
#fa-ck .x-bar {
  position: fixed; z-index: 9990; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; align-items: center; gap: 10px; width: auto; min-height: 56px; padding: 8px 16px 8px 8px;
  border: 0; border-radius: 100px; background: var(--fa-marine-deep); color: #fff;
  box-shadow: 0 8px 24px rgba(18, 62, 93, 0.35); font-family: var(--ck-head); font-size: 16px; font-weight: 700;
  text-align: left; cursor: pointer;
  transition: transform 0.2s ease-out, opacity 0.2s ease;
}
#fa-ck .x-bar .x-ico { width: 40px; height: 40px; font-size: 18px; flex: none; }
#fa-ck .x-bar span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fa-ck .x-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { #fa-ck .x-bar { display: none; } }

/* sources, disclaimer, safety */
#fa-ck .x-sec { display: grid; gap: 14px; margin-top: 32px; padding: 20px 18px; background: var(--ck-card); border: 1px solid var(--ck-stroke-2); border-radius: var(--ck-r-l); }
#fa-ck .x-sec h2 { font-size: 26px; font-weight: 900; }
#fa-ck .x-sec__sub { font-size: 14px; color: var(--ck-text-2); margin-top: -8px; }
#fa-ck .x-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 14px; color: var(--ck-text-2); max-width: 80ch; }
#fa-ck .x-sources li { font-size: 14px; overflow-wrap: anywhere; }
#fa-ck .x-sources strong { color: var(--ck-text); font-weight: 700; }
#fa-ck .x-aside { display: grid; gap: 6px; padding: 14px 16px; border-left: 4px solid var(--fa-coastal-sky); background: var(--ck-canvas); border-radius: 0 var(--ck-r-s) var(--ck-r-s) 0; }
#fa-ck .x-aside h3 { font-size: 18px; font-weight: 700; }
#fa-ck .x-fine { font-size: 14px; color: var(--ck-text-2); max-width: 75ch; }
#fa-ck .x-safety { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--ck-r-s); background: #fbeaea; border: 1px solid #efc4c4; color: var(--ck-text); font-size: 15px; }
#fa-ck .x-safety strong { color: var(--x-no); font-family: var(--ck-head); font-size: 18px; font-weight: 900; }
#fa-ck .x-safety span { line-height: 1.5; }
#fa-ck .x-safety a { display: inline-block; padding: 12px 6px; margin: -12px -6px; line-height: 1.5; color: var(--x-no); font-weight: 700; }
#fa-ck .x-sources a { display: inline; }
@media (pointer: coarse) { #fa-ck .x-sources a { display: inline-block; padding: 12px 0; margin: -12px 0; } }
