/*
Theme Name: LinkGate Personal Theme
Author: Aknify
Author URI: https://aknify.com/
Description: A professional, content-first WordPress publication theme with native LinkGate Personal integration, responsive advertising areas, full-width articles, and extensive appearance controls.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: linkgate-personal-theme
*/

:root {
	--lg-bg: #f4f7fb;
	--lg-surface: #ffffff;
	--lg-ink: #172033;
	--lg-muted: #667085;
	--lg-border: #e5e9f0;
	--lg-accent: #1769e0;
	--lg-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; text-size-adjust: 100%; }
body {
	background: var(--lg-bg);
	color: var(--lg-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}
a { color: var(--lg-accent); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--lg-accent); outline-offset:3px; }
img { height: auto; max-width: 100%; }
iframe,video,embed,object { max-width:100%; }.entry-content table { border-collapse:collapse; display:block; max-width:100%; overflow-x:auto; white-space:nowrap; }.entry-content pre { max-width:100%; overflow:auto; }.entry-content input,.entry-content select,.entry-content textarea { max-width:100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.screen-reader-text:focus { background: #fff; clip: auto; clip-path: none; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }

.site-header { backdrop-filter: blur(14px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--lg-border); box-shadow:0 3px 18px rgba(23,32,51,.035); position: relative; z-index: 10; }
.site-header__inner, .site-footer__inner { align-items: center; display: flex; gap: 24px; justify-content: space-between; margin: auto; max-width: var(--lg-width); padding: 18px 24px; }
.site-branding { align-items: center; display: flex; gap: 12px; }
.custom-logo { display: block; max-height: 42px; width: auto; }
.site-title { color: var(--lg-ink); font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.site-description { color: var(--lg-muted); font-size: .82rem; margin: 0; }
.menu-toggle { background: var(--lg-ink); border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: none; padding: 10px 14px; }
.primary-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { border-radius: 7px; color: var(--lg-ink); display: block; font-weight: 600; padding: 8px 12px; text-decoration: none; }
.primary-menu a,.menu-toggle,.button-primary { min-height:44px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: #edf3fc; color: var(--lg-accent); }
.site-navigation { align-items: center; display: flex; }.header-search { color: var(--lg-ink); font-size: 1.45rem; line-height: 1; margin-left: 8px; text-decoration: none; }

.site-main { margin: 0 auto; max-width: var(--lg-width); min-height: 60vh; padding: 56px 24px; }
.content-layout { align-items: start; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 310px; }
.content-column { min-width: 0; }
.site-main--full-width { max-width: var(--lg-width); }.site-main--full-width .content-column { width:100%; }.site-main--full-width .content-card { width:100%; }
.content-card { background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: 18px; box-shadow: 0 14px 42px rgba(23,32,51,.065); margin-bottom: 28px; padding: clamp(26px, 5vw, 58px); }
.entry-header h1, .entry-header h2 { letter-spacing: -.045em; line-height: 1.1; margin-top: 0; }.entry-header h1 { font-size:clamp(2.25rem,5vw,4.4rem); max-width:1050px; }
.entry-header h2 a { color: var(--lg-ink); text-decoration: none; }
.entry-meta { color: var(--lg-muted); font-size: .88rem; margin-bottom: 24px; }
.entry-content { color:#344054; font-size:1.075rem; }.entry-content h2,.entry-content h3 { color:var(--lg-ink); letter-spacing:-.025em; line-height:1.25; margin-top:1.8em; }.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-thumbnail img { border-radius: 12px; display: block; margin-bottom: 28px; width: 100%; }
.read-more { display: inline-block; font-weight: 700; margin-top: 14px; }
.navigation.pagination { margin: 32px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { background: #fff; border: 1px solid var(--lg-border); border-radius: 7px; padding: 7px 12px; text-decoration: none; }
.page-numbers.current { background: var(--lg-accent); color: #fff; }

.widget { background: #fff; border: 1px solid var(--lg-border); border-radius: 12px; margin-bottom: 22px; padding: 22px; }
.widget-title { color: var(--lg-ink); font-size: 1.05rem; margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { border-top: 1px solid var(--lg-border); margin-top: 10px; padding-top: 10px; }
.ad-zone { background: #fff; border: 1px solid var(--lg-border); border-radius: 12px; margin: 32px 0; min-height: 120px; padding: 18px; text-align: center; }
.ad-zone > span { color: var(--lg-muted); display: block; font-size: .68rem; letter-spacing: .09em; margin-bottom: 12px; text-transform: uppercase; }
.ad-zone .widget { border: 0; margin: 0; padding: 0; }
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-tile { background: #fff; border: 1px solid var(--lg-border); border-radius: 12px; overflow: hidden; }
.post-tile img { aspect-ratio: 16 / 9; display: block; object-fit: cover; width: 100%; }
.post-tile > div { padding: 18px; }
.post-tile h2, .post-tile h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 8px; }
.post-tile h2 a, .post-tile h3 a { color: var(--lg-ink); text-decoration: none; }
.post-tile p { color: var(--lg-muted); font-size: .9rem; margin: 0; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.related-section { margin: 46px 0; }
.hero { background: linear-gradient(135deg, #111827 0%, #173b78 100%); color: #fff; overflow: hidden; padding: clamp(68px, 10vw, 126px) 24px; position: relative; }
.hero::after { background: rgba(255,255,255,.07); border-radius: 50%; content: ""; height: 430px; position: absolute; right: -120px; top: -210px; width: 430px; }
.hero__inner { margin: auto; max-width: 820px; position: relative; text-align: center; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); letter-spacing: -.055em; line-height: 1.02; margin: 0; }
.hero p { color: #dbeafe; font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 24px auto 32px; max-width: 650px; }
.button-primary { background: #fff; border-radius: 10px; color: #173b78; display: inline-block; font-weight: 800; padding: 14px 24px; text-decoration: none; }
.home-section { margin: 0 auto; max-width: var(--lg-width); padding: 56px 24px; }
.home-section--tint { background: #eaf1fb; max-width: none; }
.home-section--tint > div { margin: auto; max-width: var(--lg-width); }
.home-cta { background: #1769e0; border-radius: 18px; color: #fff; padding: clamp(30px, 6vw, 60px); text-align: center; }
.home-cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.home-cta p { color: #dbeafe; margin: 12px auto 0; max-width: 650px; }
.site-footer { background: linear-gradient(135deg,#0d1422,#17243a); color: #cbd5e1; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer__inner { align-items: flex-start; padding-bottom: 28px; padding-top: 28px; }
.site-footer p { margin: 0; }
.footer-widgets { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); margin: auto; max-width: var(--lg-width); padding: 48px 24px 24px; }
.site-footer .widget { background: transparent; border: 0; margin: 0; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer__bottom { border-top: 1px solid #334155; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; }.lgt-cookie { align-items: center; background: #fff; border: 1px solid var(--lg-border); border-radius: 12px; bottom: 18px; box-shadow: 0 12px 40px rgba(23,32,51,.2); display: flex; gap: 22px; justify-content: space-between; left: 50%; max-width: 850px; padding: 18px 20px; position: fixed; transform: translateX(-50%); width: calc(100% - 32px); z-index: 99999; }.lgt-cookie[hidden] { display: none; }.lgt-cookie p { color: var(--lg-ink); margin: 0; }.lgt-cookie>div { display: flex; flex: none; gap: 8px; }.lgt-cookie button { border: 1px solid var(--lg-border); border-radius: 8px; cursor: pointer; padding: 9px 13px; }.lgt-cookie .button-primary { background: var(--lg-accent); color: #fff; }

body.single-link_gate .site-main { max-width: none; min-height: 0; padding: 0; }
body.single-link_gate .linkgate-page { min-height: 68vh; }
.theme-credit { color:#94a3b8; font-size:.86rem; }.theme-credit a { color:#fff; font-weight:700; text-decoration:none; }
.archive-hero { background:linear-gradient(135deg,#fff,#eef4fc); border:1px solid var(--lg-border); border-radius:18px; margin-bottom:30px; padding:clamp(30px,6vw,64px); }.archive-hero>span { color:var(--lg-accent); font-size:.75rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.archive-hero h1 { font-size:clamp(2.4rem,6vw,4.8rem); letter-spacing:-.055em; line-height:1.03; margin:8px 0; }.archive-description { color:var(--lg-muted); max-width:700px; }.archive-grid { display:grid; gap:22px; grid-template-columns:repeat(3,minmax(0,1fr)); }.archive-card { background:#fff; border:1px solid var(--lg-border); border-radius:14px; display:flex; flex-direction:column; overflow:hidden; }.archive-card__image img { aspect-ratio:16/9; display:block; object-fit:cover; width:100%; }.archive-card__body { display:flex; flex:1; flex-direction:column; padding:22px; }.archive-card h2 { font-size:1.25rem; line-height:1.3; margin:5px 0 9px; }.archive-card h2 a,.search-result-card h2 a { color:var(--lg-ink); text-decoration:none; }.archive-card p,.search-result-card p { color:var(--lg-muted); }.archive-card .read-more { margin-top:auto; }.search-list { display:grid; gap:14px; }.search-result-card { align-items:center; background:#fff; border:1px solid var(--lg-border); border-radius:14px; display:grid; gap:24px; grid-template-columns:minmax(160px,260px) 1fr; padding:18px; }.search-result-card img { aspect-ratio:16/10; border-radius:9px; display:block; object-fit:cover; width:100%; }.search-result-card h2 { font-size:1.5rem; margin:4px 0; }.professional-search { display:flex; gap:8px; margin-top:22px; max-width:620px; }.professional-search label { flex:1; }.professional-search input { background:#fff; border:1px solid #c8d1df; border-radius:9px; font-size:1rem; min-height:48px; padding:10px 13px; width:100%; }.professional-search button { background:var(--lg-accent); border:0; border-radius:9px; color:#fff; font-weight:800; min-height:48px; padding:10px 20px; }.empty-state,.error-card { background:#fff; border:1px solid var(--lg-border); border-radius:18px; margin:auto; max-width:760px; padding:clamp(32px,7vw,72px); text-align:center; }.empty-state p,.error-card p { color:var(--lg-muted); }.error-card>span { color:var(--lg-accent); font-size:clamp(5rem,18vw,10rem); font-weight:900; letter-spacing:-.08em; line-height:.8; opacity:.16; }.error-card h1 { font-size:clamp(2rem,5vw,3.5rem); letter-spacing:-.045em; line-height:1.08; }.error-card .professional-search { margin:24px auto; }.comments-area h2 { font-size:1.6rem; }.comment-list { list-style:none; padding:0; }.comment-list .comment { border-top:1px solid var(--lg-border); padding:22px 0; }.comment-author { align-items:center; display:flex; gap:10px; }.comment-author img { border-radius:50%; }.comment-meta { color:var(--lg-muted); font-size:.82rem; }.comment-respond input,.comment-respond textarea { border:1px solid #c8d1df; border-radius:8px; max-width:100%; padding:10px; }.comment-respond textarea { width:100%; }

@media (min-width: 1400px) {
	.site-main--full-width .content-card { padding-inline:clamp(58px,7vw,96px); }
	.entry-content { font-size:1.12rem; }
}

@media (max-width: 1024px) {
	.site-header__inner,.site-footer__inner,.home-section,.site-main { padding-inline:20px; }
	.post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.footer-widgets { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.entry-header h1 { font-size:clamp(2.15rem,6vw,3.7rem); }
}

@media (max-width: 760px) {
	.site-header__inner { align-items: flex-start; flex-wrap: wrap; }
	.menu-toggle { display: block; margin-left: auto; }
	.site-navigation { display: none; flex-basis: 100%; width: 100%; }
	.site-navigation.is-open { display: block; }
	.primary-menu { flex-direction: column; padding-top: 8px; }
	.primary-menu a { align-items:center; display:flex; padding:11px 12px; }
	.header-search { display:block; margin:8px 0 0; padding:10px 12px; }
	.site-main { padding: 32px 16px; }
	.content-layout, .post-grid, .footer-widgets { grid-template-columns: 1fr; }
	.archive-grid,.search-result-card { grid-template-columns:1fr; }
	.content-sidebar { order: 2; }
	.site-footer__inner { align-items: flex-start; flex-direction: column; }
	.lgt-cookie { align-items: stretch; flex-direction: column; }.lgt-cookie>div { justify-content: flex-end; }
	.content-card { border-radius:14px; padding:26px 20px; }
	.entry-content { font-size:1rem; line-height:1.75; }
	.entry-header h1 { font-size:clamp(2rem,10vw,3rem); }
	.hero { padding-inline:18px; }
	.section-heading { align-items:flex-start; flex-direction:column; gap:8px; }
	.professional-search { flex-direction:column; }.professional-search button { width:100%; }
}

@media (max-width: 420px) {
	.site-branding { max-width:calc(100% - 78px); }.site-description { display:none; }
	.custom-logo { max-width:190px; }.hero h1 { font-size:clamp(2.15rem,13vw,3.25rem); }
	.home-section { padding:38px 14px; }.site-main { padding:22px 10px; }.content-card { border-radius:12px; padding:22px 16px; }
	.lgt-cookie>div { flex-direction:column; }.lgt-cookie button { width:100%; }
}

@media (hover: none) and (pointer: coarse) {
	a,button,input,select,textarea { touch-action:manipulation; }.primary-menu a,.footer-menu a { padding-block:11px; }
}

@media print {
	.site-header,.site-footer,.ad-zone,.related-section,.comments-area,.lgt-cookie { display:none!important; }
	body,.content-card { background:#fff!important; box-shadow:none!important; }.site-main { max-width:none; padding:0; }.content-card { border:0; padding:0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Professional editorial refinement. */
:root{--lg-bg:#f6f8fb;--lg-ink:#101828;--lg-muted:#5f6c80;--lg-border:#e1e7ef;--lg-accent:#155eef;--lg-accent-dark:#004eeb;--lg-shadow:0 18px 55px rgba(16,24,40,.07)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.005em}
.site-header{border-bottom-color:rgba(208,215,225,.82);box-shadow:0 1px 2px rgba(16,24,40,.025);position:sticky;top:0}
.site-header__inner{min-height:76px;padding-block:13px}.site-title{font-size:1.25rem;letter-spacing:-.035em}.site-description{letter-spacing:.01em}.primary-menu{align-items:center;gap:2px}.primary-menu a{font-size:.925rem;padding:10px 13px}.primary-menu .linkgate-member-menu a{background:var(--lg-ink);color:#fff;margin-left:7px;padding-inline:17px}.primary-menu .linkgate-member-menu a:hover{background:var(--lg-accent);color:#fff}.header-search{align-items:center;border:1px solid var(--lg-border);border-radius:50%;display:inline-flex;height:38px;justify-content:center;margin-left:10px;width:38px}
.hero{background:radial-gradient(circle at 75% 15%,rgba(81,145,255,.35),transparent 30%),linear-gradient(145deg,#0b1220 0%,#102a56 58%,#123e7c 100%);padding-block:clamp(78px,11vw,138px)}.hero::before{background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:40px 40px;content:"";inset:0;mask-image:linear-gradient(to bottom,#000,transparent);position:absolute}.hero__inner{max-width:900px}.hero__eyebrow{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#dbeafe;display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.11em;margin-bottom:24px;padding:7px 12px;text-transform:uppercase}.hero h1{text-wrap:balance}.hero .button-primary{box-shadow:0 8px 24px rgba(0,0,0,.18);transition:transform .2s ease,box-shadow .2s ease}.hero .button-primary:hover{box-shadow:0 12px 30px rgba(0,0,0,.25);transform:translateY(-2px)}.hero__trust{color:#bfdbfe;display:flex;flex-wrap:wrap;font-size:.79rem;font-weight:650;gap:10px 24px;justify-content:center;margin-top:34px}.hero__trust span::before{color:#67e8f9;content:"✓";font-weight:900;margin-right:7px}
.home-section{padding-block:72px}.section-heading{border-bottom:1px solid var(--lg-border);padding-bottom:18px}.section-heading h2{font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.04em}.section-heading>a{font-size:.9rem;font-weight:750;text-decoration:none}.post-grid{gap:24px}.post-tile{border-radius:16px;box-shadow:0 5px 18px rgba(16,24,40,.035);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.post-tile:hover{border-color:#cbd5e1;box-shadow:var(--lg-shadow);transform:translateY(-4px)}.post-tile__image{display:block;overflow:hidden}.post-tile img{transition:transform .45s ease}.post-tile:hover img{transform:scale(1.025)}.post-tile>div{padding:22px}.post-tile__meta{color:#7b8798;display:block;font-size:.72rem;font-weight:750;letter-spacing:.055em;margin-bottom:10px;text-transform:uppercase}.post-tile h2,.post-tile h3{font-size:1.2rem;letter-spacing:-.025em}.post-tile__link{display:inline-block;font-size:.88rem;font-weight:800;margin-top:17px;text-decoration:none}.post-tile__link span{display:inline-block;transition:transform .15s ease}.post-tile__link:hover span{transform:translateX(3px)}
.site-main--full-width{max-width:1120px}.content-card{border-radius:22px;box-shadow:var(--lg-shadow);padding-inline:clamp(26px,7vw,90px)}.entry-header{border-bottom:1px solid var(--lg-border);margin-bottom:34px;padding-bottom:30px}.entry-kicker{color:var(--lg-accent);font-size:.75rem;font-weight:850;letter-spacing:.12em;margin-bottom:13px;text-transform:uppercase}.entry-header h1{font-size:clamp(2.3rem,5.5vw,4.7rem);max-width:920px;text-wrap:balance}.entry-dek{color:var(--lg-muted);font-size:clamp(1.05rem,2vw,1.28rem);line-height:1.62;margin:18px 0 0;max-width:790px}.entry-meta{display:flex;flex-wrap:wrap;gap:8px 24px;margin:22px 0 0}.entry-meta span{align-items:center;display:flex}.entry-meta span+span::before{background:#c5ceda;border-radius:50%;content:"";height:4px;margin-right:20px;width:4px}.entry-content{font-size:1.085rem;line-height:1.82;margin-inline:auto;max-width:840px}.entry-content p{margin-block:1.35em}.entry-content h2{font-size:clamp(1.65rem,3vw,2.15rem);margin-top:2.2em}.entry-content h3{font-size:clamp(1.3rem,2.4vw,1.6rem)}.entry-content blockquote{background:#f2f6fc;border-left:4px solid var(--lg-accent);border-radius:0 12px 12px 0;color:#344054;font-size:1.12rem;margin:2em 0;padding:20px 24px}.entry-thumbnail img{border-radius:16px}.author-card{align-items:center;background:#fff;border:1px solid var(--lg-border);border-radius:16px;display:flex;gap:18px;margin:28px 0;padding:22px 26px}.author-card__avatar img{border-radius:50%;display:block}.author-card span{color:var(--lg-muted);display:block;font-size:.75rem;font-weight:750;text-transform:uppercase}.author-card strong{display:block;font-size:1.08rem}.author-card p{color:var(--lg-muted);font-size:.9rem;margin:5px 0 0}
.linkgate-article-panel{background:linear-gradient(145deg,#f8fbff,#eef5ff)!important;border-color:#cfe0fa!important;border-radius:18px!important;padding:clamp(26px,5vw,44px)!important}.linkgate-article-panel h2{letter-spacing:-.035em}.linkgate-article-panel .linkgate-button{box-shadow:0 8px 22px rgba(21,94,239,.18)}.ad-zone{background:#fafbfc;border-style:dashed;box-shadow:none}.site-footer{margin-top:72px}.site-footer__bottom{font-size:.88rem}.home-cta{background:radial-gradient(circle at 90% 10%,rgba(255,255,255,.2),transparent 32%),linear-gradient(135deg,var(--lg-accent-dark),#073b91);box-shadow:0 18px 50px rgba(21,94,239,.2)}
@media(max-width:760px){.site-header{backdrop-filter:none}.site-header__inner{min-height:66px}.primary-menu .linkgate-member-menu a{margin:5px 0 0}.hero__trust{align-items:center;flex-direction:column}.home-section{padding-block:48px}.entry-header{margin-bottom:26px;padding-bottom:24px}.entry-meta{gap:8px 14px}.entry-meta span+span::before{margin-right:12px}.author-card{align-items:flex-start;padding:18px}.content-card{box-shadow:0 8px 28px rgba(16,24,40,.055)}}
