/* ============================================================
   CLINICAL PROCEDURES TEMPLATE
   Layout for the clinical procedures page — page header,
   hub-layout (2fr/1fr), accordion procedure list, sidebar.
   Shared base (tokens, nav, breadcrumb, footer) in main.css.
   ============================================================ */

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 5rem 3.5rem 4rem;
  border-bottom: 0.5px solid var(--surface-alt);
  max-width: 820px;
}

.page-category {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-category::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--accent);
  display: block;
}

.page-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}
.page-h1 em { font-style: italic; color: var(--accent); }

.page-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
}

.page-note {
  font-size: 12px;
  font-weight: 350;
  color: var(--text-secondary);
  line-height: 1.85;
  border-left: 1.5px solid var(--accent-light);
  padding-left: 1rem;
  max-width: 560px;
}

/* ============================================================
   MAIN LAYOUT — 2fr / 1fr
   ============================================================ */
.hub-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-top: 0.5px solid var(--surface-alt);
}

.hub-main {
  padding: 4.5rem 3.75rem;
  border-right: 0.5px solid var(--surface-alt);
}

.hub-side {
  padding: 3rem 2rem;
}

/* ============================================================
   PROCEDURE LIST — accordion
   ============================================================ */
.proc-list {
  display: flex;
  flex-direction: column;
}

.proc-item {
  border-bottom: 0.5px solid var(--surface-alt);
}
.proc-item:first-child {
  border-top: 0.5px solid var(--surface-alt);
}

.proc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.15s;
  user-select: none;
}
.proc-header:hover .proc-name { color: var(--accent); }

.proc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.15s;
}

.proc-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.proc-tag {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.proc-icon {
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  line-height: 1;
  flex-shrink: 0;
}
.proc-icon.open { transform: rotate(45deg); }

.proc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.65, 0, 0.35, 1), padding-bottom 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  padding-bottom: 0;
}
.proc-body.open { padding-bottom: 1.6rem; }

.proc-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}

.proc-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.proc-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--surface-alt);
}

.ps-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  border-bottom: 0.5px solid var(--surface-alt);
  align-items: center;
}
.ps-row:last-child { border-bottom: none; }

.ps-key {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.ps-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--text-primary);
}

/* ============================================================
   SECTION TEXT
   ============================================================ */
.sec-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sec-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.sec-h2 em { font-style: italic; color: var(--accent); }

.body-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.mt-4 { margin-top: 4rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.side-sticky {
  position: sticky;
  top: 90px;
}

.side-card {
  border: 0.5px solid var(--accent-light);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: 1px;
  background: var(--bg);
}

.side-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.side-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.side-btn {
  width: 100%;
  background: var(--accent);
  color: var(--inv-text);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.side-btn:hover { opacity: 0.88; }

.side-btn-s {
  width: 100%;
  background: transparent;
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px;
  border: 0.5px solid var(--accent);
  cursor: pointer;
  border-radius: 1px;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: background 0.15s;
}
.side-btn-s:hover { background: var(--surface); }

.vc-note {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.45;
}

/* ============================================================
   INFO LIST (practical notes)
   ============================================================ */
.info-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.info-row {
  display: flex;
  gap: 10px;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--surface-alt);
  align-items: flex-start;
}
.info-row:last-child { border-bottom: none; }

.info-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.info-text {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .page-header { padding: 3rem 1.5rem 2.5rem; }
  .page-h1 { font-size: 36px; }
  .hub-layout { grid-template-columns: 1fr; }
  .hub-main { padding: 2.5rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--surface-alt); }
  .hub-side { padding: 2rem 1.5rem; }
  .side-sticky { position: static; }
  .proc-body-inner { grid-template-columns: 1fr; }
  .proc-desc { grid-column: 1; }
  .sec-h2 { font-size: 24px; }
}
