/* =========================================================
   Three-column layout for My Articles page
   Left sidebar uses EXISTING default styles (no override!)
   Middle: article list | Right: article content
   ========================================================= */

/* Hide topbar (sidebar is always visible on desktop for this layout) */
body.three-column .topbar { display: none !important; }
body.three-column .skip-link { display: none; }
body.three-column .overlay { display: none !important; }

/* Three-column grid: sidebar (existing width) + article list + content */
body.three-column .layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 240px minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

/* Sidebar: enforce full height, independent scroll, always aligned with other columns */
body.three-column .sidebar {
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

/* ========== MIDDLE ARTICLE LIST BAR ========== */
body.three-column .article-list {
  background: #fafafa;
  border-right: 1px solid var(--line);
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}

.article-list-header {
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fafafa;
  z-index: 10;
}

.article-list-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.article-list-subtitle {
  font-size: .78rem;
  color: var(--muted);
}

.article-list-section {
  padding: 6px 0;
  flex: 1;
}

.article-item {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
  font: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
}

.article-item:hover {
  background: rgba(216, 68, 47, 0.04);
}

.article-item.active {
  background: #fff;
  border-left-color: var(--brand);
}

.article-item-title {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item.active .article-item-title {
  font-weight: 600;
  color: var(--brand);
}

.article-item-meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-item-meta .article-dot {
  font-size: 6px;
  color: var(--muted);
}

/* Items with right arrow (city links) */
.article-item--with-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-item--with-arrow .article-item-title {
  flex: 1;
  margin-bottom: 0;
}

.article-item-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.article-item--with-arrow:hover .article-item-arrow {
  color: var(--brand);
  transform: translateX(2px);
}

.article-item--with-arrow.active .article-item-arrow {
  color: var(--brand);
}

/* Expandable city groups for Destinations list */
.city-group {
  border-bottom: 1px solid var(--line);
}

.city-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s ease;
  user-select: none;
  margin: 0;
}

.city-group > summary::-webkit-details-marker {
  display: none;
}

.city-group > summary:hover {
  background: #fafafa;
}

.article-item-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .25s ease;
}

.city-group[open] > summary .article-item-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.city-group-children {
  padding: 6px 0 16px;
}

.article-item--child {
  padding: 14px 24px 14px 32px;
  font-size: .95rem;
  border-left: 3px solid transparent;
  background: transparent;
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin: 0;
  border-radius: 0;
}

.article-item--child:hover {
  background: #fafafa;
  color: var(--ink);
}

.article-item--child.active {
  background: var(--surface);
  color: var(--brand);
  font-weight: 500;
  border-left-color: var(--brand);
}

.article-item--child .article-item-title {
  font-weight: 400;
  font-size: .95rem;
  margin: 0;
}

.article-item--child.active .article-item-title {
  font-weight: 500;
  color: var(--brand);
}

.article-item--city {
  border-radius: 0;
  margin: 0;
}

.article-item--city.active .article-item-title {
  color: var(--brand);
}

/* ========== ARTICLE PANES ========== */
.article-pane {
  display: none;
}

.article-pane.active {
  display: block;
}

/* ========== RIGHT CONTENT AREA ========== */
body.three-column .content {
  padding: 0;
  background: #fff;
  overflow-y: auto;
  height: 100vh;
  position: relative;
}

body.three-column .content-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 52px 56px 96px;
}

/* Article header */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.article-meta-top {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.article-meta-top .article-dot {
  font-size: 8px;
  color: var(--muted);
}

.article-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}

/* Prose content - explicitly override global styles */
body.three-column .prose {
  font-size: 19px !important;
  line-height: 1.78 !important;
  color: var(--body);
}

body.three-column .prose p {
  margin-bottom: 22px !important;
}

body.three-column .prose h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 2.9vw, 2.3rem) !important;
  font-weight: 700;
  margin-top: 60px !important;
  margin-bottom: 24px !important;
  color: var(--ink);
}

body.three-column .prose h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem !important;
  font-weight: 600;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
}

body.three-column .prose ul,
body.three-column .prose ol {
  margin-bottom: 22px !important;
}

body.three-column .prose li {
  margin-bottom: 9px !important;
}

/* Keep component cards compact inside three-column articles —
   the .prose !important rules above must not inflate card titles/bodies */
body.three-column .pay-head h2 {
  font-size: 1.28rem !important;
  margin: 3px 0 0 !important;
  line-height: 1.3 !important;
}
body.three-column .pay-head h3 {
  font-size: 1.05rem !important;
  margin: 0 !important;
}
body.three-column .pay-body {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}
body.three-column .pay-body p {
  margin-bottom: 14px !important;
}
body.three-column .pay-body > :last-child {
  margin-bottom: 0 !important;
}
body.three-column .fact-card h3 {
  font-size: 1.02rem !important;
  margin: 14px 0 6px !important;
}
body.three-column .fact-card p {
  margin-bottom: 0 !important;
  font-size: .92rem !important;
}
body.three-column .callout p,
body.three-column .insider-tip p {
  margin-bottom: 0 !important;
}

/* Footer hide in three-column */
body.three-column .site-footer {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  body.three-column .content-inner {
    padding: 40px 36px 60px;
  }
}

@media (max-width: 1000px) {
  body.three-column .layout {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  body.three-column .article-list {
    display: none;
  }
}

@media (max-width: 700px) {
  body.three-column .layout {
    grid-template-columns: 1fr;
  }
  body.three-column .sidebar {
    position: fixed;
    left: -100%;
    z-index: 100;
    transition: left 0.2s ease;
    width: var(--sidebar-w);
  }
  body.three-column .content-inner {
    padding: 24px 20px 40px;
  }
}
