/* ============================================================
   PetTriage — interior / detail pages
   ============================================================ */

.page-hero {
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 60%, #145a43);
  color: #fff; padding: 46px 0 52px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 720px; margin-top: 14px; }
.page-hero .lead { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 640px; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .6; }

.page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 34px 0 70px; align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.panel:last-child { margin-bottom: 0; }

/* Article typography */
.article h2 {
  font-size: 1.42rem; margin: 30px 0 12px; padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.article h2:first-child { margin-top: 0; border-top: none; }
.article p { color: #3d4d45; margin-bottom: 14px; font-size: .99rem; }
.article ul, .article ol { margin: 0 0 16px 22px; color: #3d4d45; font-size: .97rem; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--ink); }

.article table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.article thead th {
  text-align: left; background: var(--brand); color: #fff; font-weight: 600;
  padding: 11px 14px; font-size: .85rem; letter-spacing: .02em;
}
.article thead th:first-child { border-radius: 10px 0 0 0; }
.article thead th:last-child { border-radius: 0 10px 0 0; }
.article tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tbody tr:nth-child(even) td { background: #FAF7F1; }
.article tbody tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.article tbody tr:last-child td:last-child { border-radius: 0 0 10px 0; }

.lvl { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.lv-green { background: var(--mint-soft); color: var(--brand); }
.lv-amber { background: var(--warning-soft); color: #8a5a00; }
.lv-orange { background: var(--accent-soft); color: var(--accent); }
.lv-red { background: var(--danger-soft); color: var(--danger); }

.callout { border-radius: 14px; padding: 16px 18px; margin: 18px 0; font-size: .95rem; border: 1px solid; }
.callout.warn { background: var(--danger-soft); border-color: #F3BCC1; color: #7c242c; }

.sources { list-style: none !important; margin-left: 0 !important; }
.sources li { position: relative; padding-left: 20px; }
.sources li::before { content: "\2197"; position: absolute; left: 0; color: var(--mint); }

/* Sidebar */
.side h3 { font-size: .98rem; margin-bottom: 14px; }
.side-list { list-style: none; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: none; }
.side-list a { display: block; padding: 10px 2px; font-size: .9rem; font-weight: 500; transition: color .15s, padding-left .15s; }
.side-list a:hover { color: var(--brand); padding-left: 6px; }
.cta-side { background: linear-gradient(150deg, #0b3b2c, #0e4d3a); color: #fff; }
.cta-side h3 { color: #fff; }
.cta-side p { font-size: .88rem; color: rgba(255,255,255,.78); margin-bottom: 16px; }
.cta-side .btn { width: 100%; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
}
