/* =========================================================================
   practice-detail.css — shared styles for the eight practice detail pages.
   Each detail page sets its own --accent and --accent-deep CSS vars on
   <body>, which colour the icon, sidebar boxes, and accent stripes.
   ========================================================================= */


/* ── HERO ─────────────────────────────────────────────────────── */
.detail-hero {
  max-width: 1180px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.detail-hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed rgba(178, 93, 67, 0.3);
}
.detail-hero__back {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--driftwood);
  text-decoration: none;
  transition: color 0.2s ease;
}
.detail-hero__back:hover { color: var(--brass); }
.detail-hero__meta {
  font-family: 'Kalam', var(--hand);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--brass);
  background: rgba(184, 134, 11, 0.1);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  margin: 0;
}

.detail-hero__title {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.2rem;
}
.detail-hero__icon-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent, #FDFBF6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 28px -18px rgba(43, 38, 32, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(120, 90, 50, 0.18);
  transform: rotate(-3deg);
}
.detail-hero__icon { width: 64px; height: 64px; }

.detail-hero__h1 {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.detail-hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--driftwood);
  margin: 0 0 0.5rem;
}
.detail-hero__cadence {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--brass);
  margin: 0;
  opacity: 0.85;
}


/* ── BODY GRID (main + sidebar) ─────────────────────────────────── */
.detail-body {
  max-width: 1180px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
  z-index: 5;
}

.detail-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.detail-h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 1.5px;
  background: var(--brass);
  margin: 0.7rem 0 1.2rem;
  opacity: 0.7;
}


/* ── WHY SECTION ────────────────────────────────────────────────── */
.detail-why {
  margin-bottom: 3.5rem;
}
.detail-why p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.detail-why__lede {
  font-style: italic;
  color: var(--driftwood);
  font-size: 1.18rem !important;
  margin-bottom: 1.4rem !important;
}

/* Drop cap on the first body paragraph */
.detail-why p:not(.detail-why__lede):first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  padding: 0.4rem 0.5rem 0 0;
  color: var(--brass);
}

.detail-figure {
  margin: 2rem auto 0;
  max-width: 280px;
  text-align: center;
  transform: rotate(-1.5deg);
}
.detail-figure__polaroid {
  background: #FDFBF6;
  padding: 12px 12px 8px;
  box-shadow:
    0 18px 32px -18px rgba(43, 38, 32, 0.3),
    0 1px 2px rgba(43, 38, 32, 0.08);
  position: relative;
}
.detail-figure__polaroid::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 70px; height: 20px;
  background-color: var(--accent);
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.3) 0 4px, transparent 4px 10px);
  opacity: 0.85;
  box-shadow: 0 2px 4px rgba(43,38,32,0.12);
}
.detail-figure__placeholder {
  background: rgba(155, 141, 123, 0.14);
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.detail-figure__placeholder svg {
  width: 56px; height: 56px;
}
.detail-figure__placeholder p {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--driftwood);
  margin: 0;
  opacity: 0.7;
}
.detail-figure figcaption {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--driftwood);
  margin-top: 0.7rem;
  opacity: 0.85;
}


/* ── LOG SECTION ────────────────────────────────────────────────── */
.detail-log__sub {
  font-family: var(--hand);
  color: var(--brass);
  font-size: 1.05rem;
  margin: -0.2rem 0 1.4rem;
}

.entry {
  position: relative;
  background: #FDFBF6;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 50, 0.035) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 50, 0.03) 1px, transparent 2px);
  background-size: 22px 22px, 28px 28px;
  padding: 1.3rem 1.5rem 1.4rem;
  margin: 0 0 1.4rem;
  border-radius: 3px;
  box-shadow:
    0 14px 26px -16px rgba(43, 38, 32, 0.26),
    0 1px 2px rgba(43, 38, 32, 0.06);
  border: 1px solid rgba(107, 98, 86, 0.1);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.35s ease;
}
.entry--tilt-l { transform: rotate(-0.6deg); }
.entry--tilt-r { transform: rotate(0.7deg); }
.entry:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 22px 36px -18px rgba(43, 38, 32, 0.32),
    0 1px 2px rgba(43, 38, 32, 0.08);
}
.entry__date {
  display: inline-block;
  font-family: 'Kalam', var(--hand);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--brass);
  background: rgba(184, 134, 11, 0.12);
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.entry p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* Older entries accordion */
.detail-older {
  margin-top: 1.8rem;
}
.detail-older > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--driftwood);
  padding: 0.6rem 1.2rem;
  background: rgba(120, 90, 50, 0.08);
  border-radius: 999px;
  margin-bottom: 1.4rem;
  transition: background 0.2s ease;
}
.detail-older > summary::-webkit-details-marker { display: none; }
.detail-older > summary::before {
  content: "▸ ";
  color: var(--brass);
  transition: transform 0.2s ease;
  display: inline-block;
}
.detail-older[open] > summary::before { content: "▾ "; }
.detail-older > summary:hover {
  background: rgba(184, 134, 11, 0.14);
  color: var(--ink);
}


