/* Scoped Guide Stylesheet - Milestone 5 */

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 58px 0 52px;
}

.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  max-width: 1000px;
}

/* Two-column Content Layout */
.content-layout {
  display: flex;
  gap: 56px;
  align-items: start;
}

.content-layout > .wp-block-column:first-child {
  flex: 1 1 0;
  max-width: 820px;
  min-width: 0;
}

.content-layout > .wp-block-column.side {
  flex: 0 0 360px;
  width: 360px;
}

/* Article inner elements */
.content-layout p,
.content-layout ul,
.content-layout ol,
.content-layout blockquote,
.content-layout pre,
.content-layout table {
  max-width: 820px;
  margin-bottom: 24px;
}

.content-layout p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}

.content-layout h2,
.content-layout h3,
.content-layout h4 {
  font-family: Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  margin-top: 42px;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.content-layout h2 { font-size: 28px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.content-layout h3 { font-size: 22px; }
.content-layout h4 { font-size: 18px; }

/* Lists */
.content-layout ul,
.content-layout ol {
  padding-left: 24px;
}

.content-layout li {
  margin-bottom: 10px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Tables styling */
.content-layout table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
  font-size: 14px;
}

.content-layout th,
.content-layout td {
  padding: 12px 16px;
  border: 1px solid var(--rule);
  text-align: left;
}

.content-layout th {
  background: var(--paper-2);
  font-weight: 800;
  color: var(--ink);
}

.content-layout tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.4);
}

/* Blockquotes */
.content-layout blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin: 32px 0 32px 10px;
  font-style: italic;
  color: var(--ink-2);
}

/* Code & Preformatted content */
.content-layout code {
  font-family: monospace;
  background: var(--paper-2);
  padding: 2px 6px;
  font-size: 13px;
  border: 1px solid var(--rule);
}

.content-layout pre {
  background: var(--paper-2);
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

.content-layout pre code {
  background: transparent;
  padding: 0;
  border: 0;
  font-size: 13px;
}

/* Dynamic verification/notices UI blocks */
.verify-box {
  display: flex;
  gap: 32px;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-size: 13px;
  margin-bottom: 32px;
}

.verify-box strong {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Side navigation & blocks styling */
.side {
  position: sticky;
  top: 40px;
}

.side .side-block {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 24px;
  margin-bottom: 28px;
}

.side .side-block h4 {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

/* Guide-specific sidebar related guides override */
.side .related-guides-grid {
  grid-template-columns: 1fr !important;
}

.side .related-guides-section {
  margin: 0;
  border-top: 0;
  padding-top: 0;
}

/* Link word-wrap protection */
.content-layout p a,
.content-layout td a,
.content-layout li a {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Responsive constraints */
@media (max-width: 1040px) {
  .content-layout {
    flex-direction: column;
    gap: 40px;
  }
  .content-layout > .wp-block-column:first-child {
    max-width: 100%;
  }
  .side {
    position: static;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .page-hero {
    padding: 38px 0;
  }
  .verify-box {
    flex-direction: column;
    gap: 16px;
  }
  .content-layout table {
    display: block;
    overflow-x: auto;
  }
}
