:root {
      --bg:           #f0f2f5;
      --surface:      #ffffff;
      --border:       #e2e6ea;
      --border-focus: #1380a0;
      --primary:      #1380a0;
      --primary-dim:  #e6f4f9;
      --primary-dark: #0e6080;
      --text:         #0f1317;
      --muted:        #474f58;
      --muted-light:  #6b7580;
      --badge-uaf:    #ffcd00;
      --badge-uas:    #059ac7;
      --r:            .375rem;
      --r-sm:         .25rem;
      --shadow:       0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
      --shadow-hover: 0 4px 12px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.05);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-size: 15px;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
h2, .h2, h1, .h1 {
    font-family: inherit;
}
.fisheries-app {
	background:#f0f2f5;
	margin-bottom: 3rem;
}
    /* ── Page header ─────────────────────────────── */
    .page-header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 2rem 0 1.75rem;
    }
    .page-header h1 {
      font-size: clamp(1.6rem, 3.5vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -.02em;
      color: var(--text);
      margin-bottom: .4rem;
    }
    .page-header p {
      color: var(--muted);
      font-size: .9375rem;
      max-width: 620px;
      margin: 0;
    }

    /* ── Sticky progress bar ─────────────────────── */
    .progress-row {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: .75rem 0;
      position: sticky;
      top: 0;
      z-index: 200;
    }
    .progress-track {
      height: 5px;
      background: var(--border);
      border-radius: 99px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: var(--primary);
      border-radius: 99px;
      transition: width .35s ease;
    }
    .progress-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: .45rem;
    }
    .step-label-text { font-size: .8rem; color: var(--muted); font-weight: 500; }
    .btn-start-over {
      font-size: .8rem; font-weight: 500; color: var(--muted);
      background: none; border: none; cursor: pointer; padding: 0;
      transition: color .15s;
    }
    .btn-start-over:hover { color: var(--text); }

    /* ── Section card ────────────────────────────── */

