/* explained.css — Canada, Explained */

/* Page link color override (design handoff) */
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }

/* Sticky nav + ticker on desktop */
@media (min-width: 861px) {
  ctb-nav { position: sticky; top: 0; z-index: 60; }
  .ex-ticker { position: sticky; top: var(--masthead-h, 63px); z-index: 59; }
}

/* Ticker maple band */
.ex-ticker {
  background: var(--maple);
  color: oklch(0.98 0.005 27);
}

/* --- Hero --- */
.ex-hero { padding: 80px 0 56px; }

.ex-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}

.ex-hero-aside { order: 1; }

.ex-stamp {
  display: inline-block;
  font-family: var(--scrawl);
  font-weight: 800;
  border: 2px solid var(--maple);
  color: var(--maple-deep);
  background: var(--maple-tint);
  padding: 5px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
  margin: 0 0 21px;
}

.ex-h1 {
  text-transform: uppercase;
  font-family: var(--shout);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 35px 0 0;
}
.ex-h1 span { display: block; }

.ex-intro {
  font-size: 17px;
  line-height: 28px;
  max-width: 58ch;
  margin: 42px 0 0;
}

/* --- Filter --- */
.ex-filter { padding: 0 0 42px; }

/* --- Entries grid --- */
.ex-entries { padding: 0 0 70px; }

.ex-entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px clamp(20px, 3vw, 42px);
}

/* --- Entry card --- */
.ex-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-sm);
}

.ex-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ex-card-kicker {
  margin: 0;
  font-family: var(--shout);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maple);
}

.ex-card-icon {
  font-size: 26px;
  filter: saturate(0.85);
}

.ex-card-term {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  margin: 12px 0 0;
}

.ex-card-def {
  font-size: 15px;
  line-height: 25px;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}

.ex-card-plain {
  font-size: 14px;
  line-height: 23px;
  margin: 12px 0 0;
  font-family: var(--scrawl);
  font-weight: 500;
  color: var(--maple-deep);
  border-top: 1px dashed var(--color-neutral-300);
  padding-top: 10px;
}

.ex-card-seal {
  position: absolute;
  bottom: -10px;
  right: 12px;
  font-family: var(--scrawl);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maple-deep);
  border: 2px solid var(--maple);
  background: var(--maple-tint);
  padding: 3px 9px;
}

.ex-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--maple);
  text-decoration: none;
  padding: 4px 0;
  font-weight: 600;
}
.ex-card-link:hover { text-decoration: underline; }

/* --- Submit section --- */
.ex-submit { padding: 0 0 84px; }

.ex-submit-rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--color-text);
  margin: 0 0 42px;
}

.ex-submit-h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  margin: 0;
}

.ex-submit-body {
  font-size: 15.5px;
  line-height: 28px;
  margin: 14px 0 0;
  max-width: 58ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.ex-submit-form {
  max-width: 560px;
  margin-top: 28px;
}
.ex-submit-form textarea.input {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  font-size: 15px;
  line-height: 1.5;
}
.ex-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-3);
}
.ex-submit-note {
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .ex-hero-grid { display: block; }
  .ex-hero-aside { margin-top: 42px; }
  h1 { overflow-wrap: break-word; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .seg { display: flex; flex-wrap: wrap; }
}
