/* guides.css — the guide pages for schools choosing an MIS
   (/questions-to-ask-an-mis-supplier, /mis-data-exit-checklist,
   /mis-tender-template, /switching-mis-timeline).

   Loaded last, after integrations.css (page shell, bands), product.css (hero,
   ticks, cards) and switch.css (question cards, plan, promises), all of which
   these pages reuse. Only what a guide needs and those files lack is here.
   Bump ?v= in the four pages when this file changes. */

/* a guide's hero is words only: one column, a longer measure */
.gd .pd-hero { grid-template-columns: minmax(0, 1fr); }
.gd .pd-hero h1 { max-width: 22ch; }
.gd .pd-hero .sub { max-width: 62ch; }
.gd-meta { margin-top: 22px; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--cube-gray-600, #5b5b5b); }

/* jump links under the hero */
.gd-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gd-jump a { display: inline-block; padding: 7px 12px; background: #fff; border: 2px solid var(--black); border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; }
.gd-jump a:hover, .gd-jump a:focus-visible { background: var(--yellow); }

/* ---------- numbered items: a question or a checklist line, the reason, a good answer ---------- */
.gd-items { list-style: none; max-width: 880px; margin-inline: auto; background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); overflow: hidden; }
.gd-items > li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 18px; padding: 22px 26px; border-top: 2px dashed #d6d6d6; }
.gd-items > li:first-child { border-top: 0; }
.gd-items > li > * { grid-column: 2; }
.gd-items .n { grid-column: 1; grid-row: 1 / span 4; align-self: start; display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); border: 2.5px solid var(--black); border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1; }
.gd-items h3 { font-size: 19px; line-height: 1.3; }
.gd-items p { margin-top: 8px; font-size: var(--t-body); line-height: var(--lh-body); }
.gd-items .good { margin-top: 12px; padding: 11px 14px; background: var(--cube-secondary-1100, #f4f4f4); border: 2px solid var(--black); border-radius: 8px; }
.gd-items .good b { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- the note beside a chapter: how to use it, dates to write down ---------- */
.gd-aside { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-l, 6px 6px 0 0 #000); padding: 24px 24px 22px; }
.gd-aside .lbl { margin-bottom: 14px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.gd-aside ol { list-style: none; counter-reset: gd; display: grid; gap: 12px; }
.gd-aside li { counter-increment: gd; position: relative; padding-left: 34px; font-size: var(--t-body); line-height: var(--lh-body); }
.gd-aside li::before { content: counter(gd); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 22px; height: 22px; background: var(--yellow); border: 2px solid var(--black); border-radius: 6px; font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1; }
.gd-aside b { font-weight: 700; }

/* one promise, not two: centred, and the page's links read as links */
.sw-promises.gd-one { grid-template-columns: minmax(0, 640px); justify-content: center; }
.gd .pd-across a, .gd .pd-ticks a, .gd-aside a { font-weight: 700; }

/* ---------- the tender template: a document to copy ---------- */
.gd-doc { max-width: 880px; margin-inline: auto; background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); overflow: hidden; }
.gd-doc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; background: var(--cube-secondary-1100, #f4f4f4); border-bottom: 3px solid var(--black); }
.gd-doc-bar span { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; overflow-wrap: anywhere; }
.gd-copy { padding: 8px 14px; background: var(--green); color: var(--black); border: 2.5px solid var(--black); border-radius: 8px; box-shadow: var(--cube-shadow-ss, 2px 2px 0 0 #000); font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; }
.gd-copy:hover { background: var(--yellow); }
.gd-copy:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.gd-copy:active { transform: translate(2px, 2px); box-shadow: none; }
.gd-doc-body { padding: 8px 28px 30px; }
.gd-doc-body h3 { margin-top: 26px; padding-bottom: 8px; border-bottom: 2px dashed #d6d6d6; font-size: 19px; line-height: 1.3; }
.gd-doc-body p { margin-top: 12px; font-size: var(--t-body); line-height: var(--lh-body); max-width: 68ch; }
.gd-doc-body ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.gd-doc-body li { position: relative; padding-left: 28px; font-size: var(--t-body); line-height: 1.55; }
.gd-doc-body li::before { content: ""; position: absolute; left: 0; top: .22em; width: 14px; height: 14px; background: #fff; border: 2.5px solid var(--black); border-radius: 3px; }

@media (max-width: 820px) {
  .gd-aside { margin-top: 4px; }
}
@media (max-width: 620px) {
  .gd-items > li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 18px 16px; }
  .gd-items .n { width: 32px; height: 32px; font-size: 14px; }
  .gd-items h3, .gd-doc-body h3 { font-size: 17px; }
  .gd-doc-body { padding: 4px 16px 22px; }
  .gd-doc-bar { padding: 10px 14px; }
}
