/*
Theme Name: PubMartech
Theme URI: https://pubmartech.com
Description: Custom "Magazine Grid" publication theme for PubMartech — business, marketing, technology, lifestyle and health.
Author: PubMartech
Version: 1.0.0
Text Domain: pubmartech
Tags: blog, news, magazine, custom-logo, featured-images
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:    #FAFAFC;
  --ink:      #1A1523;
  --ink-soft: #6B6478;
  --ink-mute: #9C97A8;
  --line:     #E7E4F0;
  --surface:  #FFFFFF;
  --accent:   #7C3AED;
  --accent-dark: #6D28D9;

  --grad-brand: linear-gradient(135deg, #7C3AED 0%, #EC4899 55%, #F97316 100%);
  --grad-brand-2: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);

  --c-business:  #7C3AED;
  --c-marketing: #F97316;
  --c-tech:      #3B82F6;
  --c-lifestyle: #EC4899;
  --c-health:    #10B981;

  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 10px;
  --shadow: 0 10px 28px -10px rgba(124,58,237,.22);
  --shadow-lg: 0 24px 48px -16px rgba(124,58,237,.28);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.7; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── HEADER (masthead, no button row) ── */
.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.site-logo { display: flex; align-items: baseline; gap: 12px; }
.site-logo img { height: 40px; width: auto; }
.logo-word { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .005em; color: var(--ink); line-height: 1; }
.masthead-date { font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 14px; display: none; }

.header-links { display: flex; align-items: center; gap: 30px; }
.header-links a { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); transition: var(--transition); }
.header-links a:hover { color: var(--accent); }
.btn-hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.btn-hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); }

/* ── TOPIC STRIP (nav replacement) ── */
.topic-strip { border-bottom: 1px solid var(--line); }
.topic-strip-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topic-strip-inner::-webkit-scrollbar { display: none; }
.topic-strip a { padding: 16px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.topic-strip a:first-child { padding-left: 0; }
.topic-strip a:hover { color: var(--ink); }
.topic-strip a.active { color: var(--accent-dark); border-color: var(--accent); }

/* ── MOBILE MENU ── */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--ink); z-index: 999; padding: 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu-close { background: none; border: none; color: var(--paper); font-size: 28px; cursor: pointer; float: right; }
.mobile-nav { margin-top: 48px; }
.mobile-nav a { display: block; color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0; padding: 14px 0; border-bottom: 1px solid rgba(246,243,236,.15); }
.mobile-nav a:hover { color: #F0ABFC; }

/* ── MAGAZINE GRID (hero baked in, single unified block) ── */
.mag-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 145px; gap: 14px; margin: 40px 0; }
.mag-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 22px; color: #fff; overflow: hidden; transition: var(--transition); cursor: pointer; border-radius: var(--radius); box-shadow: var(--shadow); }
.mag-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.05); }
.mag-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.08) 60%); pointer-events: none; }
.mag-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.10), transparent 55%); pointer-events: none; }
.mag-tile > * { position: relative; z-index: 1; }
.mag-tile.t1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.mag-tile.t2 { grid-column: 5 / 7; grid-row: 1 / 2; }
.mag-tile.t3 { grid-column: 5 / 7; grid-row: 2 / 3; }
.mag-tile.t4 { grid-column: 1 / 3; grid-row: 3 / 4; }
.mag-tile.t5 { grid-column: 3 / 5; grid-row: 3 / 4; }
.mag-tile.t6 { grid-column: 5 / 7; grid-row: 3 / 4; }
.mag-tile.t7 { grid-column: 1 / 3; grid-row: 4 / 5; }
.mag-tile.t8 { grid-column: 3 / 5; grid-row: 4 / 5; }
.mag-tile.t9 { grid-column: 5 / 7; grid-row: 4 / 5; }

