/* =====================================================================
   SINGLE POST (Standard + Listicle)  — ported from surfside-listicle.html
   ===================================================================== */

/* READING BAR */
.reading-bar { position: fixed; top: 70px; left: 0; right: 0; height: 3px; background: var(--border); z-index: 199; }
.reading-progress { height: 100%; background: linear-gradient(90deg, var(--teal), var(--coral)); width: 0; transition: width .1s; }

/* HERO */
.article-hero { position: relative; height: 60vh; min-height: 460px; overflow: hidden; }
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; animation: slowZoom 20s ease-out forwards; }
.article-hero-bg--fallback { background: linear-gradient(160deg, var(--teal) 0%, var(--ocean) 55%, var(--ocean-dark) 100%); }
@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,74,99,.1) 0%, rgba(15,74,99,.2) 40%, rgba(15,74,99,.88) 85%, rgba(15,74,99,.97) 100%); }
.article-hero-content { position: absolute; bottom: 0; left: 0; right: 0; max-width: 860px; margin: 0 auto; padding: 0 2rem 3rem; }
.article-hero .breadcrumb { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.article-hero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.article-hero .breadcrumb a:hover { color: var(--sand); }
.article-hero .breadcrumb span { color: rgba(255,255,255,.5); }
.article-category { font-weight: 700; }
.article-category { font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); background: rgba(255,255,255,.12); padding: .3rem .9rem; border-radius: 3px; display: inline-block; margin-bottom: 1rem; }
.article-hero-title { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.25rem; }
.article-hero-title em { font-style: italic; color: var(--sand); }
.article-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.article-meta-item { font-size: .7rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .35rem; }
.article-meta-item i { color: rgba(255,255,255,.5); }
.article-meta-divider { color: rgba(255,255,255,.2); }

/* LAYOUT */
.listicle-layout { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 2rem; display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }

/* INTRO */
.listicle-intro { font-family: "Lora", Georgia, serif; font-size: 1.1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 2px solid var(--border); }
.listicle-intro p { margin-bottom: 1rem; }
.listicle-intro p:last-child { margin-bottom: 0; }

/* JUMP LINKS */
.jump-links { background: var(--sky); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin-bottom: 3rem; }
.jump-links-title { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light); font-weight: 700; display: block; margin-bottom: 1rem; }
.jump-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.jump-link { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--ocean); text-decoration: none; padding: .4rem .5rem; border-radius: 4px; transition: background .2s; }
.jump-link:hover { background: #fff; }
.jump-link-num { width: 22px; height: 22px; border-radius: 50%; background: var(--ocean); color: #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* LIST ITEMS */
.list-item { margin-bottom: 0; scroll-margin-top: 100px; }
.list-item-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: .85rem; }
.list-item-number { font-family: var(--font-head); font-size: 4rem; font-weight: 700; color: var(--ocean); line-height: 1; opacity: .15; flex-shrink: 0; width: 64px; text-align: right; }
.list-item-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: .3rem; }
.list-item-title em { font-style: italic; color: var(--ocean); }
.list-item-subtitle { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-top: .4rem; }
.list-item-image { border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.list-item-image-img { width: 100%; height: 320px; background-size: cover; background-position: center; }
.list-item-text { font-family: "Lora", Georgia, serif; font-size: .98rem; color: var(--text-mid); line-height: 1.85; }
.list-item-text p { margin-bottom: 1rem; }
.list-item-text p:last-child { margin-bottom: 0; }
.list-item-text strong { color: var(--text); font-weight: 600; }
.list-item-text a { color: var(--ocean); }
.list-item-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); text-decoration: none; border-bottom: 2px solid var(--teal-light); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.list-item-cta:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.list-item-divider { border: none; border-top: 1px solid var(--border); margin: 3.5rem 0; }
.list-item-highlight .list-item-number { color: var(--coral-deep); }
.list-item-highlight .list-item-title em { color: var(--coral-deep); }

