/* The public /guides/ and /tools/ pillar. Same brand as the landing page - IELTS red,
   purple secondary, white ground, 2px black strokes, square corners. Bengali runs in
   Hind Siliguri beside English throughout, which is the whole product promise. */
:root {
  --red: #e31837; --red-dark: #b81129; --red-wash: #fdeef1;
  --purple: #5900c1; --purple-dark: #45009a; --purple-wash: #f3ecff;
  --ink: #171717; --ink-2: #333; --muted: #6b6b6b; --line: #e5e5e5; --stroke: #171717;
  --measure: 46rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body.guide {
  font-family: Geist, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--ink-2); background: #fff;
  -webkit-font-smoothing: antialiased;
}
.bn { font-family: "Hind Siliguri", Geist, sans-serif; line-height: 1.85; }
a { color: var(--purple); }
a:hover { color: var(--red); }

/* --- chrome --- */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-bottom: 2px solid var(--stroke); background: #fff;
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
header.site .brand { font: 400 21px var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.4px; }
header.site .brand span { color: var(--red); }
header.site nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
header.site nav a { font: 600 14px Geist, Arial; color: var(--ink); text-decoration: none; padding: 9px 12px; min-height: 44px; display: flex; align-items: center; }
header.site nav a:hover { color: var(--red); }
header.site nav a.cta { background: var(--red); color: #fff; border: 2px solid var(--red); }
header.site nav a.cta:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

nav.crumb { max-width: var(--measure); margin: 0 auto; padding: 16px 22px 0; font-size: 13px; color: var(--muted); }
nav.crumb a { color: var(--muted); }
nav.crumb span { color: var(--ink); font-weight: 600; }

main { max-width: var(--measure); margin: 0 auto; padding: 8px 22px 72px; }

/* --- type --- */
.eyebrow { font: 700 12px Geist, Arial; letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin: 22px 0 10px; }
h1 { font-family: var(--font-display); font-weight: 400;
     font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; letter-spacing: -.5px; color: var(--ink); }
  /* Blackbird has no Bengali and no weight axis, so the Bengali subtitle drops back
     to the text face rather than silently rendering in an OS fallback. */
h1 .bn, h1 .sub { font-family: var(--font-bn); font-weight: 600; }
h1 .sub { display: block; font-size: clamp(17px, 3vw, 22px); font-weight: 600; color: var(--purple); margin-top: 12px; letter-spacing: 0; line-height: 1.5; }
h2 { font-size: 23px; line-height: 1.3; color: var(--ink); font-weight: 700; margin: 42px 0 14px; letter-spacing: -.3px; }
h2 .bn { font-size: 18px; color: var(--purple); font-weight: 600; }
h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
p { margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--ink-2); }

/* --- the 40-60 word answer block: what a featured snippet and an AI Overview lift --- */
.answer {
  border: 2px solid var(--stroke);
  background: var(--red-wash); padding: 24px 26px; margin: 26px 0 32px;
}
.answer p { margin-bottom: 12px; }
.answer p:last-child { margin-bottom: 0; }
.answer .bn { font-size: 17.5px; color: var(--ink); }
.answer .en { font-size: 16px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid rgba(0,0,0,.12); }
.answer b { color: var(--red-dark); }

/* --- steps --- */
ol.steps { list-style: none; counter-reset: s; margin: 8px 0 0; }
ol.steps li { border-left: 2px solid var(--line); padding: 0 0 4px 22px; margin-bottom: 26px; }
ol.steps h3 { display: flex; align-items: baseline; gap: 10px; }
ol.steps .n {
  flex: 0 0 auto; background: var(--purple); color: #fff; font: 700 13px Geist, Arial;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
}
ol.steps .bn { color: var(--purple); font-weight: 600; margin-bottom: 8px; }

/* --- rule boxes --- */
.rule { border: 2px solid var(--stroke); padding: 20px 22px; margin: 26px 0; background: #fff; }
.rule.alt { background: var(--purple-wash); }
.rule h2 { margin: 0 0 12px; font-size: 17px; }
.rule p { margin-bottom: 9px; }
.rule p:last-child { margin-bottom: 0; }

/* --- question-type blocks on a hub --- */
.toc { border: 2px solid var(--line); padding: 14px 16px; font-size: 14px; margin: 26px 0 34px; line-height: 2; }
.toc a { text-decoration: none; }
.qt { border-top: 2px solid var(--stroke); padding: 22px 0 6px; }
.qt h3 { font-size: 19px; margin-bottom: 10px; }
.qt h3 a { text-decoration: none; color: var(--ink); }
.qt h3 a:hover { color: var(--red); }
.qt .do, .qt .dont { margin-bottom: 6px; }
.qt .do b { color: #1a7f38; }
.qt .dont b { color: var(--red-dark); }
.qt .bn { color: var(--ink); }
.qt .more { font-weight: 700; font-size: 14.5px; }

/* --- cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 8px; }
.card { border: 2px solid var(--stroke); padding: 18px 20px; text-decoration: none; color: var(--ink-2); background: #fff; display: block; }
.card:hover { background: var(--red-wash); }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card .bn { color: var(--purple); font-weight: 600; margin-bottom: 8px; }
.card .count { font: 700 12px Geist, Arial; text-transform: uppercase; letter-spacing: .07em; color: var(--red); margin-bottom: 8px; }
.card .rule-line { font-size: 14px; color: var(--muted); margin: 0; }

/* --- CTA --- */
.cta-box { border: 2px solid var(--stroke); background: var(--ink); color: #fff; padding: 26px 24px; margin: 42px 0 20px; }
.cta-box h2 { color: #fff; margin: 0 0 10px; }
.cta-box p { color: rgba(255,255,255,.86); }
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  padding: 13px 24px; font: 700 15px Geist, Arial; border: 2px solid var(--red); margin: 6px 8px 0 0;
}
.btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

ul.sibs { list-style: none; margin: 8px 0 0; }
ul.sibs li { border-bottom: 1px solid var(--line); }
ul.sibs a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; min-height: 44px; }

footer.site { border-top: 2px solid var(--stroke); padding: 26px 22px 46px; font-size: 14px; color: var(--muted); }
footer.site p { max-width: var(--measure); margin: 0 auto 8px; }
footer.site .fine { font-size: 12px; line-height: 1.6; color: #8a8a8a; padding-top: 10px; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
@media (max-width: 560px) { body.guide { font-size: 16px; } main { padding: 8px 18px 56px; } }

/* --- worked example from the official material --- */
.example { border: 2px solid var(--stroke); padding: 22px 24px; margin: 18px 0 8px; background: #fff; }
.example .passage { background: var(--purple-wash); padding: 16px 18px; margin-bottom: 16px; }
.example .passage h4 { font-size: 15px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.example .passage p { margin: 0; font-size: 16px; }
.example .instr { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.example ol.qs { margin: 0; padding-left: 26px; }
.example ol.qs li { margin-bottom: 16px; }
.example .qt-text { display: block; }
.example ul.opts { list-style: none; margin: 8px 0 0; padding: 0; }
.example ul.opts li { margin-bottom: 4px; font-size: 15.5px; }
.example .ans { margin: 8px 0 0; font-family: var(--font-mono); font-size: 14px; color: var(--red-dark); }
.example .src { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
                font-size: 12.5px; color: var(--muted); }

/* the wordmark is an SVG now, not live text */
header.site .brand img { display: block; height: 30px; width: auto; }
