/* ===============================
   Coastal Editorial — Single Post (v7)
   Scoped to .post-v7
================================ */
.post-v7 {
    --ink: #0E2A47;
    --text: #111827;
    --muted: #5b6472;
    --line: #e6e9ee;
    --sand: #E7D7C1;
    --foam: #F6F8FA;
    --accent: #0B9CB3;
    --max: 1200px;
    --content: 1100px;
    --radius: 16px;
}

.post-v7 * {
    box-sizing: border-box;
}

.post-v7 {
    color: var(--text);
    background: #fff;
    font: 18px/1.78 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.post-v7 a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(14, 42, 71, .35);
}

.post-v7 a:hover {
    border-color: var(--ink);
}

.post-v7 .wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 28px;
}

.post-v7 .section {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.post-v7 .section:first-of-type {
    border-top: none;
}

.post-v7 .content {
    max-width: var(--content);
    margin-inline: auto;
}

.post-v7 h1 {
    font: 700 clamp(34px, 5vw, 60px)/1.04 ui-serif, Georgia, "Times New Roman", serif;
    color: #fff;
    margin: 0;
}

.post-v7 h2 {
    font: 700 clamp(22px, 3.2vw, 32px)/1.16 ui-serif, Georgia, "Times New Roman", serif;
    color: var(--ink);
    margin: 28px 0 10px;
}

.post-v7 h3 {
    font: 700 20px/1.28 ui-sans-serif, system-ui;
    color: var(--ink);
    margin: 24px 0 8px;
}

.post-v7 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reading progress */
.post-v7 .progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.post-v7 .progress .bar {
    height: 3px;
    background: var(--ink);
    width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .post-v7 .progress .bar {
        transition: none;
    }
}

/* HERO */
.post-v7 .hero {
    position: relative;
    background: #0b1d32;
    color: #fff;
    overflow: hidden;
}

.post-v7 .hero .bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.post-v7 .hero .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .8;
    filter: saturate(.92) contrast(1.05);
}

.post-v7 .hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 28, .78), rgba(8, 16, 28, .52) 42%, rgba(8, 16, 28, .78));
}

.post-v7 .hero .wrap {
    position: relative;
    z-index: 1;
    padding-top: 110px;
    padding-bottom: 110px;
}

.post-v7 .kicker {
    display: inline-block;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .85rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.post-v7 .meta {
    color: #eaf2ff;
    opacity: .95;
    font-size: 1rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.post-v7 .dot {
    width: 3px;
    height: 3px;
    border-radius: 99px;
    background: #eaf2ff;
    display: inline-block;
}

/* Article body */
.post-v7 .article {
    padding-top: 18px; /* Reduced by 50% from 36px */
}

.post-v7 .article p {
    margin: 0 0 18px;
}

.post-v7 .article strong {
    color: #091625;
}

.post-v7 .article em {
    font-style: italic;
}

.post-v7 .article ul,
.post-v7 .article ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.post-v7 .article li {
    margin: 6px 0;
}

.post-v7 .article blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--sand);
    background: var(--foam);
    color: #243447;
}

.post-v7 .article figure {
    margin: 26px 0;
}

.post-v7 .article figcaption {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 8px;
}

.post-v7 .article .inline-img {
    aspect-ratio: 3/2;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f4f7;
}

.post-v7 .article .wp-block-image img {
    border-radius: 16px;
}

.post-v7 .article figure.wp-block-image {
    border-radius: 16px;
    overflow: hidden;
}

.post-v7 .article .callout {
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 22px 0;
}

.post-v7 .article .callout strong {
    color: var(--ink);
}

.post-v7 .article .hr {
    height: 1px;
    background: var(--line);
    margin: 32px 0;
}

/* Share + tags row */
.post-v7 .share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.post-v7 .chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-v7 .chip {
    display: inline-block;
    border: 1px solid rgba(14, 42, 71, .25);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    color: #0b1d32;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none; /* Remove underline from links */
}

.post-v7 .chip:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    text-decoration: none; /* Ensure no underline on hover */
}

/* Author bio */
.post-v7 .author {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

.post-v7 .author img {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
}

.post-v7 .author h3 {
    margin: 0;
}

.post-v7 .author p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* Prev/Next */
.post-v7 .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.post-v7 .nav .link {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
    background: #fff;
    border-bottom: 1px solid var(--line) !important; /* Override global link styling */
}

.post-v7 .nav .link:hover {
    /* Hover effect removed as per requirement */
    border-bottom: 1px solid var(--line) !important; /* Keep border consistent on hover */
}

.post-v7 .nav .eyebrow {
    font-weight: 700;
    font-size: .9rem;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-v7 .nav .title {
    display: block;
    font-weight: 700;
    color: var(--ink);
    margin-top: 4px;
}

/* Related posts */
.post-v7 .related h2 {
    margin-bottom: 14px;
}

.post-v7 .cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.post-v7 .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
    transition: transform .24s ease, box-shadow .24s ease;
}

.post-v7 .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
}

.post-v7 .imgwrap {
    position: relative;
    overflow: hidden;
    background: #f2f4f7;
    aspect-ratio: 3/2;
}

.post-v7 .imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-v7 .label {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(3px);
    color: #0b1d32;
    border: 1px solid rgba(14, 42, 71, .15);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .9rem;
}

.post-v7 .body {
    padding: 16px 18px;
}

.post-v7 .body h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}

.post-v7 .body h3 a {
    border-bottom: none;
}

.post-v7 .meta-inline {
    color: var(--muted);
    font-size: .95rem;
}

/* Custom overrides (single post) */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Reduce excess space between Prev/Next and Related */
.section.related {
    padding-top: 32px;
}

/* Tighter hero spacing on tablet/phone */
@media (max-width: 840px) {
    .post-v7 .hero .wrap {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 640px) {
    .post-v7 .hero .wrap {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .post-v7 .kicker {
        margin-bottom: 16px;
    }
    
    .post-v7 h1 {
        margin-bottom: 16px;
    }
}

@media (max-width: 900px) {
    .post-v7 .cards {
        grid-template-columns: 1fr;
    }

    .post-v7 .nav {
        grid-template-columns: 1fr;
    }

    .post-v7 .author {
        grid-template-columns: 80px 1fr;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIX
   ======================================== */

/* Mobile landscape: Reduce hero height for better visibility */
@media (max-height: 500px) and (orientation: landscape) {
  .post-v7 .hero .wrap {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  .post-v7 h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    margin-bottom: 12px !important;
  }
  
  .post-v7 .lead {
    font-size: 1rem !important;
  }
  
  .post-v7 .kicker {
    margin-bottom: 10px !important;
  }
}

/* Tablet landscape: Moderate reduction */
@media (max-height: 700px) and (min-width: 768px) and (orientation: landscape) {
  .post-v7 .hero .wrap {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}