/* cache-bust 20261120-products-first */
/* Dog Trick Training
   Colors sampled from the supplied logo:
   navy #04244C, orange #F08030, teal #64B0AC.
   Orange and teal are accents. Body text stays navy so it stays readable. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600-italic.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces-700.woff2") format("woff2");
}

:root {
  --navy: #04244c;
  --navy-mid: #0c355f;
  --ink: #04244c;
  --muted: #3e4d63;
  --orange: #f08030;
  --orange-deep: #a34e10;
  --teal: #64b0ac;
  --teal-deep: #1f6f6c;
  --cream: #f4f0e8;
  --paper: #fffcf8;
  --white: #ffffff;
  --line: #e0d5c6;
  --focus: #a34e10;
  --display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(4, 36, 76, 0.06);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body:focus {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-deep);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #cfe7e5;
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}


.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: block;
  line-height: 0;
  border-radius: 12px;
}

.brand img {
  display: block;
  width: min(250px, 68vw);
  height: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.4rem 0.95rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.nav-bars,
.nav-bars::before,
.nav-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  content: "";
}

.nav-bars {
  position: relative;
}

.nav-bars::before,
.nav-bars::after {
  position: absolute;
  left: 0;
}

.nav-bars::before {
  top: -6px;
}

.nav-bars::after {
  top: 6px;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.nav-block {
  display: contents;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

#site-nav {
  display: none;
  grid-column: 1 / -1;
}

.nav-toggle:checked ~ #site-nav {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--cream);
}

.nav a[aria-current="page"] {
  box-shadow: inset 4px 0 0 var(--orange);
}

@media (min-width: 860px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    padding: 0.85rem 0;
  }

  .brand img {
    width: 210px;
  }

  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }

  #site-nav {
    display: block;
    flex: 1 1 auto;
  }

  .nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0;
  }

  .nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--orange);
  }
}

main {
  padding-bottom: 4rem;
}

.hero {
  padding: 2.25rem 0 1rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.lesson-index-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.15rem, 1.3rem + 3.4vw, 4rem);
  letter-spacing: -0.03em;
}

h1 em,
.lede em {
  font-style: italic;
  font-weight: 600;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-mark {
  justify-self: center;
  width: min(180px, 46vw);
}

.hero-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .hero {
    padding: 3.5rem 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-mark {
    width: 210px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.button-orange {
  background: var(--orange);
  border-color: #c96a22;
  color: var(--navy);
}

.button-orange:hover {
  background: #e07428;
  border-color: #b25d1c;
  color: var(--navy);
}

.button-ghost {
  background: transparent;
  color: var(--navy);
}

.button-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.section {
  padding: 1.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.section-head h2,
.page-head h1 {
  margin: 0 0 0.55rem;
}

.section-head p,
.page-head .lede {
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.35rem);
  letter-spacing: -0.02em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.steps .step-num {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--orange-deep);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lesson-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.lesson-index article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 760px) {
  .lesson-index article {
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
  }

  .lesson-num {
    grid-row: span 3;
  }
}

.lesson-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--orange-deep);
  line-height: 1;
}

.kicker {
  margin: 0;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-index h3 {
  margin: 0;
  font-size: 1.55rem;
}

.lesson-index h3 a {
  color: var(--navy);
  text-decoration: none;
}

.lesson-index h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.lesson-index p {
  margin: 0;
  color: var(--muted);
}

.panel-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .panel-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .panel-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.panel h3,
.download-card h2,
.download-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.panel p,
.download-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.panel-teal {
  background: #d7eeec;
  border-color: #b7dbd8;
}

.panel-orange {
  background: #fde6d4;
  border-color: #f3c7a4;
}

.panel-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.panel-navy h2,
.panel-navy h3,
.panel-navy p,
.panel-navy a {
  color: var(--cream);
}

.panel-navy a {
  font-weight: 700;
}

.download-card {
  display: grid;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .download-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.pdf-badge {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.download-card .file-meta {
  font-size: 0.92rem;
  color: var(--teal-deep);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-head {
  padding: 2rem 0 0.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--orange-deep);
}

.crumbs a {
  color: var(--teal-deep);
  font-weight: 700;
}

.lesson-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.session-card {
  order: -1;
  background: #d7eeec;
  border: 1px solid #b7dbd8;
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
}

.session-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.session-card dl {
  margin: 0;
}

.session-card dl > div {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.45rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(4, 36, 76, 0.12);
}

.session-card dt {
  font-weight: 700;
}

.session-card dd {
  margin: 0;
}

.session-card p {
  margin: 0.8rem 0 0;
}

@media (min-width: 960px) {
  .lesson-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18.5rem;
    align-items: start;
    gap: 1.5rem;
  }

  .session-card {
    order: 0;
    position: sticky;
    top: 1rem;
  }
}

.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 0.9rem;
}

.prose h2 {
  margin-top: 1.8rem;
  font-size: 1.7rem;
}

.prose h3 {
  margin-top: 1.2rem;
  font-size: 1.3rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  font-weight: 700;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.callout p {
  margin: 0;
}

.callout-label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--orange-deep);
}

.pager {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.pager a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--teal);
}

@media (min-width: 700px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }

  .pager a.next {
    text-align: right;
    justify-content: flex-end;
  }
}

.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.sheet-fields {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.write-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: end;
  margin: 0;
}

.write-line span {
  border-bottom: 2px solid var(--navy);
  min-height: 1.7rem;
}

.sheet-scroll {
  overflow-x: auto;
  max-width: 100%;
}

table.tracker {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  background: var(--white);
}

.tracker th,
.tracker td {
  border: 1px solid #8d97a6;
  padding: 0.45rem 0.5rem;
  vertical-align: top;
  text-align: left;
}

.tracker caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tracker th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
}

.tracker td {
  height: 3.2rem;
}

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 14px;
  padding: 0.35rem 0.5rem 0.25rem;
  line-height: 0;
}

.footer-logo img {
  width: 168px;
  height: auto;
}

.site-footer p {
  color: #d5deea;
  max-width: 36rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.follow-links {
  margin-top: 1.4rem;
}

.narrow {
  max-width: 42rem;
}

.stack > * + * {
  margin-top: 0.9rem;
}

.missing {
  padding-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #04244c;
    --muted: #04244c;
  }

  .button,
  .panel,
  .lesson-index article,
  .steps li,
  .download-card,
  .sheet {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle-label,
  .noprint,
  .skip-link,
  .hero-mark,
  .hero-photo,
  .pager {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }


  a {
    color: black;
    text-decoration: underline;
  }

  .sheet,
  .panel,
  .lesson-index article,
  .steps li,
  .callout,
  .session-card {
    box-shadow: none;
    background: white;
  }

  .sheet-scroll {
    overflow: visible;
  }

  table.tracker {
    min-width: 0;
  }
}

.hero-photo {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 40, 70, 0.18);
  border: 4px solid var(--white);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 25% 50%;
}

/* Gear-guide icons and product cards
   Icons are original illustrations in the logo colors. */
.guide-hero {
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

.guide-hero-icon,
.guide-card-icon,
.product-card-icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
}

.guide-hero-icon {
  width: 6.75rem;
  height: 6.75rem;
}

.guide-card-icon {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 0 0.55rem;
}

@media (min-width: 700px) {
  .guide-hero {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
  }
}

.product-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.15rem 0 1.5rem;
}

.product-card {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .product-card {
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
  }
}

.prose .product-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.prose .product-card p {
  margin: 0 0 0.55rem;
}

.prose .product-card p:last-child {
  margin-bottom: 0;
}
