/* styles.css - simple styling for HolidayHomework2026 tabs */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --accent: #0078d4;
  --bg: #f8fafb;
  --text: #111827;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 20px;
  /*font-family: 'Courier Prime', 'Courier New', Courier, monospace;*/
  color: #111111;
  /*display: flex;*/
  justify-content: center;
}

header h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #e6e6e6;
  margin-bottom: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.tab:focus {
  outline: 3px solid rgba(0, 120, 212, 0.15);
  outline-offset: 2px;
}

.tab-panel {
  border: 1px solid #e6e6e6;
  background: white;
  padding: 1rem;
  margin-top: -1px;
  border-radius: 0 6px 6px 6px;
}

.hidden[hidden],
.tab-panel.hidden[hidden] {
  display: none;
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #555;
  font-size: 0.9rem;
}

/* UNIVERSAL STRICT OVERRIDE FOR TRUE DIGITAL WHITE BACKGROUND */
html,
body,
div,
table,
tr,
th,
td,
p,
h1,
h2,
h3,
h4,
span,
section,
article {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.newspaper {
  max-width: 950px;
  margin: 0 auto;
  padding: 40px 50px;
  position: relative;
}

/* ── MASTHEAD ── */
.masthead {
  text-align: center;
  border-top: 5px double #111111;
  border-bottom: 5px double #111111;
  padding: 20px 0 22px;
}

.edition-line {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 10px;
  font-weight: 700;
}

.paper-name {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #111111;
}

.paper-name span {
  color: #8b0000;
}

.tagline {
  font-style: italic;
  font-size: 15px;
  color: #444444;
  margin-top: 8px;
  letter-spacing: 1px;
}

.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444444;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
  padding: 8px 6px;
  margin-top: 12px;
}

/* ── SECTION DIVIDERS ── */
.rule {
  border: none;
  border-top: 1px solid #111111;
  margin: 20px 0;
}

.rule-thick {
  border: none;
  border-top: 3px solid #111111;
  margin: 22px 0;
}

.rule-double {
  border: none;
  border-top: 4px double #111111;
  margin: 24px 0;
}

.section-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #8b0000;
  font-weight: 700;
  margin: 35px 0 12px;
}

/* ── GRID LAYOUTS ── */
.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.col-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.col-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

/* ── HEADLINES ── */
.headline-xl {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #111111;
}

.headline-lg {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #111111;
}

.headline-md {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #111111;
}

.headline-sm {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #111111;
}

.byline {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 16px;
  font-style: italic;
}

/* ── BODY TEXT ── */
p {
  font-size: 14px;
  line-height: 1.85;
  text-align: justify;
  margin-bottom: 14px;
  hyphens: auto;
  color: #111111;
}

.drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin: 8px 10px 0 0;
  color: #8b0000;
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-top: 2px solid #111111;
  border-bottom: 2px solid #111111;
  padding: 16px;
  margin: 20px 0;
  text-align: center;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: #8b0000;
  margin: 0;
}

/* ── BOXES ── */
.box {
  border: 1px solid #111111;
  padding: 16px;
  margin-bottom: 16px;
}

.box-double {
  border: 3px double #111111;
  padding: 16px;
  margin-bottom: 16px;
}

.box-accent {
  border: 1px solid #8b0000;
  border-left: 5px solid #8b0000;
  padding: 16px;
  margin-bottom: 16px;
}

/* ── COLUMN BORDER SEPARATORS ── */
.col-3>*:not(:last-child),
.col-2>*:not(:last-child),
.col-2-1>*:not(:last-child),
.col-1-2>*:not(:last-child) {
  border-right: 1px solid #111111;
  padding-right: 30px;
}

/* ── PUZZLE BOXES ── */
.puzzle-box {
  border: 2px solid #111111;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.puzzle-num {
  position: absolute;
  top: -11px;
  left: 14px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b0000;
}

/* ── STRATEGIC GRAPHICS CONTAINER ── */
.illustration-container {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
  border: 1px solid #111111;
}

.illustration-container img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  /* Retains classic vintage news aesthetics over white background */
}

.illustration-caption {
  font-size: 11px;
  font-style: italic;
  color: #444444;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── CONCEPT MATH PANELS ── */
.rule-box {
  border: 2px solid #111111;
  padding: 14px;
  margin: 16px 0;
}

.rule-box p {
  margin: 0;
  font-size: 13px;
}

.math-formula {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  text-align: center;
  margin: 12px 0;
  color: #8b0000;
  font-weight: 700;
}

/* ── INTEGERS GRAPHICS ── */
.number-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0;
  font-size: 12px;
}

.nl-arrow {
  font-size: 20px;
  color: #111111;
  font-weight: bold;
}

.nl-num {
  width: 36px;
  text-align: center;
  position: relative;
}

.nl-num::before {
  content: '|';
  display: block;
  font-size: 12px;
  color: #111111;
  margin-bottom: 4px;
}

.nl-zero {
  font-weight: 900;
  color: #8b0000;
}

/* ── MATRICES & TABLES ── */
.recipe-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.recipe-table th {
  background: #111111 !important;
  color: #ffffff !important;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.recipe-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #111111;
}

/* ── FOOTER STYLE ── */
.footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 4px double #111111;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444444;
  line-height: 1.8;
}

/* PAGE SPLIT CONFIGURATION */
.page-break {
  page-break-before: always;
  margin-top: 60px;
  border-top: 6px double #8b0000;
  padding-top: 30px;
}

@media print {

  html,
  body,
  .newspaper {
    background: #ffffff !important;
    padding: 0;
    box-shadow: none;
  }

  .page-break {
    page-break-before: always;
  }
}

.hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #f0ece0;
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.hdr h1 {
  font-size: 21px;
  font-weight: 800;
  color: #1565C0;
  letter-spacing: -.3px;
}

.hdr .sub {
  font-size: 12px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: .7px;
}

svg {
  width: 100%;
  height: auto;
  display: block;
}

.foot {
  margin-top: 10px;
  font-size: 11px;
  color: #ccc;
  text-align: right;
}

.page {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 20px;
  max-width: 1820px;
  width: 100%;
  box-shadow: 0 6px 40px rgba(0, 0, 0, .1);
}