/* TAGS */
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-tag { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 100px; background: var(--sky); color: var(--ocean); border: 1px solid var(--border); text-decoration: none; transition: background .2s, color .2s; }
.article-tag:hover { background: var(--teal-light); color: #fff; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-sticky { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: #fff; border-radius: 10px; box-shadow: 0 2px 16px rgba(0,0,0,.07); overflow: hidden; }
.sidebar-widget-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); }
.sidebar-widget-header em { font-style: italic; color: var(--ocean); }
.sidebar-widget-body { padding: 1.25rem; }
.progress-tracker { display: flex; flex-direction: column; gap: .3rem; }
.progress-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: 6px; text-decoration: none; transition: background .2s; }
.progress-item:hover { background: var(--sky); }
.progress-item.read .progress-dot { background: var(--teal); }
.progress-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; flex-shrink: 0; border: 2px solid var(--teal-light); transition: background .3s; }
.progress-num { font-size: .65rem; font-weight: 800; color: var(--text-light); width: 16px; text-align: center; }
.progress-label { font-size: .75rem; font-weight: 700; color: var(--text-mid); line-height: 1.2; }
.plan-widget-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: padding-left .2s; }
.plan-widget-item:last-of-type { border-bottom: none; }
.plan-widget-item:hover { padding-left: .3rem; }
.plan-widget-icon { font-size: 1rem; flex-shrink: 0; color: var(--teal); width: 1.2rem; text-align: center; }
.plan-widget-label { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); font-weight: 700; display: block; }
.plan-widget-value { font-size: .85rem; font-weight: 700; color: var(--text); display: block; }
.btn-coral-full { background: var(--coral); color: #fff; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .95rem; border-radius: 4px; display: block; text-align: center; transition: background .2s; margin-top: 1.25rem; }
.btn-coral-full:hover { background: var(--coral-light); }

/* STANDARD ARTICLE */
.article-standard { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem; }
.article-content { font-family: "Lora", Georgia, serif; font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; }
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--text); margin: 2rem 0 1rem; }
.article-content h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--text); margin: 1.75rem 0 .75rem; }
.article-content img { border-radius: 10px; margin: 1.5rem 0; }
.article-content a { color: var(--ocean); }
.article-content ul, .article-content ol { margin: 0 0 1.25rem 1.25rem; }
.article-content li { margin-bottom: .5rem; }
/* Data tables (e.g. the distance chart in the Getting Here article) */
.article-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0 2.25rem; font-family: var(--font-body); font-size: .92rem; line-height: 1.4; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 8px rgba(15,74,99,.05); }
.article-content thead th { background: var(--ocean-dark); color: #fff; text-align: left; font-weight: 700; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1.15rem; }
.article-content thead th:not(:first-child) { text-align: right; }
.article-content tbody td { padding: .8rem 1.15rem; border-top: 1px solid var(--border); color: var(--text-mid); vertical-align: middle; }
.article-content tbody tr:first-child td { border-top: none; }
.article-content tbody td:first-child { font-weight: 700; color: var(--text); }
.article-content tbody td:not(:first-child) { text-align: right; white-space: nowrap; }
.article-content tbody tr:nth-child(even) { background: var(--sky); }
.article-content table + h3 { margin-top: 2.5rem; }

/* MORE ARTICLES */
.more-articles { background: var(--sky); border-top: 1px solid var(--border); padding: 4rem 2rem; }
.more-articles-inner { max-width: var(--wrap); margin: 0 auto; }
.more-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.more-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text); }
.more-title em { font-style: italic; color: var(--ocean); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.more-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.07); transition: transform .3s, box-shadow .3s; text-decoration: none; display: block; }
.more-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.more-card-image { height: 180px; background-size: cover; background-position: center; }
.more-card-body { padding: 1.25rem; }
.more-card-cat { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 700; display: block; margin-bottom: .4rem; }
.more-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: .5rem; }
.more-card-meta { font-size: .7rem; color: var(--text-light); }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .listicle-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { display: none; } /* progress tracker is decorative on mobile */
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .jump-links-grid { grid-template-columns: 1fr; }
  .list-item-number { font-size: 3rem; width: 48px; }
  .more-grid { grid-template-columns: 1fr; }
}
