/*
Theme Name: GiftPixo
Theme URI: http://localhost/giftpixo.com
Author: GiftPixo
Author URI: http://localhost/giftpixo.com
Description: GiftPixo — a bold, modern rewards/blog theme for gift-card guides, game giveaways and MOD APK walkthroughs. Fully custom-coded from the GiftPixo design handoff, with light/dark theming, a sticky mega-nav, top-stories rail, magazine homepage, rich single-post layout and branded pages.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giftpixo
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, dark-mode, sticky-post, full-width-template, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --gp-accent:      #f43676;
  --gp-accent-2:    #ff7aa8;
  --gp-accent-dark: #c81f57;

  --page:     #f4f4f6;
  --surface:  #ffffff;
  --surface2: #f4f4f6;
  --ink:      #141419;
  --text:     #1c1c22;
  --text2:    #33333c;
  --muted:    #6a6a74;
  --border:   #ececf0;
  --imgbg:    #f0f0f3;
  --chip:     #fff0f5;

  --footer-bg:    #141419;
  --footer-text:  #c9c9d2;
  --footer-muted: #8a8a98;
  --footer-line:  #26262e;

  --font-head: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Public Sans', ui-sans-serif, system-ui, sans-serif;

  --container: 1280px;
  --radius:    14px;
  --shadow-sm: 0 3px 16px rgba(20,20,25,.05);
  --shadow-md: 0 4px 22px rgba(20,20,25,.06);
  --shadow-lg: 0 22px 48px rgba(20,20,25,.15);

  --ease: cubic-bezier(.22,.7,.28,1);
}

html[data-theme="dark"] {
  --page:     #0e0e13;
  --surface:  #17171d;
  --surface2: #20202a;
  --ink:      #f1f1f5;
  --text:     #f1f1f5;
  --text2:    #d0d0d8;
  --muted:    #9a9aa6;
  --border:   #2a2a34;
  --imgbg:    #22222c;
  --chip:     #3a1826;
  --shadow-sm: 0 3px 16px rgba(0,0,0,.35);
  --shadow-md: 0 4px 22px rgba(0,0,0,.4);
  --shadow-lg: 0 22px 48px rgba(0,0,0,.55);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gp-accent); text-decoration: none; }
a:hover { color: var(--gp-accent-dark); }
button { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }

a, button, article,
.gp-card, .gp-social, .gp-icon-btn, .gp-chip, .gp-page-num {
  transition: transform .28s var(--ease), background .28s ease, color .2s ease, box-shadow .3s ease, border-color .2s ease;
}

.gp-site { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.gp-main { flex: 1 0 auto; width: 100%; }
.gp-container { max-width: var(--container); margin: 0 auto; padding-left: 22px; padding-right: 22px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--surface); clip: auto; clip-path: none; color: var(--gp-accent);
  display: block; height: auto; left: 6px; top: 6px; padding: 12px 18px; width: auto; z-index: 100000;
  border-radius: 8px; box-shadow: var(--shadow-md); font-weight: 700;
}
.gp-skip-link { position: absolute; left: -9999px; }

/* Scrollbar for rails */
.gp-scroll::-webkit-scrollbar { height: 8px; }
.gp-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--gp-accent) 33%, transparent); border-radius: 8px; }

/* Reveal animation */
@keyframes gpFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gpPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.gp-reveal-init { opacity: 0; transform: translateY(28px); }
.gp-reveal-play { animation: gpFadeUp .7s both var(--ease); }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .gp-reveal-init { opacity: 1 !important; transform: none !important; }
  .gp-reveal-play { animation: none !important; }
}

/* ============================================================
   3. HEADER
   ============================================================ */
.gp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(20,20,25,.02);
}
.gp-header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.gp-logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.gp-logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 21px;
  box-shadow: 0 5px 14px rgba(244,54,118,.25);
  overflow: hidden;
}
.gp-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.gp-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 23px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }

/* Primary nav */
.gp-nav { display: flex; }
.gp-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.gp-nav .sub-menu { list-style: none; }
.gp-nav .menu-item { position: relative; }
.gp-nav .menu-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--text2); white-space: nowrap;
}
.gp-nav .menu-item > a:hover,
.gp-nav .menu-item.current-menu-item > a,
.gp-nav .menu-item.current-menu-parent > a,
.gp-nav .menu-item.current-menu-ancestor > a { color: var(--gp-accent); }
.gp-nav .menu-item-has-children > a::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto; opacity: .7;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gp-nav .current-menu-item > a::before,
.gp-nav .current-menu-parent > a::before,
.gp-nav .current-menu-ancestor > a::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  background: var(--gp-accent); border-radius: 2px;
}
/* Dropdown */
.gp-nav .sub-menu {
  display: block; list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--surface); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20,20,25,.16); border: 1px solid var(--border);
  z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.gp-nav .menu-item-has-children:hover > .sub-menu,
