/* Practical projects share the site's colours, typography and navigation. */
.project-hero { background: radial-gradient(ellipse at 85% 15%, #285449, #101418 70%); }
.project-hero .hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 900px; gap: 0; align-items: center; }
.project-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); max-width: 760px; line-height: 1.08; }
.project-hero .hero-lead { max-width: 650px; color: #d0ddd7; }
.project-hero .hero-art { margin: 0; }
.project-hero .hero-art img { width: 100%; border: 1px solid #477565; border-radius: 12px; }
.project-hero figcaption { color: #b9cbc3; font-size: .78rem; margin-top: 10px; line-height: 1.5; }
.project-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.project-meta span { color: #d5e5dc; font-size: .8rem; border: 1px solid #59726a; border-radius: 30px; padding: 7px 12px; }
.learn-links, .project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.learn-links a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.learn-links a + a { margin-left: 12px; }
.project-note { color: var(--muted-dark); font-size: .9rem; max-width: 780px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; border: 1px solid #b9cdc1; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.project-card:hover { border-color: #228775; box-shadow: 0 10px 24px #1820271a; }
.project-card > img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.project-card-body { padding: 26px; display: flex; flex: 1; flex-direction: column; }
.project-card h3 { font-size: 1.4rem; line-height: 1.25; margin: 12px 0; }
.project-card p { margin: 0 0 14px; color: var(--muted-dark); }
.project-card .eyebrow { color: #705315; font-size: .72rem; }
.project-card .card-link { margin-top: auto; }
.project-route { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.project-route li { font-size: .8rem; color: #cfdfd6; line-height: 1.6; }
.project-route li + li::before { content: '→'; margin-right: 8px; color: var(--gold); }
.project-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project-intro h2 { font-size: 1.55rem; }
.project-intro p { color: var(--muted-dark); }
.project-settings { margin-top: 32px; }
.project-settings .options-table tbody th { width: 36%; }
.project-settings .options-table td:nth-child(2) { color: #163f34; font-weight: 600; width: 27%; }
.project-steps { list-style: none; margin: 0; padding: 0; }
.project-step { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 900px; gap: 0; padding: 42px 0; border-top: 1px solid var(--line-dark); align-items: center; }
.step-kicker { display: block; color: #286450; font-size: .77rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.project-step h3 { font-size: 1.7rem; margin: 0 0 14px; line-height: 1.2; }
.step-path { display: block; padding: 12px 15px; background: #e6eee8; border-radius: 6px; color: #38554a; font-size: .84rem; line-height: 1.6; }
.step-body p { color: var(--muted-dark); }
.step-body a { color: #176f61; text-decoration: underline; text-underline-offset: 3px; }
.step-result { border-left: 3px solid #309b7b; padding-left: 16px; }
.step-result strong { display: block; color: #1b513d; }
.step-figure { margin: 0; }
.step-figure img { width: 100%; border-radius: 8px; }
.step-figure figcaption { color: var(--muted-dark); font-size: .8rem; line-height: 1.6; margin-top: 10px; }
.project-checklist { max-width: 850px; }
.project-checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 17px 0; border-bottom: 1px solid #bdd0c0; line-height: 1.6; cursor: pointer; }
.project-checklist input { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 3px; accent-color: #216448; }
.checklist-status { font-weight: 600; color: #24573e; }
.project-checklist .btn { font: inherit; cursor: pointer; }
.faq-list { max-width: 960px; }
.faq-item { border-bottom: 1px solid #bbd0c2; padding: 0; }
.faq-item summary { padding: 23px 30px 23px 0; font-weight: 600; line-height: 1.5; cursor: pointer; }
.faq-item[open] summary { color: #155f4d; }
.faq-answer { padding: 0 24px 22px 0; max-width: 860px; }
.faq-answer p { margin-top: 0; color: var(--muted-dark); }
.faq-answer a { color: #176f61; text-decoration: underline; text-underline-offset: 3px; }
.faq-search { max-width: 850px; margin-top: 30px; }
.faq-search label { display: block; margin-bottom: 10px; font-weight: 600; }
.faq-search input { min-width: 0; flex: 1; padding: 15px; border: 1px solid #8caca0; border-radius: 6px; background: #f7f9f4; color: #182027; font: inherit; }
.faq-search .btn { font: inherit; cursor: pointer; }
.project-index-actions { padding: 24px; border: 1px solid #b9cdc1; border-radius: 8px; background: #edf3e9; margin-bottom: 30px; }
.project-index-actions h2 { font-size: 1.5rem; margin: 0 0 10px; }
.project-index-actions p { margin: 0; color: var(--muted-dark); }
.project-index-actions a { color: #176f61; }
.project-index-actions .btn { color: var(--text-dark); }
.next-project { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.next-project p { max-width: 700px; }
.learn-footer { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: #d1ddd5; font-size: .9rem; }
.learn-footer a:hover { text-decoration: underline; }
.update-date { font-size: .85rem; color: #597165; }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.capability-list article { padding-top: 24px; border-top: 1px solid var(--line-dark); }
.capability-list h3 { font-size: 1.3rem; }
.capability-list a { text-decoration: underline; color: #176f61; text-underline-offset: 3px; }
/* The extra Examples destination needs the compact menu on tablets too. */
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav-toggle { display: block; position: absolute; right: 16px; width: 42px; height: 42px; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
  .menu { position: fixed; top: 76px; left: 0; right: 0; display: none; padding: 10px 16px 16px; background: #101418; border-bottom: 1px solid var(--line); }
  .menu a { display: block; padding: 12px; font-size: .95rem; }
  .nav-toggle:checked ~ .menu { display: block; }
  .nav-toggle:focus-visible + .burger { outline: 3px solid var(--gold); outline-offset: 4px; }
  .nav-toggle:checked + .burger span { background: transparent; }
  .nav-toggle:checked + .burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .burger span::after { top: 0; transform: rotate(-45deg); }
}
@media (max-width: 1080px) and (min-width: 761px) { .project-grid { gap: 16px; } .project-card-body { padding: 20px; } }
@media (max-width: 900px) { .project-hero .hero-layout { grid-template-columns: 1fr; gap: 32px; } .project-hero .hero-art { max-width: 680px; } .project-step { gap: 28px; } }
@media (max-width: 760px) {
  .project-grid, .project-intro, .project-step, .capability-list, .next-project { grid-template-columns: 1fr; }
  .project-card > img { aspect-ratio: 8/5; }
  .project-intro { gap: 15px; }
  .project-step { gap: 20px; padding: 30px 0; }
  .project-hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .project-settings .options-table { min-width: 590px; }
  .project-actions .btn { text-align: center; }
  .learn-links { gap: 16px; }
  .learn-links a + a { margin-left: 0; }
  .faq-search input { width: 100%; }
  .learn-footer { gap: 14px; }
}
@media print {
  .site-header, .footer, .toc, .project-actions, .learn-links, .checklist-actions, .skip-link, .next-project { display: none !important; }
  html { scroll-behavior: auto; }
  body, .project-hero, .band, .page-hero { background: white !important; color: black !important; }
  .page-hero *, .band p, .band a, .step-kicker { color: black !important; }
  .page-hero, .band { padding: 20px 0 !important; }
  .container { width: 100%; }
  .project-step { break-inside: avoid; padding: 20px 0; gap: 24px; }
  .hero-art { max-width: 330px !important; }
  .project-hero .hero-layout { grid-template-columns: 1fr; }
  .project-hero h1 { font-size: 26pt; }
  .project-step h3 { font-size: 16pt; }
  .project-settings .options-table { min-width: 0; font-size: 9pt; }
  .project-settings .options-table th, .project-settings .options-table td { padding: 8px; }
  .table-wrap { overflow: visible; }
}
