/* Page-specific styles for the School Schedules Guide.
   Shared typography, navigation, cards, CTA and base responsive rules come from article.css. */

.guide-hero {
  padding-bottom: 56px;
}

.guide-hero .hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  align-items: stretch;
}

.guide-hero-copy {
  padding: clamp(4px, 2vw, 26px) 0;
}

.guide-hero-copy h1 {
  max-width: 760px;
}

.guide-hero-visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border: 1px solid #eccda9;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff2e6 0%, #fffaf2 55%, #eef5e8 100%);
  box-shadow: var(--shadow);
}

.guide-hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(168, 78, 24, .18);
  border-radius: 20px;
  pointer-events: none;
}

.guide-hero-screen {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(93, 56, 28, .14));
}

.visual-note {
  position: absolute;
  z-index: 2;
  max-width: 170px;
  padding: 11px 13px;
  border: 1px solid rgba(227, 191, 159, .9);
  border-radius: 14px;
  background: rgba(255, 254, 253, .96);
  color: #5c5046;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: var(--shadow-small);
}

.visual-note strong {
  display: block;
  margin-bottom: 3px;
  color: #8f4315;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.visual-note.note-one { top: 42px; left: 22px; }
.visual-note.note-two { right: 18px; bottom: 38px; }

.summary-panel {
  margin: 2px 0 44px;
  padding: 28px 30px 24px;
  border: 1px solid #efd8bc;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffefd, #fff2e5);
  box-shadow: var(--shadow-small);
}

.summary-lede {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}

.summary-lede .label { padding-top: 7px; }

.summary-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 0;
  margin: 24px 0 17px;
  list-style: none;
}

.summary-list li {
  min-height: 58px;
  padding: 11px 13px 11px 38px;
  position: relative;
  border-left: 2px solid #e5c19b;
}

.summary-list li::before {
  content: "•";
  position: absolute;
  left: 15px;
  top: 8px;
  color: #db7a32;
  font-size: 20px;
  line-height: 1;
}

