/*
 * The exams guide (templates/exam-guide.php), loaded only on a page that
 * renders it. The review page's CSS of 27 Oct 2026 translated to the theme:
 * every rule lives under .shine-guide; the theme's fonts (Playfair Display for
 * headings, Glacial Indifference for text, both already loaded by main.css, so
 * no font link here); teal #03989e and orange #fca41a. Light only, like the
 * rest of the site.
 *
 * The theme resets lists, headings and paragraphs globally and styles
 * .content_block h2/h3/p, so the rules that touch those carry a class in the
 * path (at least as specific as .content_block p) and give lists their
 * bullets back. Long words and URLs wrap (overflow-wrap:anywhere) instead of
 * pushing the page sideways; wide tables scroll inside their own box.
 */
.shine-guide{
  --sg-fg:#1f2a2c; --sg-muted:#5b6b6e; --sg-line:#d9e6e7;
  --sg-teal:#03989e; --sg-teal-ink:#047a7f; --sg-teal-soft:#e6f4f5; --sg-orange:#fca41a; --sg-orange-soft:#fff3df;
  --sg-box:#f3f6f6; --sg-staff-line:#c9d6d8; --sg-mark:#ffe9b8;
  --sg-display:'Playfair Display', Georgia, 'Times New Roman', serif;
  --sg-body:'Glacial Indifference', 'Helvetica Neue', Arial, sans-serif;
  --sg-pad:max(16px, env(safe-area-inset-left, 0px));
  background:#fff; color:var(--sg-fg); font-family:var(--sg-body); font-size:17px; line-height:1.55;
}
.content_block.shine-guide{padding:0}
.shine-guide *, .shine-guide *::before, .shine-guide *::after{box-sizing:border-box}
.shine-guide a{color:var(--sg-teal-ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px}
.shine-guide a:hover{color:var(--sg-orange)}
.shine-guide strong{font-weight:700}
.shine-guide :focus-visible{outline:2px solid var(--sg-orange); outline-offset:2px}

/* Hero band */
.shine-guide .hero{background:var(--sg-teal); color:#fff; padding:40px var(--sg-pad) 36px}
.shine-guide .hero .in, .shine-guide .orient .in, .shine-guide .footer .in{max-width:1180px; margin:0 auto}
.shine-guide .hero .eyebrow{font:700 13px/1.3 var(--sg-body); letter-spacing:.12em; text-transform:uppercase; opacity:.9}
.shine-guide .hero .guide-title{font-family:var(--sg-display); font-size:clamp(30px, 4.2vw, 46px); font-weight:900; font-style:italic; line-height:1.1; color:#fff; margin:10px 0 0; max-width:22ch; text-wrap:balance}
.shine-guide .hero .lede{font-family:var(--sg-body); font-size:18px; line-height:1.5; max-width:62ch; margin:14px 0 0; color:#fff; opacity:.95}
.shine-guide .hero .brands{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.shine-guide .hero .brand{border:1.5px solid rgba(255,255,255,.75); border-radius:6px; padding:8px 14px; font:700 14px/1.2 var(--sg-body); letter-spacing:.04em; color:#fff}
.shine-guide .hero .cta{display:inline-block; margin-top:20px; background:var(--sg-orange); color:#1f2a2c; font:700 15px/1 var(--sg-body); text-transform:uppercase; letter-spacing:.05em; padding:14px 22px; border-radius:4px; text-decoration:none}
.shine-guide .hero .cta:hover{background:#fff; color:var(--sg-teal-ink)}

/* The registered-centre strip under the hero: neutral, small, the official logos at their own colours */
.shine-guide .centres{background:#fff; border-bottom:1px solid var(--sg-line); padding:12px var(--sg-pad)}
.shine-guide .centres .in{max-width:1180px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px}
.shine-guide .centres-label{font:400 14px/1.4 var(--sg-body); color:var(--sg-muted)}
.shine-guide .centres-marks{display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px}
.shine-guide .centres .centre-logo{display:block; width:auto; height:24px; max-width:100%; margin:0}
.shine-guide .centres .centre-name{font:700 14px/1.2 var(--sg-body); letter-spacing:.02em; color:var(--sg-fg)}

/* School orientation band */
.shine-guide .orient{background:var(--sg-teal-soft); padding:18px var(--sg-pad)}
.shine-guide .orient p{font-family:var(--sg-body); font-size:16px; line-height:1.5; color:var(--sg-fg); margin:0 0 6px}

/* Two columns: sticky index and search, then the chapters */
.shine-guide .wrap{max-width:1180px; margin:0 auto; padding:28px var(--sg-pad) 60px; display:grid; grid-template-columns:300px minmax(0, 1fr); gap:40px}
.shine-guide .side{position:sticky; top:16px; align-self:start; max-height:calc(100vh - 32px); overflow:auto; padding-top:4px}
.shine-guide .side .label{font:700 12px/1.2 var(--sg-body); letter-spacing:.12em; text-transform:uppercase; color:var(--sg-muted); margin-bottom:10px}
.shine-guide .side .label-chapters{margin-top:16px}
.shine-guide .search{display:flex; gap:8px; align-items:center; border:1.5px solid var(--sg-line); border-radius:6px; padding:8px 10px; background:#fff}
.shine-guide .search input{flex:1; min-width:0; border:0; background:transparent; color:var(--sg-fg); font:400 15px var(--sg-body); outline:none; margin:0; padding:0}
.shine-guide .search:focus-within{border-color:var(--sg-teal)}
.shine-guide .search svg{flex:none; width:16px; height:16px; color:var(--sg-muted)}
.shine-guide .results{margin:10px 0 0; padding:0; list-style:none; display:none}
.shine-guide .results.on{display:block}
.shine-guide .results li{border-left:3px solid var(--sg-orange); padding:6px 10px; margin:0 0 8px; background:var(--sg-box); border-radius:0 6px 6px 0; font-size:14px; line-height:1.4; overflow-wrap:anywhere}
/* Bold titles in Playfair: the theme's Glacial Indifference Bold draws a broken lowercase "é" (qué, exámenes). */
.shine-guide .results li a{display:block; font-family:var(--sg-display); font-weight:700; text-decoration:none}
.shine-guide .results li .snip{color:var(--sg-muted); display:block; margin-top:2px}
.shine-guide .results li.none{border-left-color:var(--sg-line); color:var(--sg-muted)}
.shine-guide .results mark{background:var(--sg-mark); color:inherit; padding:0 2px}
.shine-guide .index{list-style:none; margin:0; padding:0; border-top:1px solid var(--sg-line)}
.shine-guide .index li{margin:0; padding:0}
.shine-guide .index li a{display:flex; gap:10px; align-items:baseline; padding:7px 4px; border-bottom:1px solid var(--sg-line); text-decoration:none; color:var(--sg-fg); font-size:14.5px; line-height:1.3}
.shine-guide .index li a .n{flex:none; width:22px; font:700 13px/1 var(--sg-body); color:var(--sg-teal-ink); font-variant-numeric:tabular-nums}
.shine-guide .index li a:hover .t, .shine-guide .index li a.cur .t{color:var(--sg-teal-ink)}
.shine-guide .index li a.cur{box-shadow:inset 3px 0 0 var(--sg-orange)}
.shine-guide details.phone-index{display:none}
.shine-guide .main{min-width:0}

/* Chapters */
.shine-guide .chapter{padding:26px 0 8px; border-top:1px solid var(--sg-line); scroll-margin-top:12px}
.shine-guide .chapter:first-child{border-top:0; padding-top:4px}
.shine-guide .chapter h2{font-family:var(--sg-display); font-size:clamp(24px, 2.6vw, 31px); font-weight:700; font-style:normal; color:var(--sg-teal-ink); line-height:1.2; margin:0; display:flex; gap:14px; align-items:baseline; text-wrap:balance}
.shine-guide .chapter h2 .num{font:700 15px/1 var(--sg-body); color:var(--sg-orange); letter-spacing:.04em; flex:none; min-width:2ch; font-variant-numeric:tabular-nums}
.shine-guide .chapter h3{font-family:var(--sg-display); font-size:19px; font-weight:700; font-style:normal; line-height:1.3; margin:22px 0 6px; color:var(--sg-fg)}
.shine-guide .chapter p{font-family:var(--sg-body); font-size:17px; line-height:1.55; margin:10px 0; max-width:72ch}
.shine-guide .chapter p.summary{background:var(--sg-teal-soft); border-left:4px solid var(--sg-teal); padding:10px 14px; border-radius:0 6px 6px 0; margin:14px 0 6px; font-size:16.5px; max-width:none}
.shine-guide .summary-label{display:inline-block; font:700 11px/1 var(--sg-body); letter-spacing:.12em; text-transform:uppercase; color:var(--sg-teal-ink); margin-right:10px; vertical-align:1px}
.shine-guide .chapter p.source{font-size:13.5px; color:var(--sg-muted); line-height:1.45; max-width:none}
.shine-guide .chapter ul, .shine-guide .chapter ol{margin:8px 0 10px; padding-left:22px; max-width:72ch}
/* main.css sets list-style:none on li itself, so the marker goes on the li. */
.shine-guide .chapter ul > li{list-style:disc outside}
.shine-guide .chapter ol > li{list-style:decimal outside}
.shine-guide .chapter li{display:list-item; margin:4px 0; padding:0; font-size:17px; line-height:1.55}
.shine-guide .chapter a, .shine-guide .chapter p, .shine-guide .chapter li{overflow-wrap:anywhere}
/* Cells break a word only when it cannot fit at all (break-word): "anywhere"
   would let a column shrink below its words ("GRAD|O" on a phone), and the
   table's own box scrolls instead. */
.shine-guide .chapter td, .shine-guide .chapter th{overflow-wrap:break-word}

/* Tables: wide ones keep a readable width and scroll inside their box on a phone */
.shine-guide .tablewrap{overflow-x:auto; margin:12px 0; -webkit-overflow-scrolling:touch}
.shine-guide .tablewrap table{border-collapse:collapse; width:100%; font-size:15px; line-height:1.4; font-variant-numeric:tabular-nums}
.shine-guide .tablewrap th, .shine-guide .tablewrap td{text-align:left; padding:8px 10px; border-bottom:1px solid var(--sg-line); vertical-align:top}
.shine-guide .tablewrap th{background:var(--sg-teal-soft); color:var(--sg-teal-ink); font:700 13px/1.3 var(--sg-body); letter-spacing:.04em; text-transform:uppercase}
.shine-guide .tablewrap tr:last-child td{border-bottom:2px solid var(--sg-line)}
.shine-guide .tablewrap table.keyed td:first-child{white-space:nowrap}

/* Boxes: highlighted notes and the "Para profesores y administración" boxes (kept visible, marked) */
.shine-guide .box{border:1px solid var(--sg-line); background:var(--sg-box); border-radius:6px; padding:12px 16px; margin:14px 0}
.shine-guide .box.note{border-color:var(--sg-orange); background:var(--sg-orange-soft)}
.shine-guide .box.staff{border-color:var(--sg-staff-line); border-style:dashed}
.shine-guide .box-label{font:700 11px/1 var(--sg-body); letter-spacing:.12em; text-transform:uppercase; color:var(--sg-muted); margin-bottom:6px}
.shine-guide .box h3{margin-top:8px}
.shine-guide .chapter .box p{max-width:none}
.shine-guide .chapter p.backtop{font-size:13px; margin-top:14px}
.shine-guide .backtop a{color:var(--sg-muted); text-decoration:none}

/* The help form, the CTA's anchor */
.shine-guide .guide-cta{border-top:1px solid var(--sg-line); padding:26px 0 8px; scroll-margin-top:12px}
.shine-guide .guide-cta h2{font-family:var(--sg-display); font-size:clamp(24px, 2.6vw, 31px); font-weight:700; font-style:normal; color:var(--sg-teal-ink); line-height:1.2; margin:0 0 14px}
.shine-guide .guide-cta p{font-family:var(--sg-body); font-size:17px; line-height:1.55; margin:10px 0}
.shine-guide .guide-cta .guide-mail{display:inline-block; background:var(--sg-orange); color:#1f2a2c; font:700 15px/1 var(--sg-body); letter-spacing:.03em; padding:14px 22px; border-radius:4px; text-decoration:none; overflow-wrap:anywhere}
.shine-guide .guide-cta .guide-mail:hover{background:var(--sg-teal); color:#fff}
.shine-guide .guide-form{max-width:640px}
/* The Formidable form keeps custom_style off like the contact form it is cloned
   from, so it gets the contact page's field look here (main.css only styles it
   inside .contact_column). */
.shine-guide .guide-form form{opacity:1 !important; transform:none !important}
.shine-guide .guide-form .frm_form_field{display:flex; flex-direction:column; margin-bottom:16px}
.shine-guide .guide-form .frm_form_field label{font:700 17px/1.3 var(--sg-display); color:var(--sg-fg); margin-bottom:5px}
.shine-guide .guide-form .frm_form_field input, .shine-guide .guide-form .frm_form_field textarea{width:100%; max-width:100%; margin:0; border:1px solid #ccc; border-radius:5px; padding:14px 10px; box-shadow:none; background:#fff; color:var(--sg-fg); font:400 16px/1.3 var(--sg-body)}
.shine-guide .guide-form .frm_form_field input:focus, .shine-guide .guide-form .frm_form_field textarea:focus{border-color:var(--sg-teal); outline:2px solid var(--sg-teal-soft)}
.shine-guide .guide-form .frm_required{color:var(--sg-orange)}
.shine-guide .guide-form .frm_button_submit{background:var(--sg-orange); color:#1f2a2c; font:700 15px/1 var(--sg-body); text-transform:uppercase; letter-spacing:.05em; padding:14px 22px; border:0; border-radius:4px; cursor:pointer}
.shine-guide .guide-form .frm_button_submit:hover{background:var(--sg-teal); color:#fff}
.shine-guide .guide-form .frm_error, .shine-guide .guide-form .frm_error_style{color:#b3261e; font-size:14px}

/* Footer line with the fee-check stamp */
.shine-guide .footer{border-top:1px solid var(--sg-line); color:var(--sg-muted); font-size:14px; line-height:1.5; padding:18px var(--sg-pad) 30px}

@media (max-width: 900px){
  .shine-guide{font-size:16px}
  .shine-guide .wrap{grid-template-columns:minmax(0, 1fr); gap:18px}
  .shine-guide .side{position:static; max-height:none; overflow:visible}
  .shine-guide .side > .index{display:none}
  .shine-guide details.phone-index{display:block; margin-top:10px}
  .shine-guide details.phone-index summary{cursor:pointer; font:700 14px var(--sg-body); color:var(--sg-teal-ink); padding:8px 0}
  .shine-guide details.phone-index .index{display:block; margin-top:6px}
  .shine-guide .chapter p, .shine-guide .chapter li, .shine-guide .guide-cta p{font-size:16px}
  .shine-guide .chapter p.summary{font-size:16px}
  .shine-guide .tablewrap table{font-size:13.5px}
  .shine-guide .tablewrap th, .shine-guide .tablewrap td{padding:6px 8px}
  .shine-guide .tablewrap table:has(tr > :nth-child(4)){min-width:560px}
  .shine-guide .tablewrap table:has(tr > :nth-child(6)){min-width:680px}
}
@media (prefers-reduced-motion: no-preference){ html:has(.shine-guide){scroll-behavior:smooth} }
