/* ══════════════════════════════════════════════════════════════
   blog-2026.css  |  USH Host Blog (WordPress) 2026 look
   A8 prototype, 28 Nov 2026. NOT PUBLISHED.

   Loads AFTER the shared host stylesheet /assets2026/ush.css (tokens,
   nav, buttons, footer, container). This file only adds blog rules.
   Card, article and prev/next rules are copied from the Student Blog
   (websites/app/views/student/2026/blog/*.blade.php). The CTA banner and
   solid inner-page nav are copied from host/2026/faq.blade.php.
   ══════════════════════════════════════════════════════════════ */

/* ── Solid nav for inner pages (host faq.blade.php) ── */
.nav{background:rgba(251,248,243,0.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 1px 12px rgba(0,0,0,0.06)}
.nav-links a{color:var(--c-text)}
.nav-links a:hover{color:var(--c-teal)}
.nav-links a.active{color:var(--c-teal) !important}
.nav-mobile-btn{color:var(--c-text)}
input,select,textarea,button{font-family:var(--ff-body)}

/* ── Accessibility additions (blog only) ──
   ush.css hides the closed mobile menu with opacity only, so its links stay
   in the tab order. visibility removes them until the menu opens. */
.mobile-menu{visibility:hidden;transition:opacity 0.35s,visibility 0s linear 0.35s}
.mobile-menu.open{visibility:visible;transition:opacity 0.35s,visibility 0s}
.mobile-menu a.active{color:var(--c-teal)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--c-teal-dark);outline-offset:3px;border-radius:4px}
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ══════════ LISTING HERO (Student Blog .blog-hero) ══════════ */
.blog-hero{background-image:linear-gradient(180deg,rgba(74,82,80,0.52) 0%,rgba(40,46,44,0.74) 100%),url('/assets2026/host-brunch.jpg');background-size:cover;background-position:center 46%;background-repeat:no-repeat;padding:168px 0 84px;text-align:center}
.blog-hero .section-label{color:rgba(255,255,255,0.82);margin-bottom:20px;text-shadow:0 1px 6px rgba(0,0,0,0.45)}
.blog-hero h1{font-family:var(--ff-display);font-size:clamp(2.4rem,5vw,3.6rem);font-weight:700;color:var(--c-white);line-height:1.1;letter-spacing:-0.025em;margin-bottom:20px;text-shadow:0 2px 18px rgba(0,0,0,0.45)}
.blog-hero h1 em{font-style:italic;font-weight:400;color:var(--c-amber-glow)}
.blog-hero p{font-size:clamp(1rem,1.8vw,1.15rem);color:rgba(255,255,255,0.92);max-width:560px;margin:0 auto;line-height:1.65;text-shadow:0 1px 12px rgba(0,0,0,0.45)}
.blog-hero.compact{padding:148px 0 64px}
@media(max-width:600px){.blog-hero{padding:128px 0 56px}.blog-hero.compact{padding:120px 0 48px}}

/* ── Category chips (links to the existing /blog/category/... archives) ── */
.blog-cats{background:var(--c-white);border-bottom:1px solid var(--c-border)}
.blog-cats ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:20px 0}
.blog-cats a{display:inline-block;font-size:0.8rem;font-weight:600;color:var(--c-olive-dark);padding:8px 16px;border:1px solid var(--c-border);border-radius:var(--r-full);transition:border-color 0.2s,color 0.2s,background 0.2s}
.blog-cats a:hover{border-color:var(--c-teal);color:var(--c-teal-dark)}
.blog-cats a[aria-current]{background:var(--c-teal-light);border-color:var(--c-teal);color:var(--c-teal-dark)}
@media(max-width:700px){
  .blog-cats ul{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:16px 0}
  .blog-cats ul::-webkit-scrollbar{display:none}
  .blog-cats li{flex:0 0 auto}
}

/* ══════════ POST GRID (Student Blog .blog-grid / .post-card) ══════════ */
.blog-section{background:var(--c-cream);padding:64px 0 88px}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
/* Page 1 holds the featured post + 2 cards (WordPress shows 3 per page), so use 2 columns there. */
.blog-grid.has-featured{grid-template-columns:repeat(2,1fr)}
.blog-grid.has-featured .post-card:not(.featured) .post-card-media{height:230px}
@media(max-width:960px){.blog-grid{grid-template-columns:repeat(2,1fr);gap:20px}}
@media(max-width:600px){.blog-grid,.blog-grid.has-featured{grid-template-columns:1fr;gap:16px}.blog-section{padding:40px 0 64px}}

