/* CMF Fishing Times — brand: Navy #0C273B, Amber #E8862E, Cream #F5F1E8 */
.cmf-ft {
  --cmf-navy: #0C273B;
  --cmf-navy-2: #15364F;
  --cmf-amber: #E8862E;
  --cmf-cream: #F5F1E8;
  --cmf-line: #E2DBCB;
  --cmf-muted: #4A5B6A;
  --cmf-text: #3B4C5B;
  --cmf-water: #1F6FA8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cmf-navy);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cmf-ft *, .cmf-ft *::before, .cmf-ft *::after { box-sizing: border-box; }
.cmf-ft-app { display: flex; flex-direction: column; gap: 24px; }
.cmf-ft-loading { padding: 40px 0; text-align: center; color: var(--cmf-muted); }
.cmf-ft svg { display: block; }
.cmf-ft h2, .cmf-ft h3 { color: var(--cmf-navy); }

/* Toolbar */
.cmf-ft-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cmf-ft-field { display: flex; flex-direction: column; gap: 6px; }
.cmf-ft-field label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cmf-muted); }
.cmf-ft-field select { font: inherit; font-size: 15px; padding: 10px 14px; min-height: 44px; min-width: 260px; max-width: 100%; border: 1px solid #C9C2B2; border-radius: 10px; background: #fff; color: var(--cmf-navy); }
.cmf-ft-nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.cmf-ft-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.cmf-ft-btn-outline { border: 2px solid var(--cmf-navy); background: transparent; color: var(--cmf-navy); }
.cmf-ft-btn-outline:hover { background: var(--cmf-navy); color: #fff; }
.cmf-ft-btn-solid { border: 2px solid var(--cmf-amber); background: var(--cmf-amber); color: var(--cmf-navy); }
.cmf-ft-btn-solid:hover { filter: brightness(1.06); color: var(--cmf-navy); }
.cmf-ft-btn:disabled { opacity: .6; cursor: wait; }
.cmf-ft-btn:focus-visible, .cmf-ft-day:focus-visible, .cmf-ft-field select:focus-visible { outline: 3px solid var(--cmf-amber); outline-offset: 2px; }

/* Week strip */
.cmf-ft-week { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.cmf-ft-day { flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--cmf-line); background: #fff; color: var(--cmf-navy); font: inherit; cursor: pointer; }
.cmf-ft-day:hover { border-color: var(--cmf-amber); }
.cmf-ft-day.is-on { background: var(--cmf-navy); border-color: var(--cmf-amber); color: #fff; }
.cmf-ft-day-dow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cmf-muted); }
.cmf-ft-day.is-on .cmf-ft-day-dow { color: #F5D2AE; }
.cmf-ft-day-date { font-size: 16px; font-weight: 700; }
.cmf-ft-day-word { font-size: 13px; font-weight: 600; }
.cmf-ft-dot-on { fill: var(--cmf-amber); }
.cmf-ft-dot-off { fill: var(--cmf-line); }
.cmf-ft-dot-off-dark { fill: #3A5870; }

/* Layout */
.cmf-ft-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cmf-ft-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cmf-ft-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Cards */
.cmf-ft-card { background: #fff; border: 1px solid var(--cmf-line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.cmf-ft-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cmf-ft-h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.2; }
.cmf-ft-h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.2; }
.cmf-ft-muted { font-size: 13px; color: var(--cmf-muted); display: block; }
.cmf-ft-small { font-size: 12px; color: var(--cmf-muted); }
.cmf-ft-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cmf-muted); }
.cmf-ft-eyebrow-light { color: #F5D2AE; }
.cmf-ft-k { display: block; font-size: 12px; font-weight: 600; color: var(--cmf-muted); }
.cmf-ft-v { display: block; font-size: 16px; font-weight: 700; color: var(--cmf-navy); }

/* Outlook */
.cmf-ft-outlook { background: var(--cmf-navy); color: #fff; border-radius: 18px; padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.cmf-ft-outlook-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.cmf-ft-outlook-text p { margin: 0; color: #D7E0E8; font-size: 16px; }
.cmf-ft .cmf-ft-outlook-h { margin: 0; color: #fff; font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 32px; line-height: 1.1; }
.cmf-ft-best { background: var(--cmf-navy-2); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.cmf-ft-best-time { font-size: 24px; font-weight: 700; }
.cmf-ft-best-note { font-size: 14px; color: #D7E0E8; }
.cmf-ft-best-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }

/* Charts */
.cmf-ft-scroll { overflow-x: auto; }
.cmf-ft-scroll svg { width: 100%; min-width: 600px; height: auto; }
.cmf-ft-night { fill: var(--cmf-navy); fill-opacity: .07; }
.cmf-ft-major { fill: var(--cmf-amber); fill-opacity: .34; }
.cmf-ft-minor { fill: var(--cmf-amber); fill-opacity: .16; }
.cmf-ft-grid { stroke: #E6E1D6; stroke-width: 1; }
.cmf-ft-axis { font-family: Inter, system-ui, sans-serif; font-size: 13px; fill: var(--cmf-muted); }
.cmf-ft-strong { font-weight: 600; fill: var(--cmf-navy); }
.cmf-ft-water { fill: #2F7FB8; fill-opacity: .14; }
.cmf-ft-tideline { fill: none; stroke: var(--cmf-water); stroke-width: 3; stroke-linejoin: round; }
.cmf-ft-sunline { stroke: #B5651D; stroke-width: 1.5; stroke-dasharray: 5 4; }
.cmf-ft-now { stroke: var(--cmf-navy); stroke-width: 2; }
.cmf-ft-dot { fill: #fff; stroke: var(--cmf-water); stroke-width: 2.5; }
.cmf-ft-hot { fill: var(--cmf-amber); }
.cmf-ft-warm { fill: #2F7FB8; }
.cmf-ft-cool { fill: #C9D3DC; }
.cmf-ft-baseline { stroke: #C9C2B2; }
.cmf-ft-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--cmf-text); }
.cmf-ft-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmf-ft-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.cmf-ft-sw-major { background: rgba(232, 134, 46, .45); }
.cmf-ft-sw-minor { background: rgba(232, 134, 46, .2); }
.cmf-ft-sw-sun { width: 2px; height: 14px; border-radius: 0; border-left: 2px dashed #B5651D; }
.cmf-ft-sw-night { background: rgba(12, 39, 59, .12); }
.cmf-ft-sw-hot { background: var(--cmf-amber); }
.cmf-ft-sw-warm { background: #2F7FB8; }
.cmf-ft-sw-cool { background: #C9D3DC; }

/* Side panel */
.cmf-ft-pairs, .cmf-ft-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmf-ft-warn { margin: 0; font-size: 14px; font-weight: 600; color: #8A3B0A; background: #FCEBDD; border-radius: 8px; padding: 8px 12px; }
.cmf-ft-moon { flex-direction: row; align-items: center; gap: 18px; }
.cmf-ft-moon-name { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 600; }
.cmf-ft-period { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F8F5EE; }
.cmf-ft-chip { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; min-width: 50px; text-align: center; color: var(--cmf-navy); }
.cmf-ft-chip.is-major { background: #F2B57A; }
.cmf-ft-chip.is-minor { background: #F8DCC0; }
.cmf-ft-tiderow { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEE9DE; font-size: 14px; }
.cmf-ft-tiderow > span:last-child { text-align: right; color: var(--cmf-text); }
.cmf-ft-high { color: var(--cmf-water); font-weight: 600; }
.cmf-ft-low { color: var(--cmf-muted); font-weight: 600; }
.cmf-ft-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cmf-ft-actions .cmf-ft-btn { flex: 1 1 150px; }
.cmf-ft-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.cmf-ft-links a { color: var(--cmf-navy); }
.cmf-ft-links a:hover { color: #8A4A10; }

/* Learn */
.cmf-ft-learn { display: flex; flex-direction: column; gap: 14px; }
.cmf-ft-learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cmf-ft-learn h3 { margin: 0; font-size: 16px; font-family: inherit; }
.cmf-ft-learn p { margin: 0; font-size: 14px; color: var(--cmf-text); }

/* Gear strip (server rendered) */
.cmf-ft-gear { display: flex; flex-direction: column; gap: 14px; }
.cmf-ft-gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cmf-ft-gear-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--cmf-line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--cmf-navy); }
.cmf-ft-gear-card:hover { border-color: var(--cmf-amber); }
.cmf-ft-gear-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.cmf-ft-gear-name { font-weight: 700; font-size: 15px; }
.cmf-ft-gear-price { font-size: 14px; color: var(--cmf-text); }


/* Location picker */
.cmf-ft-loc { display: flex; flex-direction: column; gap: 14px; }
.cmf-ft-body { display: flex; flex-direction: column; gap: 24px; transition: opacity .15s; }
.cmf-ft-body.is-loading { opacity: .5; pointer-events: none; }
.cmf-ft-locrow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cmf-ft-panel p { margin: 0; }
.cmf-ft-panel { background: #fff; border: 1px solid var(--cmf-line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.cmf-ft-zipform { display: flex; flex-direction: column; gap: 6px; }
.cmf-ft-zipform label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cmf-muted); }
.cmf-ft-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.cmf-ft-inline input { font: inherit; font-size: 16px; padding: 10px 14px; min-height: 44px; width: 160px; border: 1px solid #C9C2B2; border-radius: 10px; color: var(--cmf-navy); background: #fff; }
.cmf-ft-inline input:focus-visible, .cmf-ft-result:focus-visible { outline: 3px solid var(--cmf-amber); outline-offset: 2px; }
.cmf-ft-grow { flex: 1 1 280px; }
.cmf-ft-grow select { width: 100%; }
.cmf-ft-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.cmf-ft-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--cmf-line); border-radius: 10px; background: #F8F5EE; color: var(--cmf-navy); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.cmf-ft-result:hover { border-color: var(--cmf-amber); background: #fff; }
.cmf-ft-result .cmf-ft-muted { flex: none; font-weight: 500; }
.cmf-ft-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--cmf-muted); }
.cmf-ft-or::before, .cmf-ft-or::after { content: ""; flex: 1; height: 1px; background: var(--cmf-line); }
.cmf-ft-showing { display: flex; flex-direction: column; gap: 2px; }
.cmf-ft-showing-name { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 600; }

/* Phones */
@media (max-width: 600px) {
  .cmf-ft .cmf-ft-outlook-h { font-size: 26px; }
  .cmf-ft-field select { min-width: 0; width: 100%; }
  .cmf-ft-field, .cmf-ft-nav, .cmf-ft-locrow .cmf-ft-btn { width: 100%; }
  .cmf-ft-inline input, .cmf-ft-inline .cmf-ft-btn { flex: 1 1 100%; width: 100%; }
  .cmf-ft-nav .cmf-ft-btn { flex: 1 1 auto; }
  .cmf-ft-best { min-width: 0; width: 100%; }
}

/* Printable 30-day calendar */
.cmf-ft-print { display: none; }
@media print {
  body.cmf-ft-printing > *:not(.cmf-ft-print) { display: none !important; }
  body.cmf-ft-printing .cmf-ft-print { display: block !important; font-family: Inter, Arial, sans-serif; color: #000; }
  .cmf-ft-print h1 { font-family: Fraunces, Georgia, serif; font-size: 20pt; margin: 0 0 4pt; }
  .cmf-ft-print p { font-size: 9pt; margin: 0 0 10pt; }
  .cmf-ft-print table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .cmf-ft-print th, .cmf-ft-print td { border-bottom: 1px solid #bbb; padding: 3pt 4pt; text-align: left; vertical-align: top; }
  .cmf-ft-print th { background: #0C273B !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cmf-ft-print tr { page-break-inside: avoid; }
  .cmf-ft-pdots { letter-spacing: 1pt; }
}