.summary-list strong,
.summary-list span { display: block; }
.summary-list strong { color: #3a312a; font-size: 14px; }
.summary-list span { margin-top: 2px; color: #75695f; font-size: 12px; line-height: 1.28; }
.summary-decision { max-width: 770px; margin: 0 !important; color: #665b52; font-size: 13px !important; line-height: 1.45; }
.summary-decision strong { color: #4d4138; }

.summary-panel .label,
.section-label,
.visual-kicker,
.workflow-step-label,
.checklist-kicker {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.summary-panel h2 { margin: 0; font-size: clamp(26px, 3vw, 35px); }
.summary-panel p { margin: 8px 0 0; }

.workflow-visual {
  position: relative;
  margin: 30px 0 44px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid #dce7d5;
  border-radius: 25px;
  background: linear-gradient(135deg, #f5f9f1, #fffdf9);
}

.workflow-visual::after {
  content: "";
  position: absolute;
  width: 225px;
  height: 225px;
  top: -142px;
  right: -98px;
  border-radius: 50%;
  background: rgba(255, 203, 150, .35);
}

.workflow-visual > * { position: relative; z-index: 1; }
.workflow-visual h3 { margin: 0 0 20px; font-size: 26px; }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.workflow-step {
  position: relative;
  min-height: 114px;
  padding: 16px;
  border: 1px solid #dae4d2;
  border-radius: 17px;
  background: rgba(255,255,255,.86);
}

.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: calc(50% - 14px);
  right: -21px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6c824f;
  background: #eef5e8;
  font-weight: 900;
}

.workflow-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 11px;
  color: #8f4315;
  background: #fff0e1;
  font-size: 18px;
  font-weight: 900;
}

.workflow-step:nth-child(2) .workflow-icon { color: #506e37; background: #eef5e8; }
.workflow-step:nth-child(3) .workflow-icon { color: #5a6371; background: #eaf4fb; }
.workflow-step:nth-child(4) .workflow-icon { color: #82691e; background: #fff5c9; }
.workflow-step h4 { margin: 0 0 5px; font-family: "Instrument Sans", sans-serif; font-size: 16px; line-height: 1.15; }
.workflow-step p { margin: 0; color: #675f57; font-size: 13px !important; line-height: 1.4; }

.system-table,
.example-table,
.checklist-table,
.sources-list {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.83);
  box-shadow: var(--shadow-small);
}

.system-table th,
.system-table td,
.example-table th,
.example-table td,
.checklist-table th,
.checklist-table td,
.sources-list th,
.sources-list td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.42;
}

.system-table th,
.example-table th,
.checklist-table th,
.sources-list th {
  color: #50473e;
  background: #f8f3ed;
  font-weight: 850;
}

.system-table tr:last-child td,
.example-table tr:last-child td,
.checklist-table tr:last-child td,
.sources-list tr:last-child td { border-bottom: 0; }
.system-table td:first-child,
.example-table td:first-child { color: var(--ink); font-weight: 800; }

.source-intake {
  display: grid;
  grid-template-columns: 1fr minmax(215px, 285px);
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
}

.intake-board {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.intake-board h3 { margin: 0 0 8px; font-size: 22px; }
.intake-board p { font-size: 15px !important; }

.input-gallery {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  padding: 19px 18px 0;
  border: 1px solid #efd5d1;
  border-radius: 22px;
  background: linear-gradient(160deg, #fff1ea 0%, #fffaf6 75%);
}

.input-gallery figcaption {
  min-height: 0;
  padding: 0;
  color: #765d52;
  font-size: 12px;
  line-height: 1.42;
}

.input-gallery figcaption strong { display: block; margin-bottom: 5px; color: #a84e18; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.input-gallery figcaption span { display: block; }
.input-gallery figcaption em { display: block; margin-top: 8px; color: #6d4f3e; font-style: normal; font-weight: 800; }

.input-screen-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.input-gallery img {
  width: min(180px, 100%);
  filter: drop-shadow(0 16px 15px rgba(80, 42, 30, .18));
}

.owner-list {
  list-style: none !important;
  display: grid;
  gap: 8px;
  padding: 0 !important;
  margin: 22px 0 0 !important;
}

.owner-list li {
  position: relative;
  margin: 0 !important;
  padding: 13px 13px 13px 44px;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
}

.owner-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #416333;
  background: #e5efdd;
  font-weight: 900;
}

.decision-intro { max-width: 655px; }
.decision-grid.guide-decisions { grid-template-columns: repeat(3, 1fr); }
.decision-card h3 { font-size: 20px; }
.decision-card .card-label { margin-bottom: 7px; color: #56743d; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.decision-card:nth-child(2) .card-label { color: #9e5d21; }
.decision-card:nth-child(3) .card-label { color: #7c5e25; }

.checklist-wrap {
  margin-top: 23px;
  padding: 28px;
  border: 1px solid #d8e4d1;
  border-radius: 25px;
  background: linear-gradient(145deg, #f7fbf4, #fffefc);
  box-shadow: var(--shadow-small);
}

.checklist-wrap h2 { margin-bottom: 7px; }
.checklist-wrap > p { max-width: 650px; margin-bottom: 20px; }
.checklist-box { width: 23px; color: #6b8662; font-size: 18px; font-weight: 600; }

.fact-note {
  margin-top: 18px;
  color: #81776e !important;
  font-size: 13px !important;
}

.fact-note a { color: #81522c !important; }

.sources-section {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.sources-section h2 { margin-bottom: 6px; }
.sources-section p { color: #6b635b; font-size: 14px; }
.sources-list { margin-top: 18px; }
.sources-list td:first-child { width: 54px; color: #8f4315; font-weight: 900; }
.sources-list a { overflow-wrap: anywhere; }

.article-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-cta .cta-button.secondary { color: #f8ede2; background: transparent; border: 1px solid #766a5f; }
.article-cta .cta-button.secondary:hover, .article-cta .cta-button.secondary:focus-visible { background: #312b25; }

@media (max-width: 980px) {
  .guide-hero .hero-grid { grid-template-columns: 1fr; }
  .guide-hero-visual { width: min(100%, 600px); min-height: 430px; }
  .source-intake { grid-template-columns: 1fr; }
  .input-gallery { min-height: 280px; }
  .decision-grid.guide-decisions { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .brand { width: 36px; height: 36px; }
  .nav { gap: 8px; }
  .nav-links { width: auto; gap: 1px; justify-content: flex-end; overflow: visible; }
  .nav-link { padding: 7px 6px; font-size: 11px; }
  .nav-link:nth-child(3),
  .nav-link:nth-child(4) { display: inline-flex; }
  .nav-link:nth-child(5),
  .nav-link:nth-child(6) { display: none; }
  .guide-hero { padding-bottom: 34px; }
  .guide-hero-copy { padding: 0; }
  .guide-hero-visual { min-height: 430px; padding: 14px; }
  .guide-hero-screen { width: min(300px, 94%); max-height: 410px; }
  .visual-note { max-width: 142px; padding: 9px 10px; font-size: 11px; }
  .visual-note.note-one { top: 25px; left: 12px; }
  .visual-note.note-two { width: 112px; max-width: 112px; right: 26px; bottom: 22px; }
  .summary-panel { padding: 22px 20px 20px; }
  .summary-lede { grid-template-columns: 1fr; gap: 5px; }
  .summary-lede .label { padding-top: 0; }
  .summary-list { grid-template-columns: 1fr 1fr; margin: 18px 0 14px; gap: 6px; }
  .summary-list li { min-height: 54px; padding: 10px 9px 9px 31px; }
  .summary-list li::before { left: 11px; top: 7px; }
  .summary-list strong { font-size: 13px; }
  .summary-list span { font-size: 11px; }
  .workflow-visual { padding: 20px 16px; }
  .workflow-visual h3 { margin-bottom: 16px; }
  .workflow-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .workflow-step { min-height: 104px; padding: 13px; }
  .workflow-step:nth-child(2)::after { display: none; }
  .workflow-step:nth-child(1)::after,
  .workflow-step:nth-child(3)::after { right: -18px; }
  .input-gallery { display: flex; gap: 12px; padding: 17px 16px 0; }
  .input-gallery figcaption { padding: 0; border: 0; }
  .input-gallery figcaption em { margin-top: 8px; }
  .input-screen-wrap { padding: 0; }
  .input-gallery img { width: min(178px, 100%); }
  .system-table,
  .example-table,
  .checklist-table,
  .sources-list { display: block; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .system-table thead,
  .example-table thead,
  .checklist-table thead,
  .sources-list thead { display: none; }
  .system-table tbody,
  .example-table tbody,
  .checklist-table tbody,
  .sources-list tbody,
  .system-table tr,
  .example-table tr,
  .checklist-table tr,
  .sources-list tr,
  .system-table td,
  .example-table td,
  .checklist-table td,
  .sources-list td { display: block; width: 100%; }
  .system-table tr,
  .example-table tr,
  .checklist-table tr,
  .sources-list tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-small); }
  .system-table td,
  .example-table td,
  .checklist-table td,
  .sources-list td { padding: 10px 13px; border-bottom: 0; font-size: 14px; }
  .system-table td:not(:first-child)::before,
  .example-table td:not(:first-child)::before { display: block; margin-bottom: 3px; color: #887d72; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .system-table td:nth-child(2)::before { content: "Use it for"; }
  .system-table td:nth-child(3)::before { content: "Example"; }
  .example-table td:nth-child(2)::before { content: "Preparation"; }
  .example-table td:nth-child(3)::before { content: "Check it"; }
  .checklist-wrap { padding: 23px 18px; }
  .checklist-table td:first-child { float: left; width: 40px; padding-right: 0; }
  .checklist-table td:last-child { min-height: 42px; padding-left: 45px; }
  .sources-list td:first-child { float: left; width: 42px; padding-right: 0; }
  .sources-list td:last-child { min-height: 42px; padding-left: 42px; }
  .article-cta .cta-actions { flex-direction: column; }
  .article-cta .cta-button { width: 100%; }
}

@media (max-width: 410px) {
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step::after { display: none !important; }
}