.post-card{background:var(--c-white);border-radius:var(--r-lg);border:1px solid var(--c-border);overflow:hidden;display:flex;flex-direction:column;position:relative;transition:transform 0.3s var(--ease-out),box-shadow 0.3s var(--ease-out),border-color 0.3s}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:transparent}
.post-card-media{position:relative;height:190px;overflow:hidden;background:var(--c-cream-dim)}
.post-card-media img{width:100%;height:100%;object-fit:cover;object-position:center 28%;display:block;transition:transform 0.5s var(--ease-out)}
.post-card:hover .post-card-media img{transform:scale(1.05)}
.post-card-chip{position:absolute;top:14px;left:14px;z-index:2;background:rgba(251,248,243,0.92);color:var(--c-olive-dark);font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;padding:5px 12px;border-radius:var(--r-full)}
.post-card-body{display:flex;flex-direction:column;flex:1;padding:22px 26px 24px}
.post-card-title{font-family:var(--ff-display);font-size:1.12rem;font-weight:700;color:var(--c-olive-dark);line-height:1.35;margin-bottom:12px}
/* Whole card is clickable through the title link (one link per card, so
   screen readers hear the title once instead of the full card text). */
.post-card-title a::after{content:"";position:absolute;inset:0;z-index:1}
.post-card-title a:focus-visible{outline:none}
.post-card:has(.post-card-title a:focus-visible){outline:2px solid var(--c-teal-dark);outline-offset:3px}
.post-card-excerpt{font-size:0.88rem;color:var(--c-text-light);line-height:1.65;margin-bottom:18px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-card-meta{font-size:0.72rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--c-text-muted)}
.post-card-meta .dot{margin:0 7px;opacity:0.5}

/* Newest post on the first page spans the row (image left, text right). */
.post-card.featured{grid-column:1/-1;flex-direction:row}
.post-card.featured .post-card-media{height:auto;min-height:360px;flex:0 0 55%}
.post-card.featured .post-card-media img{position:absolute;inset:0}
.post-card.featured .post-card-body{padding:40px 44px;justify-content:center}
.post-card.featured .post-card-title{font-size:clamp(1.4rem,2.4vw,1.9rem);line-height:1.2;margin-bottom:16px}
.post-card.featured .post-card-excerpt{font-size:0.98rem;-webkit-line-clamp:4;flex:0 0 auto}
.post-card-eyebrow{font-size:0.7rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--c-orange);margin-bottom:12px}
@media(max-width:760px){
  .post-card.featured{flex-direction:column}
  .post-card.featured .post-card-media{min-height:0;height:210px;flex:none}
  .post-card.featured .post-card-body{padding:22px 26px 24px}
}

/* ── Pagination (WordPress paginate_links output) ── */
.blog-pagination{margin-top:48px;display:flex;justify-content:center}
.blog-pagination .page-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border-radius:var(--r-full);border:1px solid var(--c-border);background:var(--c-white);font-size:0.88rem;font-weight:600;color:var(--c-olive-dark);transition:border-color 0.2s,color 0.2s}
.blog-pagination a.page-numbers:hover{border-color:var(--c-teal);color:var(--c-teal-dark)}
.blog-pagination .page-numbers.current{background:var(--c-olive-dark);border-color:var(--c-olive-dark);color:var(--c-white)}
.blog-pagination .page-numbers.dots{border:none;background:transparent;min-width:20px;padding:0}
.blog-pagination .prev,.blog-pagination .next{padding:0 20px}
@media(max-width:600px){.blog-pagination .page-numbers:not(.prev):not(.next):not(.current){display:none}}

/* ══════════ BROWSE BAND (listing pages; the existing sidebar content) ══════════ */
.blog-browse{background:var(--c-white);border-top:1px solid var(--c-border);padding:64px 0}
.blog-browse-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:40px}
@media(max-width:960px){.blog-browse-grid{grid-template-columns:1fr 1fr;gap:36px}}
@media(max-width:600px){.blog-browse-grid{grid-template-columns:1fr;gap:32px}.blog-browse{padding:48px 0}}