.gp-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.gp-nav .sub-menu li { position: relative; }
.gp-nav .sub-menu a {
  display: block; padding: 9px 18px; color: var(--text2); font-size: 14px; font-weight: 500;
}
.gp-nav .sub-menu a:hover { background: var(--chip); color: var(--gp-accent); }

/* Header actions */
.gp-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.gp-socials { display: flex; align-items: center; gap: 7px; }
.gp-social {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
}
.gp-social:hover { background: var(--gp-accent); border-color: var(--gp-accent); color: #fff; }
.gp-social svg { display: block; }

.gp-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.gp-icon-btn:hover { border-color: var(--gp-accent); color: var(--gp-accent); }
.gp-icon-btn--solid {
  border: none; background: var(--gp-accent); color: #fff;
  box-shadow: 0 5px 14px rgba(244,54,118,.33);
}
.gp-icon-btn--solid:hover { background: var(--gp-accent-dark); color: #fff; transform: translateY(-2px); }

.gp-subscribe {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gp-accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(244,54,118,.33); white-space: nowrap;
}
.gp-subscribe:hover { background: var(--gp-accent-dark); color: #fff; transform: translateY(-2px); }

.gp-hamburger {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0;
}

/* Theme toggle: show the moon in light mode, the sun in dark mode */
.gp-theme-toggle .gp-i-sun { display: none; }
html[data-theme="dark"] .gp-theme-toggle .gp-i-moon { display: none; }
html[data-theme="dark"] .gp-theme-toggle .gp-i-sun { display: inline-flex; }
.gp-theme-toggle span { display: inline-flex; align-items: center; justify-content: center; }

/* Expanding search */
.gp-searchbar { border-top: 1px solid var(--border); background: var(--surface); animation: gpFadeIn .25s ease; }
.gp-searchbar[hidden] { display: none; }
.gp-searchbar-inner { max-width: var(--container); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 12px; }
.gp-searchbar form { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface2); border-radius: 999px; padding: 11px 18px; }
.gp-searchbar input[type="search"] { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 15px; }
.gp-searchbar .gp-search-icon { flex: 0 0 auto; color: #a6a6b0; }
.gp-searchbar-close { background: transparent; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.gp-searchbar form:focus-within, .gp-search-inline:focus-within { outline: 2px solid var(--gp-accent); outline-offset: 2px; }

/* Mobile menu */
.gp-mobile-menu { background: var(--surface); border-top: 1px solid var(--border); max-height: 72vh; overflow-y: auto; animation: gpFadeIn .25s ease; }
.gp-mobile-menu[hidden] { display: none; }
.gp-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.gp-mobile-menu .menu-item { border-bottom: 1px solid var(--border); }
.gp-mobile-menu .menu-item > a { display: block; padding: 13px 22px; color: var(--ink); font-weight: 700; font-size: 15px; font-family: var(--font-head); }
.gp-mobile-menu .sub-menu { padding: 0 0 8px; }
.gp-mobile-menu .sub-menu .menu-item { border-bottom: none; }
.gp-mobile-menu .sub-menu a { display: block; padding: 7px 36px; color: var(--muted); font-size: 14px; font-weight: 500; }
.gp-mobile-menu .sub-menu a:hover { color: var(--gp-accent); }
.gp-mobile-subscribe { display: block; margin: 14px 22px 18px; text-align: center; background: var(--gp-accent); color: #fff; font-family: var(--font-head); font-weight: 700; padding: 12px; border-radius: 999px; }
.gp-mobile-subscribe:hover { color: #fff; background: var(--gp-accent-dark); }

/* ============================================================
   4. TOP STORIES RAIL
   ============================================================ */
.gp-topstories { background: var(--surface); border-bottom: 1px solid var(--border); }
.gp-topstories-inner { max-width: var(--container); margin: 0 auto; padding: 16px 22px; }
.gp-rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gp-badge {
  background: var(--gp-accent); color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; font-family: var(--font-body);
}
.gp-rule { height: 1px; flex: 1; background: var(--border); }
.gp-rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.gp-rail-item { flex: 0 0 200px; display: flex; flex-direction: column; gap: 8px; color: inherit; }
.gp-rail-item:hover { transform: translateY(-5px); }
.gp-rail-thumb { width: 200px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--imgbg); }
.gp-rail-title {
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-rail-item:hover .gp-rail-title { color: var(--gp-accent); }

/* ============================================================
   5. MAIN GRID / LAYOUT
   ============================================================ */
.gp-layout { max-width: var(--container); margin: 0 auto; padding: 32px 22px 48px; display: grid; gap: 40px; grid-template-columns: minmax(0,1fr) 340px; }
.gp-layout--wide { grid-template-columns: minmax(0,1fr); }
.gp-content { min-width: 0; }

/* Thumbs / placeholders */
.gp-thumb { position: relative; overflow: hidden; background: var(--imgbg); display: block; }
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gp-thumb--ph { display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 14px; }
.gp-thumb--ph span { font-family: var(--font-head); font-weight: 700; font-size: 13px; line-height: 1.3; opacity: .95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.25); }

/* Chips */
.gp-chip {
  display: inline-block; align-self: flex-start;
  background: var(--chip); color: var(--gp-accent);
  font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 5px; font-family: var(--font-body);
}
.gp-chip:hover { background: var(--gp-accent); color: #fff; }
.gp-chip--lg { font-size: 12px; padding: 5px 12px; border-radius: 6px; }

/* Featured article */
.gp-featured { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 28px; }
.gp-featured:hover { box-shadow: 0 24px 54px rgba(20,20,25,.14); }
html[data-theme="dark"] .gp-featured:hover { box-shadow: 0 24px 54px rgba(0,0,0,.55); }
.gp-featured-thumb { width: 100%; height: 360px; background: var(--imgbg); }
.gp-featured-body { padding: 26px 28px 30px; }
.gp-featured-title { font-family: var(--font-head); font-weight: 800; font-size: 29px; line-height: 1.18; letter-spacing: -.02em; margin: 14px 0 12px; }
.gp-featured-title a { color: var(--ink); }
.gp-featured-title a:hover { color: var(--gp-accent); }
.gp-featured-excerpt { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 18px; text-wrap: pretty; }
.gp-featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gp-byline { color: var(--muted); font-size: 13px; }
.gp-byline b { color: var(--text2); }

/* Buttons */
.gp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gp-accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; font-family: var(--font-body); border: none; cursor: pointer;
}
.gp-btn:hover { background: var(--gp-accent-dark); color: #fff; transform: translateY(-2px); }
.gp-readmore { color: var(--gp-accent); font-weight: 700; font-size: 13.5px; }
.gp-readmore:hover { color: var(--gp-accent-dark); }

/* Card grid */
.gp-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.gp-card { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gp-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.gp-card-thumb { width: 100%; height: 190px; background: var(--imgbg); }
.gp-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gp-card-body .gp-chip { margin-bottom: 11px; }
.gp-card-title { font-family: var(--font-head); font-weight: 700; font-size: 18.5px; line-height: 1.28; letter-spacing: -.01em; margin: 0 0 9px; }
.gp-card-title a { color: var(--text); }
.gp-card-title a:hover { color: var(--gp-accent); }
.gp-card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; text-wrap: pretty; }
.gp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gp-card-foot .gp-byline { font-size: 12px; }

/* Pagination */
.gp-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gp-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text2); font-weight: 700; border-radius: 9px; box-shadow: 0 2px 8px rgba(20,20,25,.06);
}
html[data-theme="dark"] .gp-pagination .page-numbers { box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.gp-pagination .page-numbers:hover { background: var(--chip); color: var(--gp-accent); }
.gp-pagination .page-numbers.current { background: var(--gp-accent); color: #fff; box-shadow: none; }
.gp-pagination .page-numbers.dots { background: transparent; box-shadow: none; }

/* No results */
.gp-noresults { background: var(--surface); border-radius: 14px; padding: 60px 30px; text-align: center; box-shadow: var(--shadow-sm); }
.gp-noresults-emoji { font-size: 40px; margin-bottom: 12px; }
.gp-noresults h2, .gp-noresults h3 { font-family: var(--font-head); margin: 0 0 6px; font-size: 20px; color: var(--text); }
.gp-noresults p { color: var(--muted); margin: 0; }

/* ============================================================
   6. SIDEBAR / WIDGETS
   ============================================================ */
.gp-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.gp-sidebar--sticky { align-self: start; position: sticky; top: 88px; }
.gp-widget { background: var(--surface); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
.gp-widget--search { padding: 20px; }
.gp-widget-title { font-family: var(--font-head); font-size: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gp-accent); display: inline-block; color: var(--text); }
.gp-widget ul { list-style: none; margin: 0; padding: 0; }

.gp-search-inline { display: flex; align-items: center; background: var(--surface2); border-radius: 10px; padding: 10px 14px; gap: 10px; }
.gp-search-inline input[type="search"] { background: transparent; border: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; color: var(--text); }
.gp-search-inline .gp-search-icon { color: #a6a6b0; flex: 0 0 auto; }

.gp-recent { display: flex; flex-direction: column; gap: 14px; }
.gp-recent-item { display: flex; gap: 12px; align-items: center; color: inherit; }
.gp-recent-thumb { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 9px; overflow: hidden; background: var(--imgbg); }
.gp-recent-title { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; line-height: 1.35; color: var(--text2); }
.gp-recent-item:hover .gp-recent-title { color: var(--gp-accent); }

.gp-catlist { display: flex; flex-direction: column; }
.gp-catlist a { color: var(--muted); font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
.gp-catlist li:last-child a { border-bottom: none; }
.gp-catlist a:hover { color: var(--gp-accent); }
.gp-catlist .gp-count { color: var(--muted); font-size: 12px; }

.gp-linklist { display: flex; flex-direction: column; gap: 8px; }
.gp-linklist a { color: var(--muted); font-size: 14.5px; }
.gp-linklist a:hover { color: var(--gp-accent); }

.gp-muted-note { color: var(--muted); font-size: 14px; margin: 0; }

/* Promo card */
.gp-promo { background: linear-gradient(150deg, var(--gp-accent), var(--gp-accent-2)); border-radius: 16px; padding: 24px; color: #fff; box-shadow: 0 10px 26px rgba(244,54,118,.25); }
.gp-promo-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.gp-promo h4 { font-family: var(--font-head); font-size: 19px; margin: 8px 0; color: #fff; }
.gp-promo p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; opacity: .95; }
.gp-promo-btn { display: inline-block; background: #fff; color: var(--gp-accent); font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 999px; }
.gp-promo-btn:hover { background: #141419; color: #fff; }

/* Generic widget list (for dynamic widget areas) */
.gp-widget select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-family: inherit; }
.gp-widget .gp-linklist a, .gp-widget ul li a { color: var(--muted); }
.gp-widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.gp-widget ul li:last-child { border-bottom: none; }
.gp-widget ul li a:hover { color: var(--gp-accent); }
.gp-widget ul ul { padding-left: 14px; }

/* ============================================================
   7. "YOU MAY HAVE MISSED"
   ============================================================ */
.gp-missed { background: var(--surface); border-top: 1px solid var(--border); }
.gp-missed-inner { max-width: var(--container); margin: 0 auto; padding: 36px 22px 44px; }
.gp-section-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 0 0 22px; letter-spacing: -.01em; color: var(--text); }
.gp-missed-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.gp-missed-card { display: flex; flex-direction: column; gap: 12px; }
.gp-missed-card:hover { transform: translateY(-6px); }
.gp-missed-thumb { width: 100%; height: 170px; border-radius: 12px; overflow: hidden; background: var(--imgbg); }
.gp-missed-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0; }
.gp-missed-title a { color: var(--text); }
.gp-missed-title a:hover { color: var(--gp-accent); }

/* ============================================================
   8. NEWSLETTER / SUBSCRIBE BAND
   ============================================================ */
.gp-newsletter { background: var(--surface); border-top: 1px solid var(--border); }
.gp-newsletter-inner { max-width: 820px; margin: 0 auto; padding: 56px 22px; text-align: center; }
.gp-newsletter h2 { font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.gp-newsletter p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.gp-newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.gp-newsletter input[type="email"] { flex: 1; min-width: 220px; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 13px 20px; font-family: inherit; font-size: 15px; color: var(--text); outline: none; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.gp-footer { background: var(--footer-bg); color: var(--footer-text); }
.gp-footer-top { max-width: var(--container); margin: 0 auto; padding: 44px 22px 20px; display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr; }
.gp-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gp-footer-mark { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; overflow: hidden; }
.gp-footer-mark img { width: 100%; height: 100%; object-fit: cover; }
.gp-footer-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; }
.gp-footer-about p { color: var(--footer-muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; max-width: 320px; }
.gp-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.gp-footer-links a { color: var(--gp-accent); font-size: 14px; font-weight: 600; }
.gp-footer-links a:hover { color: var(--gp-accent-2); }
.gp-footer-col h4 { font-family: var(--font-head); color: #fff; font-size: 15px; margin: 0 0 16px; }
.gp-footer-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.gp-footer-cats a { color: #9a9aa8; font-size: 13px; }
.gp-footer-cats a:hover { color: #fff; }
.gp-footer-bottom { border-top: 1px solid var(--footer-line); }
.gp-footer-bottom-inner { max-width: var(--container); margin: 0 auto; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7a7a88; }
.gp-footer-bottom b { color: var(--footer-text); }
.gp-footer-bottom a { color: #9a9aa8; }
.gp-footer-bottom a:hover { color: #fff; }

/* Back to top + cookie */
.gp-totop { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 46px; height: 46px; border-radius: 12px; border: none; background: var(--gp-accent); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 22px rgba(244,54,118,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.gp-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.gp-totop:hover { background: var(--gp-accent-dark); }

.gp-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 3px solid var(--gp-accent); box-shadow: 0 -8px 30px rgba(20,20,25,.14); }
.gp-cookie[hidden] { display: none; }
.gp-cookie-inner { max-width: var(--container); margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.gp-cookie p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.55; flex: 1 1 340px; }
.gp-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-cookie-btn { border: none; font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.gp-cookie-btn--ghost { background: var(--surface2); color: var(--text2); }
.gp-cookie-btn--ghost:hover { background: var(--border); }
.gp-cookie-btn--outline { background: transparent; color: var(--gp-accent); border: 1.5px solid var(--gp-accent); }
.gp-cookie-btn--outline:hover { background: var(--chip); }
.gp-cookie-btn--solid { background: var(--gp-accent); color: #fff; font-weight: 700; padding: 10px 20px; }
.gp-cookie-btn--solid:hover { background: var(--gp-accent-dark); transform: translateY(-2px); }

/* ============================================================
   10. PAGE HEROES / BANNERS
   ============================================================ */
.gp-hero { background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2)); color: #fff; position: relative; overflow: hidden; }
.gp-hero-inner { max-width: var(--container); margin: 0 auto; padding: 50px 22px 54px; }
.gp-hero-inner--center { max-width: 900px; text-align: center; padding: 64px 22px; }
.gp-hero .gp-crumbs { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.gp-hero .gp-crumbs a, .gp-hero .gp-crumbs span { color: #fff; }
.gp-hero-badge { display: inline-block; background: rgba(255,255,255,.2); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 6px; margin-bottom: 16px; font-family: var(--font-body); }
.gp-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: 42px; letter-spacing: -.025em; margin: 0 0 10px; color: #fff; }
.gp-hero-inner--center h1 { font-size: 46px; letter-spacing: -.03em; margin-bottom: 16px; }
.gp-hero p { margin: 0; font-size: 16px; opacity: .95; max-width: 560px; }
.gp-hero-inner--center p { margin: 0 auto; font-size: 18px; line-height: 1.6; max-width: 620px; }
.gp-hero-inner--contact { padding: 56px 22px; }
.gp-hero-inner--contact h1 { font-size: 42px; }
.gp-hero-inner--contact p { font-size: 17px; }

/* Light sub-header band (generic pages / legal) */
.gp-pagehead { background: var(--surface); border-bottom: 1px solid var(--border); }
.gp-pagehead-inner { max-width: 1080px; margin: 0 auto; padding: 44px 22px 30px; }
.gp-pagehead h1 { font-family: var(--font-head); font-weight: 800; font-size: 38px; letter-spacing: -.025em; margin: 0; color: var(--ink); }
.gp-pagehead .gp-meta-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Breadcrumbs */
.gp-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-bottom: 16px; }
.gp-crumbs a { color: var(--muted); }
.gp-crumbs a:hover { color: var(--gp-accent); }

/* ============================================================
   11. SINGLE POST
   ============================================================ */
.gp-article { min-width: 0; }
.gp-article-crumbs { margin-bottom: 16px; }
.gp-article-title { font-family: var(--font-head); font-weight: 800; font-size: 38px; line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 18px; color: var(--ink); }
.gp-article-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.gp-author-mini { display: flex; align-items: center; gap: 10px; }
.gp-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; flex: 0 0 auto; }
.gp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gp-author-name { display: flex; flex-direction: column; line-height: 1.25; }
.gp-author-name b { font-weight: 700; font-size: 14px; color: var(--text); }
.gp-author-name span { font-size: 12.5px; color: var(--muted); }
.gp-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.gp-meta-item svg { color: var(--muted); }
.gp-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gp-share-label { font-size: 13px; color: var(--muted); }
.gp-share a { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.gp-share a:hover { background: var(--gp-accent); color: #fff; }
.gp-hero-img { width: 100%; height: 420px; border-radius: 16px; overflow: hidden; background: var(--imgbg); margin-bottom: 28px; box-shadow: 0 8px 30px rgba(20,20,25,.08); }
.gp-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Table of contents */
.gp-toc { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gp-accent); border-radius: 12px; padding: 22px 26px; margin-bottom: 32px; }
.gp-toc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.gp-toc-head svg { color: var(--gp-accent); }
.gp-toc-head h2 { font-family: var(--font-head); font-size: 17px; margin: 0; color: var(--text); }
.gp-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.gp-toc li { margin-bottom: 9px; break-inside: avoid; }
.gp-toc a { color: var(--text2); font-size: 14.5px; font-weight: 500; }
.gp-toc a:hover { color: var(--gp-accent); }

/* Article body (rich content) */
.article-body { font-size: 16.5px; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { color: var(--text2); font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; text-wrap: pretty; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 22px; }
.article-body li { color: var(--text2); font-size: 16px; line-height: 1.7; margin: 0 0 9px; }
.article-body strong, .article-body b { color: var(--text); font-weight: 700; }
.article-body a { color: var(--gp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--gp-accent-dark); }
.article-body h2 { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 36px 0 16px; color: var(--ink); scroll-margin-top: 90px; }
.article-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin: 30px 0 14px; color: var(--ink); scroll-margin-top: 90px; }
.article-body h4 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 24px 0 12px; color: var(--ink); }
.article-body img, .article-body .wp-block-image { border-radius: 14px; margin: 0 0 28px; }
.article-body figure { margin: 0 0 28px; }
.article-body figure img { margin: 0; }
.article-body figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.article-body blockquote {
  background: linear-gradient(135deg, #fff0f5, #ffe6ef);
  border: 1px solid #ffd0e0; border-left: 4px solid var(--gp-accent);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; color: #7a2647;
}
html[data-theme="dark"] .article-body blockquote { background: linear-gradient(135deg, #2a1620, #34121f); border-color: #4a1e30; color: #f6b6cd; }
.article-body blockquote p { margin: 0; color: inherit; font-size: 15.5px; line-height: 1.65; }
.article-body blockquote p strong { color: var(--gp-accent-dark); }
html[data-theme="dark"] .article-body blockquote p strong { color: var(--gp-accent-2); }
.article-body pre { background: #141419; color: #f1f1f5; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 26px; font-size: 14px; line-height: 1.6; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface2); padding: 2px 6px; border-radius: 5px; }
.article-body pre code { background: transparent; padding: 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.gp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 12px; }
.article-body figure.wp-block-table { margin: 0 0 28px; }
.article-body figure.wp-block-table .gp-table-wrap { margin: 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.article-body th, .article-body td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text2); }
.article-body th { background: var(--surface2); color: var(--text); font-weight: 700; font-family: var(--font-head); }
.article-body tbody tr:nth-child(even) { background: var(--surface2); }
.article-body tbody tr:last-child td { border-bottom: none; }

/* callout helpers (usable via classes in content) */
.gp-callout { display: flex; gap: 14px; align-items: flex-start; border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; }
.gp-callout .gp-callout-ico { font-size: 22px; line-height: 1; }
.gp-callout p { margin: 0; font-size: 15px; line-height: 1.6; }
.gp-callout--tip { background: linear-gradient(135deg, #fff0f5, #ffe6ef); border: 1px solid #ffd0e0; color: #7a2647; }
.gp-callout--warn { background: #fff8e6; border: 1px solid #ffe1a1; border-left: 4px solid #f0a500; color: #7a5a10; }
html[data-theme="dark"] .gp-callout--tip { background: linear-gradient(135deg,#2a1620,#34121f); border-color: #4a1e30; color: #f6b6cd; }
html[data-theme="dark"] .gp-callout--warn { background: #2a2410; border-color: #5a4a1a; color: #f0d68a; }
html[data-theme="dark"] .gp-callout--warn { border-left-color: #f0a500; }

/* Tags */
.gp-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.gp-tags-label { font-weight: 700; font-size: 14px; color: var(--text); }
.gp-tag { background: var(--surface2); color: var(--text2); font-size: 13px; padding: 6px 13px; border-radius: 999px; }
.gp-tag:hover { background: var(--gp-accent); color: #fff; }

/* Author bio */
.gp-authorbio { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 36px; }
.gp-authorbio .gp-avatar { width: 60px; height: 60px; font-size: 24px; }
.gp-authorbio-eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-accent); font-weight: 700; }
.gp-authorbio h4 { font-family: var(--font-head); margin: 2px 0 8px; font-size: 19px; color: var(--text); }
.gp-authorbio p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Related */
.gp-related-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 44px; }
.gp-related-card .gp-card-thumb { height: 150px; }
.gp-related-card .gp-card-body { padding: 16px 18px; }
.gp-related-card .gp-card-title { font-size: 15.5px; }

/* ============================================================
   12. COMMENTS
   ============================================================ */
.gp-comments { margin-bottom: 40px; }
.gp-comments-title { font-family: var(--font-head); font-weight: 800; font-size: 21px; margin: 0 0 20px; color: var(--ink); }
.gp-commentlist { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.gp-commentlist ol.children { list-style: none; margin: 16px 0 0; padding: 0 0 0 28px; display: flex; flex-direction: column; gap: 16px; }
.gp-comment-body { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.gp-comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gp-comment-head .gp-avatar { width: 42px; height: 42px; }
.gp-comment-author { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--text); }
.gp-comment-date { font-size: 12.5px; color: var(--muted); }
.gp-comment-text { color: var(--text2); font-size: 14.5px; line-height: 1.65; }
.gp-comment-text p { margin: 0 0 10px; }
.gp-comment-reply a { font-size: 12.5px; font-weight: 700; color: var(--gp-accent); }
.gp-comment-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.gp-comment-form-wrap .comment-notes, .gp-comment-form-wrap .logged-in-as { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.gp-comment-form-wrap .comment-form-comment textarea,
.gp-comment-form-wrap textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-family: inherit; font-size: 15px; color: var(--text); resize: vertical; outline: none; margin-bottom: 16px;
}
.gp-comment-form-wrap .gp-form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.gp-comment-form-wrap input[type="text"],
.gp-comment-form-wrap input[type="email"],
.gp-comment-form-wrap input[type="url"] {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-family: inherit; font-size: 15px; color: var(--text); outline: none;
}
.gp-comment-form-wrap input:focus, .gp-comment-form-wrap textarea:focus { border-color: var(--gp-accent); }
.gp-comment-form-wrap .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.gp-comment-form-wrap .comment-form-cookies-consent input { width: 17px; height: 17px; accent-color: var(--gp-accent); }
.gp-comment-form-wrap .form-submit { margin: 0; }
.gp-comment-form-wrap .submit, .gp-comment-form-wrap input[type="submit"] {
  background: var(--gp-accent); color: #fff; border: none; font-family: var(--font-head); font-weight: 700; font-size: 15px; padding: 13px 30px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 16px rgba(244,54,118,.33);
}
.gp-comment-form-wrap .submit:hover, .gp-comment-form-wrap input[type="submit"]:hover { background: var(--gp-accent-dark); transform: translateY(-2px); }

/* ============================================================
   13. GENERIC PAGE CONTENT / LEGAL
   ============================================================ */
.gp-page-wrap { max-width: 1080px; margin: 0 auto; padding: 36px 22px 56px; display: grid; gap: 44px; grid-template-columns: minmax(0,1fr) 260px; }
.gp-page-wrap--narrow { display: block; max-width: 860px; }
.gp-page-toc { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.gp-page-toc h4 { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; color: var(--muted); }
.gp-page-toc a { display: block; padding: 8px 0; color: var(--text2); font-size: 15px; font-weight: 600; }
.gp-page-toc a:hover { color: var(--gp-accent); }

/* ============================================================
   14. ABOUT PAGE
   ============================================================ */
.gp-about-wrap { max-width: 1080px; margin: 0 auto; padding: 56px 22px; }
.gp-stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 56px; }
.gp-stat { background: var(--surface); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.gp-stat-num { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--gp-accent); }
.gp-stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.gp-split { display: grid; gap: 44px; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; margin-bottom: 56px; }
.gp-split-img { border-radius: 18px; overflow: hidden; height: 320px; background: var(--imgbg); }
.gp-split h2 { font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin: 0 0 16px; color: var(--ink); }
.gp-split p { color: var(--text2); font-size: 16.5px; line-height: 1.75; margin: 0 0 16px; }
.gp-features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.gp-feature-ico { font-size: 26px; margin-bottom: 12px; }
.gp-feature h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; color: var(--text); }
.gp-feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.gp-cta-band { background: var(--surface); border-top: 1px solid var(--border); }
.gp-cta-inner { max-width: 820px; margin: 0 auto; padding: 56px 22px; text-align: center; }
.gp-cta-inner h2 { font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.gp-cta-inner p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

/* ============================================================
   15. CONTACT PAGE
   ============================================================ */
.gp-contact-wrap { max-width: 1080px; margin: 0 auto; padding: 52px 22px; display: grid; gap: 36px; grid-template-columns: minmax(0,1fr) 340px; }
.gp-contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.gp-contact-card h2 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 0 0 20px; color: var(--ink); }
.gp-form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.gp-input, .gp-textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-family: inherit; font-size: 15px; color: var(--text); outline: none;
}
.gp-textarea { resize: vertical; }
.gp-input:focus, .gp-textarea:focus { border-color: var(--gp-accent); }
.gp-mb16 { margin-bottom: 16px; }
.gp-mb18 { margin-bottom: 18px; }
.gp-contact-aside { display: flex; flex-direction: column; gap: 18px; }
.gp-contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.gp-contact-info-ico { font-size: 22px; }
.gp-contact-info h4 { font-family: var(--font-head); margin: 0 0 4px; font-size: 16px; color: var(--text); }
.gp-contact-info p { margin: 0; color: var(--muted); font-size: 14px; }
.gp-contact-social { background: linear-gradient(150deg, var(--gp-accent), var(--gp-accent-2)); border-radius: 16px; padding: 24px; color: #fff; }
.gp-contact-social h4 { font-family: var(--font-head); font-size: 17px; margin: 0 0 8px; color: #fff; }
.gp-contact-social p { margin: 0 0 14px; font-size: 14px; opacity: .95; }
.gp-contact-social-links { display: flex; gap: 8px; }
.gp-contact-social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.gp-contact-social-links a:hover { background: rgba(255,255,255,.35); color: #fff; }
.gp-notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 14.5px; }
.gp-notice--ok { background: #e7f8ef; border: 1px solid #a9e5c5; color: #1c7a54; }
.gp-notice--err { background: #fdecef; border: 1px solid #f6c1cd; color: var(--gp-accent-dark); }
html[data-theme="dark"] .gp-notice--ok { background: #12281d; border-color: #27543c; color: #7fe0ad; }
html[data-theme="dark"] .gp-notice--err { background: #2a1620; border-color: #5a2438; color: #f6a8c0; }

/* ============================================================
   16. 404
   ============================================================ */
.gp-404 { max-width: 720px; margin: 0 auto; padding: 80px 22px; text-align: center; }
.gp-404-code { font-family: var(--font-head); font-weight: 800; font-size: 110px; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gp-404 h1 { font-family: var(--font-head); font-weight: 800; font-size: 28px; margin: 12px 0 10px; color: var(--ink); }
.gp-404 p { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.gp-404 form { max-width: 440px; margin: 0 auto 26px; }

/* ============================================================
   17. WP CORE / ALIGNMENT / EDITOR
   ============================================================ */
.alignleft { float: left; margin: 6px 24px 24px 0; }
.alignright { float: right; margin: 6px 0 24px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.sticky, .bypostauthor { display: block; }
.gp-sticky-badge { background: var(--gp-accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 5px; }
.wp-block-button__link { background: var(--gp-accent); color: #fff; border-radius: 999px; padding: 11px 22px; font-weight: 700; }
.gp-updated-note { color: var(--muted); font-size: 13px; }

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gp-layout { gap: 30px; grid-template-columns: minmax(0,1fr) 300px; }
  .gp-missed-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .gp-nav, .gp-socials, .gp-subscribe { display: none; }
  .gp-hamburger { display: flex; }
  .gp-layout, .gp-contact-wrap, .gp-page-wrap { grid-template-columns: 1fr; gap: 28px; }
  .gp-sidebar--sticky { position: static; }
  .gp-grid, .gp-related-grid, .gp-split, .gp-form-row, .gp-comment-form-wrap .gp-form-row { grid-template-columns: 1fr; }
  .gp-featured-thumb { height: 260px; }
  .gp-hero-img { height: 300px; }
  .gp-featured-title { font-size: 25px; }
  .gp-article-title { font-size: 30px; }
  .gp-hero h1 { font-size: 34px; }
  .gp-hero-inner--center h1 { font-size: 36px; }
  .gp-toc ol { columns: 1; }
  .gp-share { margin-left: 0; width: 100%; }
  .gp-page-toc { position: static; }
}
@media (max-width: 640px) {
  .gp-container, .gp-header-inner, .gp-layout, .gp-hero-inner, .gp-footer-top, .gp-footer-bottom-inner, .gp-topstories-inner, .gp-missed-inner, .gp-newsletter-inner { padding-left: 16px; padding-right: 16px; }
  .gp-footer-top { grid-template-columns: 1fr; }
  .gp-missed-grid { grid-template-columns: 1fr; }
  .gp-featured-title { font-size: 22px; }
  .gp-article-title { font-size: 26px; }
  .gp-featured-body, .gp-contact-card { padding: 20px; }
  .article-body h2 { font-size: 23px; }
  .gp-hero-inner { padding: 40px 16px 44px; }
  .gp-hero-inner--center { padding: 48px 16px; }
  .gp-404-code { font-size: 84px; }
}