section {
	padding-top: 0;
	padding-bottom: 0;
}
    .section-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      margin-bottom: 1.25rem;
      animation: fadeUp .22s ease both;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .section-head {
      padding: 1.4rem 1.5rem 1.1rem;
      border-bottom: 1px solid var(--border);
    }
    .section-step {
      font-size: 1rem; font-weight: 600;
      letter-spacing: .07em; text-transform: uppercase;
      color: var(--primary); margin-bottom: .3rem;
    }
    .section-head h2 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
    .section-head p  { font-size: .875rem; color: var(--muted); margin: 0; }
    .section-body { padding: 1.25rem 1.5rem; }
    @media (max-width: 576px) {
      .section-head, .section-body { padding: 1rem; }
    }

    /* ── Choice cards ────────────────────────────── */
    /* Equal-height choice cards */
    #interestCards > div, #priorCards > div, #durationCards > div { display: flex; }

    .choice-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--r);
      padding: 1rem 1.1rem;
      cursor: pointer; text-align: left; width: 100%; display: block;
      transition: border-color .14s, box-shadow .14s, background .14s;
      position: relative;
    }
    .choice-card:hover { border-color: #8fa8c8; box-shadow: var(--shadow-hover); }
    .choice-card[aria-pressed="true"] {
      border-color: var(--primary);
      background: var(--primary-dim);
      box-shadow: 0 0 0 3px rgba(19,128,160,.12);
    }
    .choice-check {
      position: absolute; top: .7rem; right: .7rem;
      width: 1.2rem; height: 1.2rem;
      border-radius: 50%; background: var(--primary); color: #fff;
      font-size: .6rem; display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity .14s;
    }
    .choice-card[aria-pressed="true"] .choice-check { opacity: 1; }
    .choice-title { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; padding-right: 1.5rem; line-height: 1.35; }
    .choice-sub   { font-size: .9rem; color: var(--muted); line-height: 1.45; }
    .choice-meta  { font-size: .9rem; color: var(--muted); font-weight: 500; margin-top: .3rem; }

    /* ── Back / action buttons ───────────────────── */
    .btn-back {
      font-size: .8125rem; font-weight: 500; color: var(--muted);
      background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
      padding: .3rem .7rem; cursor: pointer; white-space: nowrap;
      display: inline-flex; align-items: center; gap: .25rem;
      transition: color .13s, border-color .13s, background .13s;
    }
    .btn-back:hover { color: var(--text); border-color: #c0c8ce; background: var(--bg); }

    .btn-action {
      font-size: .775rem; font-weight: 500; color: var(--muted);
      background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
      padding: .28rem .65rem; cursor: pointer; white-space: nowrap;
      display: inline-flex; align-items: center; gap: .25rem;
      transition: color .13s, border-color .13s, background .13s;
    }
    .btn-action:hover { color: var(--text); border-color: #c0c8ce; background: var(--bg); }

    /* ── Results top bar ─────────────────────────── */
    .results-bar {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      padding: 1.1rem 1.5rem;
      margin-bottom: 1rem;
      animation: fadeUp .22s ease both;
    }
    @media (max-width: 576px) { .results-bar { padding: .9rem 1rem; } }

    /* search */
    .search-wrap { position: relative; }
    .search-wrap .bi-search {
      position: absolute; left: .75rem; top: 50%;
      transform: translateY(-50%);
      color: var(--muted-light); font-size: .85rem; pointer-events: none;
    }
    .search-wrap input {
      padding-left: 2.1rem; padding-right: 2rem;
      height: 2.25rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
      font-size: .875rem; font-family: inherit; background: var(--bg); color: var(--text); width: 100%;
      transition: border-color .14s, background .14s, box-shadow .14s;
	  margin-bottom:0;
    }
    .search-wrap input:focus {
      outline: none; background: var(--surface);
      border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(19,128,160,.1);
    }
    .search-wrap input::placeholder { color: var(--muted-light); }
    .btn-clear-search {
      position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
      background: none; border: none; padding: .15rem .3rem;
      color: var(--muted-light); cursor: pointer; font-size: .75rem; transition: color .13s;
    }
    .btn-clear-search:hover { color: var(--text); }

    /* selection chips */
    .sel-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
    .sel-chip {
      font-size: .75rem; font-weight: 500;
      background: var(--bg); border: 1px solid var(--border); border-radius: 99px;
      padding: .2rem .65rem; color: var(--text); display: inline-flex; align-items: center; gap: .3rem;
    }
    .sel-chip-label { font-size: .72rem; color: var(--muted); font-weight: 400; }
    .result-count { font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

    /* ── Filter sidebar ──────────────────────────── */
    .filter-group {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: .75rem;
      box-shadow: var(--shadow);
    }
    .filter-group-title {
      font-size: .72rem; font-weight: 700; letter-spacing: .07em;
      text-transform: uppercase; color: var(--muted); margin-bottom: .65rem;
    }
    .form-check { margin-bottom: .35rem; }
    .form-check-input { cursor: pointer; }
    .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
    .form-check-input:focus { box-shadow: 0 0 0 3px rgba(19,128,160,.15); }
    .form-check-label { font-size: .8375rem; color: var(--text); cursor: pointer; }

    .btn-clear-filters {
      font-size: .775rem; font-weight: 500; color: var(--muted);
      background: none; border: none; cursor: pointer; padding: 0; transition: color .13s;
    }
    .btn-clear-filters:hover { color: var(--text); }

    /* mobile filter toggle */
    .btn-filter-toggle {
      font-size: .8125rem; font-weight: 500; color: var(--text);
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
      padding: .3rem .75rem; cursor: pointer;
      display: inline-flex; align-items: center; gap: .4rem; transition: border-color .13s;
    }
    .btn-filter-toggle:hover { border-color: #c0c8ce; }
    .filter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: none; }
    .mobile-filters { display: none; }
    .mobile-filters.open { display: block; }

    /* ── Program cards ───────────────────────────── */
    .program-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
      box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column;
      transition: box-shadow .15s, transform .15s;
      animation: fadeUp .2s ease both;
    }
    .program-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
    .pc-body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
    .pc-topic { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: .3rem; }
    .pc-title { font-size: 1.0625rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: .25rem; }
    .pc-degree-link {
      display: inline-flex; align-items: center; gap: .3rem;
      font-size: .72rem; font-weight: 600;
      padding: .2rem .6rem;
      border-radius: .25rem;
      text-decoration: none;
      margin-bottom: .5rem;
      transition: opacity .13s;
    }
    /* Degree type colours */
    .deg-oe, .deg-cert, .deg-assoc, .deg-bach, .deg-grad, .deg-minor, .deg-default {
      background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
    }
    .pc-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .4rem; }
    .mau-badge { font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: .3rem; color: #fff; }
    .mau-uaf   { background: var(--badge-uaf); color: #1a1f24 !important; }
    .mau-uas   { background: var(--badge-uas); color: #fff !important; }
    .mau-other { background: var(--muted); }
    .pc-campus { font-size: .775rem; color: var(--muted); }
    .pc-delivery { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .55rem; }
    .del-pill {
      font-size: .72rem; font-weight: 500; padding: .15rem .5rem; border-radius: 99px;
      border: 1px solid var(--border); background: var(--bg); color: var(--muted);
      display: inline-flex; align-items: center; gap: .25rem;
    }
    .pc-desc { font-size: .8375rem; color: #2e363d; line-height: 1.55; flex: 1; margin-bottom: .5rem; }
    .pc-info {
      font-size: .775rem; color: var(--muted); padding-top: .5rem; margin-top: auto;
      border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem .9rem;
    }
    .pc-jobs { font-size: .775rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }
    .pc-jobs strong { color: var(--text); font-weight: 600; }
    .pc-link {
      display: inline-flex; align-items: center; gap: .3rem; margin-top: .75rem;
      font-size: .8125rem; font-weight: 600; color: #083c71 !important;
      background: var(--primary-dim); border: 1px solid rgba(19,128,160,.2);
      border-radius: var(--r-sm); padding: .4rem .85rem; text-decoration: none;
      transition: background .14s, border-color .14s, color .14s;
    }
    .pc-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
    /* ── Empty state ─────────────────────────────── */
    .empty-msg { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
    .empty-msg .bi { font-size: 2rem; display: block; margin-bottom: .75rem; opacity: .35; }
    .empty-msg h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
    .empty-msg p  { font-size: .875rem; max-width: 320px; margin: 0 auto; }

    /* ── Alerts ──────────────────────────────────── */
    #status, #error { border-radius: var(--r); font-size: .875rem; }
    .spinner-sm {
      display: inline-block; width: .9rem; height: .9rem;
      border: 2px solid rgba(19,128,160,.2); border-top-color: var(--primary);
      border-radius: 50%; animation: spin .55s linear infinite;
      vertical-align: middle; margin-right: .35rem;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* card stagger */
    .prog-col:nth-child(1)   { animation-delay:  20ms; }
    .prog-col:nth-child(2)   { animation-delay:  50ms; }
    .prog-col:nth-child(3)   { animation-delay:  80ms; }
    .prog-col:nth-child(4)   { animation-delay: 110ms; }
    .prog-col:nth-child(5)   { animation-delay: 140ms; }
    .prog-col:nth-child(6)   { animation-delay: 170ms; }
    .prog-col:nth-child(n+7) { animation-delay: 190ms; }

    /* ── Focus-visible rings (keyboard nav) ──────── */
    :focus-visible {
      outline: 3px solid var(--primary);
      outline-offset: 2px;
    }
    /* Suppress mouse-focus outline on cards/buttons that have their own style */
    .choice-card:focus:not(:focus-visible),
    .btn-back:focus:not(:focus-visible),
    .btn-action:focus:not(:focus-visible),
    .btn-start-over:focus:not(:focus-visible),
    .btn-filter-toggle:focus:not(:focus-visible),
    .btn-clear-search:focus:not(:focus-visible),
    .btn-clear-filters:focus:not(:focus-visible),
    .pc-link:focus:not(:focus-visible) { outline: none; }

    .choice-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
    .pc-link:focus-visible     { outline: 3px solid var(--primary); outline-offset: 2px; }

    /* ── Touch targets: min 44×44px ─────────────── */
    .btn-back,
    .btn-action,
    .btn-filter-toggle,
    .btn-start-over {
      min-height: 44px;
      min-width: 44px;
    }
    .btn-clear-search { min-height: 44px; min-width: 44px; }
    .form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
    .form-check { min-height: 30px; align-items: center; margin-bottom: 0; }
    .form-check-label { padding-left: .4rem; }

    /* ── Reduce motion ───────────────────────────── */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }

    /* ── Mobile layout tweaks ────────────────────── */
    @media (max-width: 576px) {
      /* Header */
      .page-header { padding: 1.25rem 0 1rem; }

      /* Progress row */
      .progress-row { padding: .6rem 0; }

      /* Results bar — stack search above chips */
      .results-bar .d-flex.flex-wrap.align-items-center.gap-2.mb-2 { flex-direction: column; align-items: stretch; }
      .results-bar .search-wrap { max-width: 100% !important; }
      .result-count { text-align: right; }

      /* Stack chips row */
      .sel-chips { gap: .35rem; }

      /* Action buttons — allow wrap and full stretch */
      .results-bar .d-flex.flex-wrap.gap-2 { width: 100%; }
      .btn-back, .btn-action { flex: 1 1 auto; justify-content: center; font-size: .8125rem; }

      /* Program grid — single column */
      .col-md-6 { width: 100%; }

      /* Filter groups on mobile */
      .filter-group { padding: .85rem .9rem; }

      /* Choice cards — slightly bigger touch area */
      /* Equal-height choice cards */
    #interestCards > div, #priorCards > div, #durationCards > div { display: flex; }

    .choice-card { padding: 1.1rem 1rem; }

      /* Section body */
      .section-body .row.g-3 { --bs-gutter-x: .75rem; }
    }

    @media (max-width: 400px) {
      .page-header h1 { font-size: 1.35rem; }
      .btn-back, .btn-action { font-size: .75rem; padding: .3rem .5rem; }
    }

    /* ── High-contrast mode support ─────────────── */
    @media (forced-colors: active) {
      .choice-card[aria-pressed="true"] { border: 3px solid ButtonText; }
      .mau-badge { forced-color-adjust: none; }
      .progress-fill { forced-color-adjust: none; background: Highlight; }
    }