/* Shared widget look (browse band + article sidebar) */
.widget-title{font-size:0.72rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--c-text-muted);margin-bottom:14px}
.widget ul{list-style:none}
.widget li{margin-bottom:6px;font-size:0.9rem;line-height:1.45}
.widget li a{display:inline-block;padding:3px 0;min-height:24px;color:var(--c-olive-dark);transition:color 0.2s}
.widget li a:hover{color:var(--c-teal-dark);text-decoration:underline;text-underline-offset:3px}
.widget + .widget{margin-top:32px}
.widget-count{color:var(--c-text-muted);font-size:0.8rem}
.blog-search{display:flex;gap:8px}
.blog-search input[type=search]{flex:1;min-width:0;height:46px;padding:0 16px;border:1px solid var(--c-border-strong);border-radius:var(--r-full);background:var(--c-white);font-size:0.9rem;color:var(--c-text)}
.blog-search input[type=search]:focus{border-color:var(--c-teal);outline:none;box-shadow:0 0 0 3px rgba(110,183,163,0.2)}
.blog-search button{height:46px;padding:0 20px}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{font-size:0.78rem;color:var(--c-text-light);padding:5px 12px;min-height:26px;max-width:100%;display:inline-flex;align-items:center;border-radius:var(--r-full);background:var(--c-cream-dim);transition:background 0.2s,color 0.2s}
.tag-cloud a:hover{background:var(--c-teal-light);color:var(--c-teal-dark)}
.archives summary{cursor:pointer;font-size:0.9rem;font-weight:600;color:var(--c-olive-dark);list-style:none;display:flex;align-items:center;gap:8px;min-height:32px}
.archives summary::-webkit-details-marker{display:none}
.archives summary svg{width:14px;height:14px;transition:transform 0.2s}
.archives[open] summary svg{transform:rotate(90deg)}
.archives ul{margin-top:12px;columns:2;column-gap:16px}
.archives li{font-size:0.85rem;break-inside:avoid}
.social-links{display:flex;gap:10px}
.social-links a{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--c-cream-dim);color:var(--c-olive-dark);transition:background 0.2s,color 0.2s}
.social-links a:hover{background:var(--c-teal);color:var(--c-white)}
.social-links svg{width:18px;height:18px;fill:currentColor}

/* Jetpack "Subscribe by Email" widget (existing markup from dynamic_sidebar) */
.jetpack_subscription_widget h2{font-size:0.72rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--c-text-muted);margin-bottom:14px;font-family:var(--ff-body)}
.jetpack_subscription_widget form{display:flex;gap:8px;flex-wrap:wrap}
.jetpack_subscription_widget #subscribe-text:empty{display:none}
.jetpack_subscription_widget p{margin:0}
.jetpack_subscription_widget #subscribe-email{flex:1;min-width:0}
.jetpack_subscription_widget input[type=email]{width:100%;height:46px;padding:0 16px;border:1px solid var(--c-border-strong);border-radius:var(--r-full);font-size:0.9rem}
.jetpack_subscription_widget input[type=submit]{height:46px;padding:0 20px;border:none;border-radius:var(--r-full);background:var(--c-teal);color:var(--c-white);font-weight:600;font-size:0.88rem;cursor:pointer}
.jetpack_subscription_widget input[type=submit]:hover{background:var(--c-teal-dark)}