.bg-business  { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.bg-marketing { background: linear-gradient(135deg, #F97316, #FB923C); }
.bg-tech      { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.bg-lifestyle { background: linear-gradient(135deg, #EC4899, #F472B6); }
.bg-health    { background: linear-gradient(135deg, #10B981, #34D399); }
.bg-default   { background: linear-gradient(135deg, #6B7280, #9CA3AF); }

.mag-cat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.25); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: 50px; margin-bottom: 10px; }
.mag-tile.t1 .mag-title { font-family: var(--font-display); font-size: 30px; line-height: 1.15; letter-spacing: 0; margin-bottom: 10px; }
.mag-tile.t1 .mag-excerpt { font-size: 13.5px; line-height: 1.55; opacity: .92; max-width: 460px; margin-bottom: 10px; }
.mag-tile:not(.t1) .mag-title { font-family: var(--font-display); font-size: 16px; line-height: 1.25; }
.mag-meta { font-size: 11px; opacity: .85; margin-top: 8px; letter-spacing: .01em; }

/* ── SECTION LABEL (used sparingly, no repeated section-head pattern) ── */
.rule-label { display: flex; align-items: center; gap: 16px; margin: 64px 0 26px; }
.rule-label span { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.rule-label::after { content: ''; flex: 1; height: 2px; background: var(--line); }

/* ── EXPLORE TOPICS (flat directory strip) ── */
.topics-band { padding: 0 0 24px; }
.topics-flat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.topic-flat-tile { padding: 24px 18px; color: #fff; text-align: center; transition: var(--transition); border-radius: var(--radius); box-shadow: var(--shadow); }
.topic-flat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.06); }
.topic-flat-tile .t-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .01em; margin-bottom: 5px; }
.topic-flat-tile .t-count { font-size: 10.5px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; color: #fff; }

/* ── FOOTER (subscribe merged in, single block) ── */
.site-footer { margin-top: 64px; border-top: 3px solid var(--ink); }
.footer-subscribe { background: var(--ink); color: var(--paper); padding: 60px 0; position: relative; overflow: hidden; }
.footer-subscribe::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; background: linear-gradient(135deg, #7C3AED, #EC4899); opacity: .18; top: -140px; left: -80px; filter: blur(4px); }
.footer-subscribe::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 58% 42% 35% 65% / 55% 60% 40% 45%; background: linear-gradient(135deg, #F97316, #EC4899); opacity: .14; bottom: -120px; right: -60px; }
.footer-subscribe .container { position: relative; z-index: 1; }
.footer-subscribe-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer-subscribe h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .005em; }
.footer-subscribe p { font-size: 13.5px; color: #C9C2E0; margin-top: 6px; }
.footer-nl-form { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.footer-nl-form input { padding: 14px 18px; border: 1.5px solid #3A3450; background: #241F33; color: #fff; border-radius: var(--radius); font-size: 13.5px; outline: none; width: 250px; font-family: inherit; }
.footer-nl-form input:focus { border-color: var(--accent); }
.footer-nl-form input::placeholder { color: #9C97A8; }
.footer-nl-form button { padding: 14px 28px; background: var(--grad-brand-2); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.footer-nl-form button:hover { filter: brightness(1.1); transform: translateY(-2px); }
.nl-success { color: #86efac; font-weight: 600; font-size: 13.5px; display: none; }

.footer-links-band { background: var(--paper); padding: 28px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-mute); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent-dark); }

/* ── SINGLE POST (slim rail + wide content, not sidebar-widget style) ── */
.post-hero-band { padding: 56px 0 0; position: relative; overflow: hidden; }
.post-hero-band::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; background: rgba(255,255,255,.1); top: -110px; right: -50px; }
.post-hero-band .container { position: relative; z-index: 1; }
.post-eyebrow { display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); padding: 5px 14px; border-radius: 50px; margin-bottom: 18px; }
.post-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: 0; margin-bottom: 18px; max-width: 900px; }
.post-dek { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 700px; margin-bottom: 28px; }

.post-layout { display: grid; grid-template-columns: 180px 1fr; gap: 56px; padding: 40px 0 72px; align-items: start; }
.post-rail { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 30px; border-right: 1px solid var(--line); padding-right: 32px; }
.rail-block h5 { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.rail-author { display: flex; flex-direction: column; gap: 5px; }
.rail-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand-2); margin-bottom: 8px; overflow: hidden; }
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rail-author .name { font-weight: 700; font-size: 13.5px; }
.rail-author .date { font-size: 11.5px; color: var(--ink-mute); line-height: 1.6; }
.rail-tags { display: flex; flex-direction: column; gap: 8px; }
.rail-tags a { font-size: 12.5px; color: var(--ink-soft); transition: var(--transition); }
.rail-tags a:hover { color: var(--accent-dark); }
.rail-share { display: flex; gap: 10px; }
.rail-share a { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: var(--transition); }
.rail-share a:hover { border-color: var(--accent); color: var(--accent-dark); background: #F4EEFF; }

.post-content { max-width: 700px; }
.post-content h2, .post-content h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 38px 0 14px; line-height: 1.25; }
.post-content h2 { font-size: 23px; }
.post-content h3 { font-size: 18px; }
.post-content p { font-size: 15.5px; color: #2A2438; line-height: 1.85; margin-bottom: 22px; }
.post-content ul, .post-content ol { margin: 16px 0 24px 24px; color: #2A2438; font-size: 15px; line-height: 1.8; }
.post-content li { margin-bottom: 9px; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 6px 0 6px 24px; margin: 34px 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--ink); letter-spacing: 0; }
.post-content a { color: var(--accent-dark); text-decoration: underline; }
.post-content img { border-radius: var(--radius); margin: 24px 0; }

.post-nav-band { margin-top: 56px; border-top: 3px solid var(--ink); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-nav-band a { flex: 1; }
.post-nav-band .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); display: block; margin-bottom: 4px; }
.post-nav-band .ttl { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.post-nav-band a:hover .ttl { color: var(--accent); }
.post-nav-band .next-wrap { text-align: right; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--accent); }

/* ── TABLE OF CONTENTS (blog listing) ── */
.toc-header { padding: 52px 0 8px; }
.toc-header h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0; }
.toc-header p { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.toc-list { border-top: 3px solid var(--ink); margin-top: 8px; }
.toc-row { display: grid; grid-template-columns: 54px 120px 1fr 150px; align-items: center; gap: 24px; padding: 26px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--transition); border-radius: var(--radius); }
.toc-row:hover { background: var(--surface); box-shadow: var(--shadow); }
.toc-num { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink-mute); }
.toc-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 6px 12px; text-align: center; border-radius: 50px; }
.toc-title-wrap .toc-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.toc-title-wrap .toc-title:hover { color: var(--accent-dark); }
.toc-title-wrap .toc-excerpt { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; display: block; }
.toc-meta { font-size: 11.5px; color: var(--ink-mute); text-align: right; line-height: 1.6; }

/* ── CONTACT / PAGE BAND ── */
.page-band { padding: 52px 0 72px; }
.page-band h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.page-band .lead { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 44px; max-width: 560px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.contact-form-band { background: var(--surface); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: -8px; }
.contact-form input, .contact-form textarea { padding: 13px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 6px; font-size: 14px; outline: none; font-family: inherit; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { padding: 14px 28px; background: var(--ink); color: var(--paper); border: none; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; align-self: flex-start; transition: var(--transition); }
.contact-form button:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.contact-info-band { background: var(--ink); color: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info-item h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; color: var(--accent); }
.contact-info-item p { font-size: 13.5px; color: #C9C2E0; }
.form-msg { padding: 13px 18px; font-size: 13px; font-weight: 700; background: #F0FDF4; border: 1px solid #86efac; color: #166534; border-radius: 6px; }
.form-msg.error { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }

/* ── READING PROGRESS BAR ── */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad-brand); z-index: 200; transition: width .1s linear; }

/* ── AUTHOR BIO BOX (on post pages) ── */
.author-bio { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 36px 0; box-shadow: var(--shadow); }
.author-bio-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand-2); flex-shrink: 0; overflow: hidden; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 5px; }
.author-bio .role { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; display: block; }
.author-bio p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── SHARE ROW (functional links) ── */
.share-row { display: flex; align-items: center; gap: 12px; margin: 32px 0; }
.share-row .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.share-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: var(--transition); }
.share-icon:hover { border-color: var(--accent); color: #fff; background: var(--grad-brand-2); transform: translateY(-2px); }

/* ── COMMENTS (real WordPress comments) ── */
.comments-section { margin-top: 56px; padding-top: 32px; border-top: 3px solid var(--ink); }
.comments-section h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; }
.comments-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.comments-form p { margin-bottom: 12px; }
.comments-form input[type="text"], .comments-form input[type="email"], .comments-form input[type="url"], .comments-form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; outline: none; }
.comments-form textarea { resize: vertical; min-height: 90px; }
.comments-form input:focus, .comments-form textarea:focus { border-color: var(--accent); }
.comments-form button, .comments-form input[type="submit"] { padding: 12px 26px; background: var(--ink); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.comments-note { font-size: 12.5px; color: var(--ink-mute); margin-top: 12px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .comment-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.comment-list .comment-avatar img { width: 100%; height: 100%; }
.comment-list .comment-author { font-weight: 700; font-size: 13.5px; }
.comment-list .comment-meta { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 6px; }
.comment-list .comment-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.comment-list ul.children { list-style: none; margin-left: 40px; }

/* ── ABOUT INTRO (homepage) ── */
.about-intro { padding: 8px 0 0; }
.about-intro-card { background: var(--grad-brand); border-radius: var(--radius); padding: 36px 40px; color: #fff; position: relative; overflow: hidden; }
.about-intro-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.2), transparent 40%), radial-gradient(circle at 88% 80%, rgba(255,255,255,.15), transparent 40%); }
.about-intro-card > * { position: relative; z-index: 1; }
.about-intro-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; max-width: 640px; }
.about-intro-card p { font-size: 14px; line-height: 1.65; opacity: .92; max-width: 640px; }
.about-intro-card a.learn-more { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 10px 22px; border-radius: 50px; }
.about-intro-card a.learn-more:hover { background: rgba(255,255,255,.32); }

/* ── AUTHOR SPOTLIGHT STRIP (homepage) ── */
.author-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.author-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; transition: var(--transition); }
.author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.author-card .avatar-lg { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-brand-2); margin: 0 auto 12px; overflow: hidden; }
.author-card .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.author-card .role { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; display: block; }
.author-card .count { font-size: 12.5px; color: var(--ink-mute); }

/* ── TRENDING TAGS WIDGET ── */
.trending-tags-band { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trending-tags-band .lbl { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.tag-chip { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 7px 15px; border-radius: 50px; transition: var(--transition); }
.tag-chip:hover { color: #fff; background: var(--grad-brand-2); border-color: transparent; }

/* ── ABOUT / TEAM PAGE ── */
.about-hero { background: var(--grad-brand); color: #fff; padding: 48px 0; text-align: center; position: relative; overflow: hidden; }
.about-hero::before { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: rgba(255,255,255,.12); top: -100px; right: -60px; }
.about-hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; background: rgba(255,255,255,.1); bottom: -90px; left: -50px; }
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.about-hero p { font-size: 14.5px; max-width: 620px; margin: 0 auto; opacity: .92; line-height: 1.65; }
.about-section { padding: 40px 0; }
.about-section h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.about-section p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.8; max-width: 720px; margin-bottom: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.team-card .avatar-xl { width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand-2); margin: 0 auto 14px; overflow: hidden; }
.team-card .avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.team-card .role { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; display: block; }
.team-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat-box { text-align: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-box .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent); }
.stat-box .lbl { font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ── FAQ PAGE ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--accent); font-family: var(--font-body); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }

/* ── SEARCH PAGE ── */
.search-box-wrap { max-width: 620px; margin: 0 0 40px; }
.search-input-lg { width: 100%; padding: 15px 22px; border: 2px solid var(--ink); border-radius: 50px; font-size: 15px; font-family: var(--font-body); outline: none; }
.search-input-lg:focus { border-color: var(--accent); }
.search-results-count { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 20px; }
.search-empty { padding: 60px 20px; text-align: center; color: var(--ink-mute); }
.search-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }

/* ── 404 PAGE ── */
.error-page { padding: 100px 0; text-align: center; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: 100px; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 12px 0 14px; }
.error-page p { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.error-page .btn-home { display: inline-block; padding: 14px 32px; background: var(--grad-brand-2); color: #fff; border-radius: 50px; font-size: 14px; font-weight: 700; }
.error-page .btn-home:hover { filter: brightness(1.08); }

/* ── SCROLL-REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.16,.8,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FLAT CATEGORY ICONS ── */
.cat-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon svg { display: block; width: 100%; height: 100%; }
.topic-flat-tile .cat-icon { width: 34px; height: 34px; margin: 0 auto 12px; background: rgba(255,255,255,.22); border-radius: 10px; padding: 7px; color: #fff; }
.mag-cat .cat-icon { width: 12px; height: 12px; margin-right: 5px; }
.toc-cat .cat-icon { width: 11px; height: 11px; margin-right: 4px; }
.cat-page-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; vertical-align: middle; margin-right: 12px; padding: 9px; }

/* ── WEEKLY RECAP ── */
.archive-strip { display: flex; flex-direction: column; gap: 3px; }
.archive-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); }
.archive-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.archive-item .issue-no { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--accent-dark); flex-shrink: 0; width: 100px; text-transform: uppercase; letter-spacing: .03em; }
.archive-item .issue-theme { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.archive-item .issue-theme a { color: var(--ink); font-weight: 600; }
.archive-item .issue-theme a:hover { color: var(--accent-dark); }
.archive-item .issue-date { font-size: 12px; color: var(--ink-mute); flex-shrink: 0; }
.archive-item.current { background: var(--grad-brand); border-color: transparent; }
.archive-item.current .issue-no, .archive-item.current .issue-theme, .archive-item.current .issue-theme a, .archive-item.current .issue-date { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .mag-tile.t1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mag-tile.t2 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .mag-tile.t3 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .mag-tile.t4 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .mag-tile.t5 { grid-column: 2 / 3; grid-row: 4 / 5; }
  .mag-tile.t6 { grid-column: 1 / 2; grid-row: 5 / 6; }
  .mag-tile.t7 { grid-column: 2 / 3; grid-row: 5 / 6; }
  .mag-tile.t8 { grid-column: 1 / 2; grid-row: 6 / 7; }
  .mag-tile.t9 { grid-column: 2 / 3; grid-row: 6 / 7; }
  .topics-flat { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-rail { position: static; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 20px; }
  .author-strip { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-links { display: none; }
  .btn-hamburger { display: flex; }
  .mag-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mag-tile.t1, .mag-tile.t2, .mag-tile.t3, .mag-tile.t4, .mag-tile.t5, .mag-tile.t6, .mag-tile.t7, .mag-tile.t8, .mag-tile.t9 { grid-column: 1 / 2; }
  .mag-tile.t1 { grid-row: 1 / 3; }
  .topics-flat { grid-template-columns: 1fr 1fr; }
  .toc-row { grid-template-columns: 32px 1fr; }
  .toc-cat { display: none; }
  .toc-meta { grid-column: 2 / 3; text-align: left; }
  .footer-subscribe-inner { flex-direction: column; align-items: flex-start; }
  .footer-nl-form { width: 100%; }
  .footer-nl-form input { flex: 1; width: auto; }
  .post-title { font-size: 26px; }
  .toc-header h1, .page-band h1 { font-size: 24px; }
  .author-strip { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .author-bio { flex-direction: column; }
  .about-hero h1 { font-size: 24px; }
  .about-intro-card h2 { font-size: 18px; }
  .error-page .code { font-size: 64px; }
  .archive-item { flex-wrap: wrap; }
  .archive-item .issue-date { width: 100%; text-align: right; }
}
