@media print { table { break-inside:avoid; } h2 { break-after:avoid; } p { break-inside:avoid; orphans:3; widows:3; } }




  html { scroll-behavior: smooth; }
  body { min-width: 0; }
  a { overflow-wrap: anywhere; }
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px max(18px, calc((100% - 760px) / 2));
    border-bottom: 1px solid #d8c9ad;
    background: #fff;
    box-shadow: 0 2px 10px rgba(55,35,22,.08);
    font-family: Georgia, serif;
  }
  .site-nav .site-name { color: #6d1830; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .site-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 8px 18px; }
  .site-links a { color: #4b3b2f; font-size: 14px; text-decoration: none; }
  .site-links a:hover, .site-links a:focus, .search-toggle:hover, .search-toggle:focus { color: #6d1830; text-decoration: underline; }
  .site-section {
    box-sizing: border-box;
    max-width: 760px;
    margin: 28px auto;
    padding: 24px 28px;
    border-top: 4px solid #6d1830;
    background: #fff;
    box-shadow: 0 2px 14px rgba(55,35,22,.08);
    font-family: Georgia, serif;
  }
  .site-section h2 { margin: 0 0 12px; color: #6d1830; }
  .site-section p { line-height: 1.55; }
  .archive-item {
    display: block;
    padding: 14px 16px;
    border: 1px solid #d8c9ad;
    background: #f8f4ec;
    color: #6d1830;
    text-decoration: none;
  }
  .archive-item strong, .archive-item span { display: block; }
  .archive-item span { margin-top: 4px; color: #5b5148; font-size: 14px; }
  .resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .resource-card { padding: 14px; border: 1px solid #d8c9ad; background: #f8f4ec; }
  .resource-card strong { display: block; margin-bottom: 6px; color: #6d1830; }
  .resource-card span { color: #5b5148; font-size: 14px; line-height: 1.4; }
  .site-footer { padding: 24px 18px 38px; color: #6f655d; text-align: center; font: 13px/1.5 Georgia, serif; }
  #newsletter-masthead + p {
    line-height: 1.65;
  }
  #cw-grid, #cw-answer-grid {
    width: min(100%, 420px) !important;
    table-layout: fixed;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #cw-grid td, #cw-answer-grid td {
    width: auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }
  #cw-grid td.cw-open { background: #fff !important; }
  #cw-grid td.cw-open:focus-within { outline: 3px solid #c9a66b; outline-offset: -3px; z-index: 2; }
  #cw-grid input {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 0;
    padding: 3px 1px 0;
    background: transparent;
    color: #6d1830;
    text-align: center;
    text-transform: uppercase;
    font: 700 clamp(12px, 3.8vw, 18px)/1 Arial, sans-serif;
    caret-color: #6d1830;
  }
  #cw-grid input:focus { outline: 0; }
  #cw-grid td.cw-correct { background: #e8f4e8 !important; }
  #cw-grid td.cw-wrong { background: #fde9e9 !important; }
  .cw-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 16px;
  }
  .cw-controls button {
    appearance: none;
    border: 1px solid #6d1830;
    border-radius: 4px;
    padding: 9px 13px;
    background: #6d1830;
    color: #fff;
    font: 700 14px/1.2 Georgia, serif;
    cursor: pointer;
  }
  .cw-controls button.cw-secondary { background: #fff; color: #6d1830; }
  .cw-controls button:focus-visible { outline: 3px solid #c9a66b; outline-offset: 2px; }
  .cw-status {
    width: 100%;
    min-height: 1.4em;
    margin: 3px 0 0;
    color: #3f3f3f;
    text-align: center;
    font: 700 14px/1.4 Georgia, serif;
  }
  #cw-answer-grid[hidden] { display: none !important; }
  .search-toggle {
    appearance: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #4b3b2f;
    font: 400 14px/normal Georgia, serif;
    cursor: pointer;
    text-decoration: none;
  }
  .search-panel {
    box-sizing: border-box;
    width: min(100% - 24px, 760px);
    margin: 14px auto 0;
    padding: 14px 16px;
    border: 1px solid #d8c9ad;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(55,35,22,.1);
    font-family: Georgia, serif;
  }
  .search-panel[hidden] { display: none !important; }
  .search-row { display: flex; gap: 8px; margin-top: 7px; }
  .search-row input {
    min-width: 0;
    flex: 1;
    border: 1px solid #a99b86;
    border-radius: 4px;
    padding: 10px 11px;
    font: 16px/1.2 Arial, sans-serif;
  }
  .search-row button {
    border: 1px solid #6d1830;
    border-radius: 4px;
    padding: 9px 12px;
    background: #6d1830;
    color: #fff;
    font: 700 13px/1.2 Georgia, serif;
  }
  .search-row button.search-clear { background: #fff; color: #6d1830; }
  .search-results { list-style: none; margin: 10px 0 0; padding: 0; }
  .search-results:empty { display: none; }
  .search-result { padding: 10px 0; border-top: 1px solid #e5dccd; }
  .search-result a { color: #6d1830; font-size: 16px; font-weight: 700; }
  .search-result p { margin: 4px 0 0; color: #514b43; font: 14px/1.45 Georgia, serif; }
  .search-status { min-height: 1.3em; margin: 8px 0 0; color: #5b5148; font-size: 13px; }
  .search-match { outline: 3px solid #e2bd56; outline-offset: 3px; background: #fff7d6 !important; }
  .topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 13px; }
  .topic-tag {
    appearance: none;
    display: inline-block;
    border: 1px solid #c9a66b;
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff;
    color: #6d1830;
    font: 700 11px/1.2 Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
  }
  .topic-tag:visited { background: #fff; color: #6d1830; }
  .topic-tag:hover, .topic-tag:focus { background: #6d1830; color: #fff; outline: none; }
  @media (max-width: 600px) {
    .site-nav { position: static; display: block; padding: 12px 14px; text-align: center; }
    .site-links {
      flex-wrap: nowrap;
      justify-content: flex-start;
      gap: 8px;
      margin-top: 8px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .site-links::-webkit-scrollbar { display: none; }
    .site-links a { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
    .site-links .search-toggle { flex: 0 0 auto; padding: 0; font-size: 13px; }
    #current-edition { padding: 16px 10px !important; border-left-width: 4px !important; border-right-width: 4px !important; }
    .site-section { margin: 18px 8px; padding: 20px 16px; }
    .resource-grid { grid-template-columns: 1fr; }
    #cw-grid, #cw-answer-grid { width: 100% !important; }
    #cw-grid input { font-size: clamp(11px, 4.2vw, 16px); }
    .search-row { flex-wrap: wrap; }
    .search-row input { flex-basis: 100%; }
    .composer-card, .composer-card tbody, .composer-card tr, .composer-card td {
      display: block;
      width: 100% !important;
      box-sizing: border-box;
    }
    .composer-card td:first-child { padding: 16px 14px 4px !important; text-align: center; }
    .composer-card td:first-child img { width: min(100%, 220px) !important; margin: 0 auto; }
    .composer-card td:last-child { padding: 12px 16px 17px !important; }
  }




.site-shell{box-sizing:border-box;background:#fff;border-top:5px solid #6d1830;box-shadow:0 2px 14px rgba(55,35,22,.08)}
.site-nav a{margin:0;color:#4b3b2f;text-decoration:none}
.site-nav a:hover,.site-nav a:focus{color:#6d1830;text-decoration:underline}
.archive-item{display:block;margin-top:18px;padding:16px;border:1px solid #d8c9ad;background:#f8f4ec;color:#6d1830;text-decoration:none}
.archive-item strong,.archive-item span{display:block}
.archive-item span{margin-top:5px;color:#5b5148;font-size:14px}
@media(max-width:600px){.site-shell{margin:18px 8px!important;padding:20px 16px!important}}


.resource-link { display: block; color: inherit; text-decoration: none; }
.resource-link:hover, .resource-link:focus-visible { border-color: #6d1830; background: #fffaf0; outline: 3px solid #c9a66b; outline-offset: 2px; }
.resource-link .resource-action { margin-top: 10px; color: #6d1830; font-weight: 700; }
.toolkit-body { margin: 0; background: #f4f0e8; color: #252525; font-family: Georgia, serif; }
.toolkit-shell { box-sizing: border-box; width: min(100% - 32px, 980px); margin: 30px auto; }
.toolkit-hero, .toolkit-start, .toolkit-index, .toolkit-editions { box-sizing: border-box; margin-bottom: 22px; padding: 28px 32px; background: #fff; box-shadow: 0 2px 14px rgba(55,35,22,.08); }
.toolkit-hero { border-top: 5px solid #6d1830; text-align: center; }
.toolkit-hero h1 { margin: 5px 0 10px; color: #6d1830; font-size: clamp(32px, 5vw, 48px); }
.toolkit-hero > p:last-child { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.toolkit-kicker { margin: 0; color: #6d1830; font: 700 11px/1.2 Arial, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.toolkit-start h2, .toolkit-index h2, .toolkit-editions h2 { margin: 4px 0 16px; color: #6d1830; }
.toolkit-checklist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: toolkit-step; }
.toolkit-checklist li { position: relative; padding: 42px 13px 14px; border: 1px solid #d8c9ad; background: #fbf7ef; font-size: 14px; line-height: 1.5; counter-increment: toolkit-step; }
.toolkit-checklist li::before { position: absolute; top: 12px; left: 13px; width: 23px; height: 23px; border-radius: 50%; background: #6d1830; color: #fff; content: counter(toolkit-step); text-align: center; font: 700 13px/23px Arial, sans-serif; }
.toolkit-index-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.toolkit-count { margin: 0 0 16px; color: #6f655d; font-size: 14px; white-space: nowrap; }
.toolkit-search { margin: 0 0 14px; }
.toolkit-search label { display: block; margin-bottom: 6px; font-weight: 700; }
.toolkit-search > div { display: flex; gap: 8px; }
.toolkit-search input { min-width: 0; flex: 1; border: 1px solid #a99b86; border-radius: 4px; padding: 11px 12px; font: 16px/1.2 Arial, sans-serif; }
.toolkit-search button, .toolkit-filters button { appearance: none; border: 1px solid #6d1830; border-radius: 4px; padding: 9px 12px; background: #fff; color: #6d1830; font: 700 13px/1.2 Georgia, serif; cursor: pointer; }
.toolkit-search button:hover, .toolkit-search button:focus-visible, .toolkit-filters button:hover, .toolkit-filters button:focus-visible, .toolkit-filters button.is-active { background: #6d1830; color: #fff; }
.toolkit-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.toolkit-term { padding: 18px; border: 1px solid #d8c9ad; border-top: 3px solid #c9a66b; background: #fff; }
.toolkit-term[hidden] { display: none; }
.toolkit-term h3 { margin: 4px 0 8px; color: #6d1830; font-size: 21px; }
.toolkit-term p { margin: 0; line-height: 1.55; }
.toolkit-term .term-category { color: #746657; font: 700 10px/1.2 Arial, sans-serif; letter-spacing: 1.1px; text-transform: uppercase; }
.toolkit-term .term-try { margin-top: 11px; padding-top: 10px; border-top: 1px solid #eadfcd; font-size: 14px; }
.toolkit-empty { margin: 12px 0 0; padding: 18px; background: #fbf7ef; text-align: center; }
.toolkit-editions > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.toolkit-editions a { display: block; padding: 15px; border: 1px solid #d8c9ad; background: #fbf7ef; color: #6d1830; text-decoration: none; }
.toolkit-editions a:hover, .toolkit-editions a:focus-visible { border-color: #6d1830; outline: 3px solid #c9a66b; outline-offset: 2px; }
.toolkit-editions strong, .toolkit-editions span { display: block; }
.toolkit-editions span { margin-top: 5px; color: #5b5148; font-size: 13px; line-height: 1.4; }
@media(max-width:800px){
  .toolkit-checklist { grid-template-columns: repeat(2, 1fr); }
  .toolkit-editions > div { grid-template-columns: 1fr; }
}
@media(max-width:600px){
  .toolkit-shell { width: auto; margin: 18px 8px; }
  .toolkit-hero, .toolkit-start, .toolkit-index, .toolkit-editions { padding: 21px 16px; }
  .toolkit-hero > p:last-child { font-size: 16px; }
  .toolkit-checklist, .toolkit-grid { grid-template-columns: 1fr; }
  .toolkit-index-heading { align-items: start; }
  .toolkit-search > div { flex-wrap: wrap; }
  .toolkit-search input { flex-basis: 100%; }
}


.topics-body { margin: 0; background: #f4f0e8; color: #252525; font-family: Georgia, serif; }
.topics-shell { box-sizing: border-box; width: min(100% - 32px, 900px); margin: 30px auto; }
.topics-hero, .topic-jump, .topics-group, .topics-next { box-sizing: border-box; margin-bottom: 22px; background: #fff; box-shadow: 0 2px 14px rgba(55,35,22,.08); }
.topics-hero { border-top: 5px solid #6d1830; padding: 28px 34px; text-align: center; }
.topics-hero h1 { margin: 5px 0 10px; color: #6d1830; font-size: clamp(32px, 5vw, 48px); }
.topics-hero > p:last-child { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.topic-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px; }
.topic-jump a { border: 1px solid #c9a66b; border-radius: 999px; padding: 6px 11px; background: #fff; color: #6d1830; font: 700 12px/1.2 Arial, sans-serif; text-decoration: none; }
.topic-jump a:visited { background: #fff; color: #6d1830; }
.topic-jump a:hover, .topic-jump a:focus-visible { background: #6d1830; color: #fff; }
.topics-group { padding: 28px 32px 12px; }
.topics-group-heading { padding-bottom: 14px; border-bottom: 2px solid #c9a66b; }
.topics-group-heading h2 { margin: 4px 0 0; color: #6d1830; }
.topic-explainer { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 15px; padding: 23px 0; border-bottom: 1px solid #e3d7c3; scroll-margin-top: 72px; }
.topic-explainer:last-child { border-bottom: 0; }
.topic-explainer:target { margin: 0 -14px; padding: 23px 14px; border-left: 4px solid #6d1830; background: #f8f4ec; }
.topic-number { width: 38px; height: 38px; margin: 0; border-radius: 50%; background: #6d1830; color: #fff; text-align: center; font: 700 12px/38px Arial, sans-serif; }
.topic-explainer h3 { margin: 1px 0 8px; color: #6d1830; font-size: 24px; }
.topic-explainer p { margin: 0 0 10px; line-height: 1.58; }
.topic-links { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 3px; }
.topic-links a { border-bottom: 1px solid #c9a66b; color: #6d1830; font-size: 14px; font-weight: 700; text-decoration: none; }
.topic-links a:hover, .topic-links a:focus { border-bottom-color: #6d1830; }
.topics-next { padding: 26px 30px; border-left: 5px solid #c9a66b; text-align: center; }
.topics-next h2 { margin: 0 0 8px; color: #6d1830; }
.topics-next p { max-width: 690px; margin: 0 auto 14px; line-height: 1.55; }
.topics-next a { display: inline-block; padding: 10px 14px; border-radius: 4px; background: #6d1830; color: #fff; font-weight: 700; text-decoration: none; }
@media(max-width:600px){
  .topics-shell { width: auto; margin: 18px 8px; }
  .topics-hero, .topics-group, .topics-next { padding: 21px 16px; }
  .topics-hero > p:last-child { font-size: 16px; }
  .topic-jump { justify-content: flex-start; }
  .topic-explainer { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; }
  .topic-number { width: 32px; height: 32px; font-size: 11px; line-height: 32px; }
  .topic-explainer h3 { font-size: 21px; }
}

/* Keep Resources and its dropdown arrow the same size as the other menu links. */
.site-links > .cw-resources-nav { font-size:14px; }
@media(max-width:600px) { .site-links > .cw-resources-nav { font-size:13px; } }


@media(max-width:600px){.site-links{flex-wrap:wrap!important;justify-content:center!important;overflow:visible!important}}

/* Default link colour follows the site's burgundy palette. More specific button and navigation styles remain intact. */
a { color: #6d1830; }