/* ══════════ ARTICLE HEADER (Student Blog .post-header) ══════════ */
.post-header{background:var(--c-olive-dark);padding:140px 0 64px}
.post-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:0.75rem;color:rgba(255,255,255,0.6);margin-bottom:24px;letter-spacing:0.03em}
.post-breadcrumb a{color:rgba(255,255,255,0.72);transition:color 0.2s}
.post-breadcrumb a:hover{color:var(--c-amber-glow)}
.post-breadcrumb svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;flex-shrink:0;opacity:0.5}
.post-chip{display:inline-block;background:rgba(110,183,163,0.18);color:var(--c-teal);font-size:0.7rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;padding:6px 14px;border-radius:var(--r-full);margin-bottom:20px}
a.post-chip:hover{background:rgba(110,183,163,0.3)}
.post-header h1{font-family:var(--ff-display);font-size:clamp(2rem,4.5vw,3.2rem);font-weight:700;color:var(--c-white);line-height:1.15;letter-spacing:-0.025em;max-width:820px;margin-bottom:20px;overflow-wrap:break-word}
.post-meta{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.post-date{font-size:0.78rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--c-teal)}
.post-read{font-size:0.78rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:rgba(255,255,255,0.65)}
@media(max-width:600px){.post-header{padding:112px 0 44px}}

/* ══════════ ARTICLE BODY (Student Blog .post-content) ══════════ */
.post-body{background:var(--c-cream);padding:72px 0 96px}
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:64px;align-items:start}
@media(max-width:900px){.post-layout{grid-template-columns:minmax(0,1fr);gap:48px}}
@media(max-width:600px){.post-body{padding:44px 0 64px}}
.post-content{max-width:720px;overflow-wrap:break-word}
.post-content h2,.post-content h3,.post-content h4{font-family:var(--ff-display);color:var(--c-olive-dark);line-height:1.25;margin:2em 0 0.6em}
.post-content h2{font-size:clamp(1.4rem,2.5vw,1.9rem);font-weight:700}
.post-content h3{font-size:clamp(1.15rem,2vw,1.45rem);font-weight:600}
.post-content h4{font-size:1.1rem;font-weight:600}
.post-content > :first-child{margin-top:0}
.post-content p{font-size:1.05rem;color:var(--c-text);line-height:1.8;margin-bottom:1.5em}
.post-content ul,.post-content ol{margin:0 0 1.5em 1.5em;padding:0}
.post-content li{font-size:1.05rem;color:var(--c-text);line-height:1.75;margin-bottom:0.5em}
.post-content a{color:var(--c-teal-dark);text-decoration:underline;text-underline-offset:3px}
.post-content a:hover{color:var(--c-orange)}
.post-content strong{font-weight:600;color:var(--c-charcoal)}
/* Older posts use a bold paragraph as a heading; give it heading rhythm. */
.post-content p > strong:only-child{display:block;font-family:var(--ff-display);font-size:1.25rem;font-weight:700;color:var(--c-olive-dark);line-height:1.3;margin-top:1.6em}
.post-content em{font-style:italic}
/* Every in-article photo spans the full text column (Emerson 28 Nov: floated photos read too small).
   Old posts set width/height attributes for small sizes, so width:100% overrides them. */
.post-content img{width:100%;max-width:100%;height:auto;border-radius:var(--r-md);display:block;margin:2em 0}
.post-content > :first-child img:first-child,.post-content > img:first-child{margin-top:0}
/* A8 native migration: contain legacy fixed-width embeds without editing article markup. */
.post-content iframe,.post-content embed,.post-content object,.post-content video{max-width:100%}
.post-content img.emoji,.post-content img.wp-smiley{width:1em;display:inline;margin:0 0.07em;border-radius:0}
.post-content blockquote{border-left:3px solid var(--c-teal);margin:2em 0;padding:16px 24px;background:rgba(110,183,163,0.06);border-radius:0 var(--r-sm) var(--r-sm) 0}
.post-content blockquote p{margin-bottom:0;font-style:italic;color:var(--c-text-light)}
.post-content hr{border:none;border-top:1px solid var(--c-border);margin:2.5em 0}
.post-content table{width:100%;border-collapse:collapse;margin:0 0 1.5em;font-size:0.95rem;display:block;overflow-x:auto}
.post-content th,.post-content td{border:1px solid var(--c-border);padding:10px 12px;text-align:left}
/* WordPress alignment and caption classes used inside existing posts */
.post-content::after{content:"";display:table;clear:both}
/* Left/right floats are flattened to full-width blocks so text never wraps beside a photo. */
.post-content .alignleft,.post-content .alignright,.post-content .aligncenter{float:none;display:block;max-width:100%;margin:2em 0}
.post-content .wp-caption{width:auto !important;max-width:100%}
.post-content .wp-caption img{margin:0 0 8px}
.post-content .wp-caption-text,.post-content figcaption{font-size:0.82rem;color:var(--c-text-muted);line-height:1.5}
.post-content figure{margin:2em 0}
@media(max-width:600px){
  .post-content .alignleft,.post-content .alignright,.post-content img.alignleft,.post-content img.alignright{float:none;max-width:100%;margin:1.5em 0}
  .post-content p,.post-content li{font-size:1rem}
}