/* ── SIDEBAR ────────────────────────────────────────────────────── */
.detail-side {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.side-box {
  background: var(--accent, #FDFBF6);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 50, 0.05) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 50, 0.04) 1px, transparent 2px);
  background-size: 18px 18px, 24px 24px;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 3px;
  box-shadow:
    0 16px 28px -18px rgba(43, 38, 32, 0.28),
    0 1px 2px rgba(43, 38, 32, 0.06);
  border: 1px solid rgba(107, 98, 86, 0.12);
}
.side-box__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.side-box__title::after {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--brass);
  margin-top: 0.4rem;
  opacity: 0.6;
}

.side-list,
.side-stack {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(107, 98, 86, 0.25);
  color: var(--ink);
}
.side-list li:last-child { border-bottom: none; }
.side-list__label {
  font-style: italic;
  color: var(--driftwood);
  font-size: 0.95rem;
}
.side-list__val {
  font-family: 'Kalam', var(--hand);
  color: var(--brass);
  font-size: 1.05rem;
  text-align: right;
}

.side-stack li {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.5;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(107, 98, 86, 0.22);
  color: var(--ink);
}
.side-stack li:last-child { border-bottom: none; }
.side-stack a {
  color: var(--driftwood);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  font-style: italic;
}
.side-stack a:hover { color: var(--brass); }
.side-tag {
  font-family: var(--hand);
  font-size: 0.85rem;
  color: var(--brass);
  background: rgba(184, 134, 11, 0.14);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}


/* ── OTHER PRACTICES NAV ────────────────────────────────────────── */
.detail-other {
  max-width: 1180px;
  margin: 3rem auto 4rem;
  padding: 2.5rem 2rem 0;
  border-top: 1px dashed rgba(178, 93, 67, 0.3);
  text-align: center;
  position: relative;
  z-index: 5;
}
.detail-other__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}
.detail-other__sub {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--brass);
  margin: 0.3rem 0 1.8rem;
}
.detail-other__row {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.other-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.7rem;
  width: 100px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease, background 0.3s ease;
}
.other-chip:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.5);
}
.other-chip svg {
  width: 44px; height: 44px;
  background: var(--cream);
  padding: 6px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(107, 98, 86, 0.15);
}
.other-chip span {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--driftwood);
  font-style: italic;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .detail-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .detail-side > * {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  .detail-hero { padding: 0 1rem; }
  .detail-hero__bar { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .detail-hero__title { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .detail-hero__icon-wrap { width: 80px; height: 80px; transform: rotate(-3deg); }
  .detail-hero__icon { width: 50px; height: 50px; }
  .detail-body { padding: 0 1rem; gap: 2.2rem; }
  .entry { transform: none !important; }
  .detail-other__row { gap: 0.8rem; }
  .other-chip { width: 78px; padding: 0.6rem 0.4rem; }
  .other-chip svg { width: 36px; height: 36px; }
  .other-chip span { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .entry, .other-chip { transition: none; }
}


/* ═══════════════════════════════════════════════════════════════ */
/*  v1.0.25 — Year/Month accordion grouping for practice entries    */
/* ═══════════════════════════════════════════════════════════════ */

.practice-year {
  border-bottom: 1px solid rgba(107, 98, 86, 0.15);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}
.practice-year[open] {
  padding-bottom: 1rem;
}
.practice-year__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--serif);
}
.practice-year__summary::-webkit-details-marker { display: none; }
.practice-year__summary::before {
  content: "▸";
  font-size: 0.9rem;
  color: var(--accent-deep, var(--brass));
  transition: transform 0.2s ease;
  margin-right: 0.6rem;
  display: inline-block;
}
.practice-year[open] > .practice-year__summary::before {
  transform: rotate(90deg);
}
.practice-year__num {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.practice-year__count {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--driftwood);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.practice-month {
  margin: 0.6rem 0 0.6rem 1.4rem;
  padding: 0.3rem 0;
}
.practice-month__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--serif);
  font-style: italic;
}
.practice-month__summary::-webkit-details-marker { display: none; }
.practice-month__summary::before {
  content: "▸";
  font-size: 0.75rem;
  color: var(--brass);
  opacity: 0.7;
  transition: transform 0.2s ease;
  margin-right: 0.5rem;
  display: inline-block;
}
.practice-month[open] > .practice-month__summary::before {
  transform: rotate(90deg);
}
.practice-month__name {
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.85;
}
.practice-month__count {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--driftwood);
  opacity: 0.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}

.practice-month > .entry {
  margin: 0.8rem 0;
}

/* Mobile: tighter month indent */
@media (max-width: 700px) {
  .practice-month {
    margin-left: 0.6rem;
  }
}


/* ═══════════════════════════════════════════════════════════════ */
/*  v1.0.26 — Featured Image in practice entries (polaroid style)   */
/* ═══════════════════════════════════════════════════════════════ */

.entry__photo {
  margin: 0.6rem 0 0.8rem;
  padding: 0.5rem 0.5rem 1rem;
  background: var(--cream, #FAF7F0);
  border: 1px solid rgba(107, 98, 86, 0.12);
  box-shadow: 0 4px 14px -6px rgba(43, 38, 32, 0.18);
  max-width: 360px;
  display: inline-block;
}
.entry__photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: none;
  box-shadow: none;
}

/* Mobile: smaller polaroid */
@media (max-width: 700px) {
  .entry__photo {
    max-width: 100%;
    padding: 0.4rem 0.4rem 0.7rem;
  }
}