/* ── Article sidebar ── */
.post-sidebar{display:flex;flex-direction:column;gap:24px}
.sidebar-cta{background:var(--c-olive-dark);border-radius:var(--r-lg);padding:32px 28px;text-align:center}
.sidebar-cta .cta-label{font-size:0.72rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--c-teal);margin-bottom:10px}
.sidebar-cta h2{font-family:var(--ff-display);font-size:1.3rem;font-weight:700;color:var(--c-white);margin-bottom:12px;line-height:1.25}
.sidebar-cta p{font-size:0.88rem;color:rgba(255,255,255,0.75);line-height:1.65;margin-bottom:24px}
.sidebar-cta .btn{display:flex;justify-content:center;text-align:center;padding:14px 20px}
.sidebar-refer{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;font-size:0.86rem;font-weight:600;color:var(--c-amber-glow)}
.sidebar-refer:hover{color:var(--c-white)}
.host-links a{font-weight:600}
.sidebar-box{background:var(--c-white);border:1px solid var(--c-border);border-radius:var(--r-lg);padding:24px 24px 18px}
@media(max-width:900px){.post-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.post-sidebar .sidebar-cta{grid-column:1/-1}}
@media(max-width:600px){.post-sidebar{grid-template-columns:minmax(0,1fr)}}

/* ══════════ PREV / NEXT (Student Blog .post-nav) ══════════ */
/* v1.3: single.php keeps WordPress previous_post_link()/next_post_link(), which print a bare <a rel="prev|next">,
   so the link box is styled through its .post-nav-slot wrapper. .post-nav-link stays for the static prototype. */
.post-nav{background:var(--c-white);border-top:1px solid var(--c-border);padding:48px 0}
.post-nav-inner{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:600px){.post-nav-inner{grid-template-columns:1fr;gap:16px}}
.post-nav-link,.post-nav-slot > a{display:block;padding:24px 28px;border-radius:var(--r-lg);border:1px solid var(--c-border);transition:border-color 0.2s,box-shadow 0.2s,transform 0.2s}
.post-nav-link:hover,.post-nav-slot > a:hover{border-color:var(--c-teal);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.post-nav-link.next,.post-nav-slot.next > a{text-align:right}
.post-nav-dir{font-size:0.68rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--c-teal-dark);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.post-nav-link.next .post-nav-dir,.post-nav-slot.next .post-nav-dir{justify-content:flex-end}
.post-nav-dir svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.post-nav-title{font-family:var(--ff-display);font-size:1rem;font-weight:600;color:var(--c-olive-dark);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ══════════ CTA BANNER (host faq.blade.php) ══════════ */
.cta-section{padding:80px 0;background:var(--c-cream)}
.cta-banner{background:var(--c-charcoal);border-radius:var(--r-xl);padding:56px 56px;display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
@media(max-width:700px){.cta-banner{flex-direction:column;text-align:center;padding:40px 28px}.cta-section{padding:56px 0}}
.cta-label{font-size:0.78rem;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:var(--c-teal);margin-bottom:8px}
.cta-banner h2{font-family:var(--ff-display);font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:var(--c-white);line-height:1.1;margin-bottom:10px}
.cta-banner h2 em{font-style:italic;font-weight:400;color:var(--c-teal)}
.cta-banner p{font-size:0.92rem;color:rgba(255,255,255,0.72);line-height:1.7;max-width:480px}
.cta-actions{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.cta-note{font-size:0.8rem;color:rgba(255,255,255,0.6)}

/* ── Empty / search states ── */
.blog-empty{text-align:center;color:var(--c-text-light);padding:48px 0;font-size:1rem}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition:none !important;animation:none !important}
  .post-card:hover,.post-nav-link:hover,.post-nav-slot > a:hover{transform:none}
}
