/*
Theme Name: Elternfund
Theme URI: https://elternfund.de
Author: Bettina Schneider
Description: Warmes, schnelles WordPress-Blog-Theme für Elternfund.de mit Pinterest-freundlichen Artikeln und transparenten Affiliate-Hinweisen.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: elternfund
*/

:root {
  --cream: #fffaf2;
  --paper: #fffdf9;
  --sage: #78947f;
  --sage-dark: #3e6150;
  --apricot: #e9a87f;
  --rose: #d99193;
  --mustard: #e2b85b;
  --ink: #293832;
  --muted: #68756f;
  --line: #e9dfd3;
  --shadow: 0 18px 45px rgba(67, 76, 66, .11);
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.72; }
img { max-width: 100%; height: auto; }
a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #234636; }
h1,h2,h3,h4 { margin: 0 0 .65em; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.02em; color: #294337; }
h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1.25em; }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 12px; }
.skip-link:focus { left: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(120,148,127,.2); background: rgba(255,250,242,.92); backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.custom-brand { display:block; flex:0 0 auto; line-height:0; }
.custom-logo-link { display:block; }
.custom-logo { display:block; width:auto; height:auto; max-width:330px; max-height:74px; object-fit:contain; }
.brand-word { font: 700 clamp(1.7rem,3vw,2.25rem)/.85 Georgia,serif; letter-spacing: -.055em; }
.brand-word::after { content:""; display:inline-block; width:.45em; height:.45em; margin-left:.13em; border:3px solid var(--apricot); border-radius:50% 55% 45% 55%; transform:rotate(-14deg); }
.brand-tag { margin-top: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-nav > ul { display:flex; align-items:center; gap:24px; margin:0; padding:0; list-style:none; }
.site-nav li { position:relative; list-style:none; }
.site-nav a { color: var(--ink); font-size:.93rem; font-weight:700; text-decoration:none; }
.site-nav a:hover { color:var(--rose); }
.site-nav .sub-menu { position:absolute; top:calc(100% + 14px); left:-18px; display:none; min-width:245px; margin:0; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:var(--shadow); }
.site-nav .sub-menu::before { content:""; position:absolute; left:0; right:0; top:-18px; height:18px; }
.site-nav .sub-menu a { display:block; padding:9px 10px; border-radius:9px; white-space:nowrap; }
.site-nav .sub-menu a:hover { background:#f5eee3; }
.site-nav li:hover > .sub-menu,.site-nav li:focus-within > .sub-menu { display:block; }
.menu-toggle { display:none; border:0; background:transparent; color:var(--ink); font:700 1rem inherit; }

.hero { position:relative; overflow:hidden; padding:88px 0 76px; }
.hero::before,.hero::after { content:""; position:absolute; border-radius:50%; filter:blur(1px); opacity:.55; }
.hero::before { width:360px; height:360px; right:-80px; top:-90px; background:#f7d7c5; }
.hero::after { width:220px; height:220px; left:-70px; bottom:-90px; background:#dbe7dc; }
.hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:1.14fr .86fr; align-items:center; gap:60px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; margin-bottom:18px; color:var(--rose); font-size:.78rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.eyebrow::before { content:""; width:28px; height:2px; background:currentColor; }
.hero h1 em { color:var(--rose); font-style:italic; font-weight:500; }
.hero-copy { max-width:680px; color:#52625b; font-size:clamp(1.08rem,2vw,1.28rem); }
.hero-trust { display:flex; flex-wrap:wrap; gap:8px 22px; margin:22px 0 0; padding:0; color:var(--muted); font-size:.84rem; font-weight:750; list-style:none; }
.hero-trust li::before { content:"✓"; margin-right:7px; color:var(--sage-dark); }
.button-row { display:flex; flex-wrap:wrap; gap:13px; margin-top:30px; }
.button,.wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 22px; border:2px solid var(--sage-dark); border-radius:999px; background:var(--sage-dark); color:#fff; font-weight:800; text-decoration:none; }
.button:hover,.wp-block-button__link:hover { background:#294b3b; color:#fff; }
.button.secondary { background:transparent; color:var(--sage-dark); }
.hero-card { position:relative; min-height:400px; border-radius:42% 58% 52% 48%/48% 42% 58% 52%; background:linear-gradient(145deg,#f8d7c4,#efb7a5 58%,#d99991); box-shadow:var(--shadow); }
.hero-card::before { content:"FAMILIE\A ALLTAG\A IDEEN"; white-space:pre; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%) rotate(-4deg); color:#fffdf8; font:700 clamp(2rem,4vw,3.2rem)/1.05 Georgia,serif; text-align:center; text-shadow:0 2px 18px rgba(115,70,60,.14); }
.hero-card::after { content:"✦"; position:absolute; right:13%; top:10%; color:#fff; font-size:2.5rem; }

.section { padding:82px 0; }
.section.soft { background:#f5eee3; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:34px; }
.section-head p { max-width:600px; color:var(--muted); }
.category-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.home-search { display:grid; grid-template-columns:1fr auto; width:100%; margin:-4px 0 30px; padding:7px; border:1px solid var(--line); border-radius:999px; background:var(--paper); box-shadow:0 9px 25px rgba(67,76,66,.06); }
.home-search input { min-width:0; padding:10px 16px; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; }
.home-search button { min-height:44px; padding:9px 21px; border:0; border-radius:999px; background:var(--sage-dark); color:#fff; font:800 .92rem inherit; cursor:pointer; }
.home-search button:hover { background:#294b3b; }
.category-tile { position:relative; min-height:205px; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:18px; padding:23px; border:1px solid rgba(62,97,80,.1); border-radius:var(--radius); background:var(--paper); color:var(--ink); box-shadow:0 9px 25px rgba(67,76,66,.06); text-decoration:none; transition:.2s ease; }
.category-tile:hover { transform:translateY(-4px); border-color:rgba(62,97,80,.28); box-shadow:var(--shadow); }
.category-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#f7e2d7; color:var(--sage-dark); font-size:1.25rem; }
.category-content { display:grid; gap:8px; }
.category-tile strong { font:700 1.18rem/1.15 Georgia,serif; }
.category-tile small { color:var(--muted); font-size:.82rem; line-height:1.45; }
.category-arrow { position:absolute; right:20px; top:25px; color:var(--rose); font-size:1.2rem; font-weight:800; transition:transform .2s ease; }
.category-tile:hover .category-arrow { transform:translateX(3px); }
.post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.post-card { height:100%; overflow:hidden; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:0 10px 28px rgba(54,65,59,.06); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.post-card:hover,.post-card:focus-within { transform:translateY(-4px); border-color:rgba(62,97,80,.25); box-shadow:var(--shadow); }
.post-card-media { display:block; aspect-ratio:4/3; overflow:hidden; background:linear-gradient(145deg,#dbe7dc,#f7d7c5); }
.post-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.post-card:hover img { transform:scale(1.035); }
.post-card-placeholder { width:100%; height:100%; display:grid; place-items:center; color:#fff; font:700 2rem Georgia,serif; }
.post-card-content { flex:1; display:flex; flex-direction:column; padding:23px; }
.post-meta { display:flex; flex-wrap:wrap; gap:8px 14px; color:var(--muted); font-size:.78rem; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.post-card h3 { min-height:3.45em; margin-top:12px; }
.post-card h3 a { color:var(--ink); text-decoration:none; }
.post-card-content > p { min-height:5.8em; margin-bottom:22px; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.read-more,.all-posts-link { font-size:.9rem; font-weight:850; }
.post-card .read-more { align-self:flex-start; margin-top:auto; }
.all-posts-link { color:var(--sage-dark); text-underline-offset:4px; }
.shop-strip { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:46px; padding:44px 48px; border-radius:30px; background:var(--sage-dark); color:#fff; }
.shop-strip-copy { max-width:750px; }
.shop-strip h2,.shop-strip p { color:#fff; }
.shop-strip h2 { margin:8px 0 14px; }
.shop-kicker { color:#f1b5aa; font-size:.76rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.shop-benefits { display:flex; flex-wrap:wrap; gap:8px 20px; margin:20px 0 0; padding:0; list-style:none; color:#edf4ef; font-size:.82rem; font-weight:750; }
.shop-benefits li::before { content:"✓"; margin-right:7px; color:#f3b399; }
.shop-actions { display:grid; gap:12px; min-width:220px; }
.shop-actions .button { width:100%; white-space:nowrap; }
.shop-button-primary { border-color:#f2b39b; background:#f2b39b; color:#233d31; }
.shop-button-primary:hover { border-color:#f7c7b5; background:#f7c7b5; color:#233d31; }
.shop-button-secondary { border-color:#fff; background:transparent; color:#fff; }
.shop-button-secondary:hover { border-color:#fff; background:#fff; color:var(--sage-dark); }
.home-about { padding-top:72px; }
.home-about-grid { display:grid; grid-template-columns:minmax(210px,.65fr) 1.35fr; align-items:center; gap:60px; max-width:1050px; }
.home-about-photo { width:100%; max-width:360px; overflow:hidden; border-radius:42% 58% 50% 50%/38% 42% 58% 62%; background:transparent; box-shadow:var(--shadow); }
.home-about-photo img { display:block; width:100%; height:auto !important; object-fit:initial; }
.home-about-copy { max-width:690px; }
.home-about-copy h2 { margin-bottom:24px; }
.home-about-copy p { color:#43554c; }
.home-about-intro { font-size:1.08rem; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.content-layout { display:grid; grid-template-columns:minmax(0,760px) 300px; gap:55px; align-items:start; }
.page-hero { padding:70px 0 45px; text-align:center; }
.page-hero h1 { font-size:clamp(2.4rem,6vw,4.4rem); }
.blog-hero { max-width:1040px; padding-bottom:35px; }
.blog-hero h1 { max-width:900px; margin-inline:auto; }
.blog-intro { max-width:760px; margin:20px auto 28px; color:var(--muted); font-size:1.08rem; }
.blog-search { display:grid; grid-template-columns:1fr auto; max-width:720px; margin:0 auto 22px; padding:7px; border:1px solid var(--line); border-radius:999px; background:var(--paper); box-shadow:0 9px 25px rgba(67,76,66,.06); }
.blog-search input { min-width:0; padding:10px 16px; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; }
.blog-search button { min-height:44px; padding:9px 22px; border:0; border-radius:999px; background:var(--sage-dark); color:#fff; font:800 .92rem inherit; cursor:pointer; }
.blog-search button:hover { background:#294b3b; }
.blog-topic-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }
.blog-topic-nav a { padding:8px 13px; border:1px solid var(--line); border-radius:999px; background:#fffaf4; color:var(--sage-dark); font-size:.84rem; font-weight:800; text-decoration:none; transition:.2s ease; }
.blog-topic-nav a:hover { border-color:var(--sage-dark); background:var(--sage-dark); color:#fff; }
.article-shell { padding:35px 0 90px; }
.article { padding:clamp(24px,5vw,58px); border:1px solid var(--line); border-radius:30px; background:var(--paper); box-shadow:var(--shadow); }
.article h1 { font-size:clamp(2.3rem,5vw,4rem); }
.article h2 { margin-top:1.5em; font-size:clamp(1.7rem,3vw,2.35rem); }
.article h3 { margin-top:1.35em; }
.article-featured { margin:28px 0 34px; overflow:hidden; border-radius:22px; }
.article-content > * { max-width:720px; }
.article-content > .alignwide { max-width:100%; }
.article-content ul,.article-content ol { padding-left:1.3em; }
.affiliate-note { margin:24px 0; padding:17px 20px; border-left:4px solid var(--mustard); border-radius:0 12px 12px 0; background:#fff6dc; font-size:.9rem; }
.share-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:35px; padding-top:24px; border-top:1px solid var(--line); }
.share-row a { padding:8px 14px; border:1px solid var(--line); border-radius:999px; font-size:.85rem; font-weight:800; text-decoration:none; }
.sidebar-card { margin-bottom:22px; padding:24px; border-radius:20px; background:#e8efe7; }
.sidebar { position:sticky; top:112px; }
.admin-bar .sidebar { top:144px; }
.sidebar-card h3 { font-size:1.35rem; }
.sidebar-card ul { margin:0; padding-left:18px; }

.about-grid { display:grid; grid-template-columns:minmax(280px,.7fr) 1.3fr; align-items:center; gap:60px; }
.about-photo { width:100%; overflow:hidden; border-radius:42% 58% 50% 50%/38% 42% 58% 62%; box-shadow:var(--shadow); background:transparent; }
.about-photo img { display:block; width:100%; height:auto !important; object-fit:initial; }
.contact-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:45px; }
.contact-box { padding:30px; border-radius:24px; background:#e8efe7; }
.wpforms-container input,.wpforms-container textarea,.wpforms-container select { border:1px solid #cfd9d2 !important; border-radius:12px !important; background:#fff !important; }
.wpforms-container .wpforms-field-medium { max-width:100% !important; }
.wpforms-container .wpforms-field-checkbox ul { margin:0 !important; padding:0 !important; list-style:none !important; }
.wpforms-container .wpforms-field-checkbox li { margin:0 !important; list-style:none !important; }
.wpforms-submit { min-height:48px !important; padding:12px 24px !important; border:0 !important; border-radius:999px !important; background:var(--sage-dark) !important; color:#fff !important; font-size:1rem !important; font-weight:800 !important; line-height:1.2 !important; }
.wpforms-submit:hover { background:#294b3b !important; }

.site-footer { padding:58px 0 28px; background:#293f35; color:#eff5ef; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:45px; }
.site-footer h2,.site-footer h3 { color:#fff; }
.site-footer a { color:#fff; }
.footer-about p,.footer-shops p { max-width:430px; color:#e4ede7; }
.footer-menu { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.footer-menu a { text-underline-offset:4px; }
.footer-shop-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.footer-shop-link { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 14px; border:1px solid rgba(255,255,255,.55); border-radius:999px; font-size:.88rem; font-weight:800; text-decoration:none; transition:.2s ease; }
.footer-shop-link:hover { border-color:#fff; background:#fff; color:var(--sage-dark); }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:42px; padding-top:22px; border-top:1px solid rgba(255,255,255,.15); color:#ced9d2; font-size:.82rem; }
.footer-note { color:#bfcfc5; }
.pagination { margin-top:35px; }
.nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.page-numbers { padding:8px 12px; border-radius:8px; background:#fff; text-decoration:none; }

@media (max-width:980px) {
  .hero-grid,.content-layout,.about-grid,.contact-grid,.home-about-grid { grid-template-columns:1fr; }
  .hero-card { min-height:320px; }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .post-grid { grid-template-columns:repeat(2,1fr); }
  .sidebar { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
}
@media (max-width:760px) {
  body { font-size:16px; }
  .custom-logo { max-width:245px; max-height:64px; }
  .wrap { width:min(calc(100% - 28px),var(--content)); }
  .menu-toggle { display:block; }
  .site-nav { display:none; position:absolute; left:14px; right:14px; top:74px; padding:20px; border-radius:18px; background:var(--paper); box-shadow:var(--shadow); }
  .site-nav.open { display:block; }
  .site-nav > ul { align-items:flex-start; flex-direction:column; gap:12px; }
  .site-nav .sub-menu { position:static; display:block; min-width:0; margin-top:5px; padding:2px 0 0 14px; border:0; background:transparent; box-shadow:none; }
  .site-nav .sub-menu::before { display:none; }
  .hero { padding:58px 0; }
  .section { padding:58px 0; }
  .section-head { align-items:start; flex-direction:column; }
  .category-grid,.post-grid,.sidebar,.footer-grid { grid-template-columns:1fr; }
  .sidebar { position:static; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .category-tile { min-height:145px; }
  .shop-strip { grid-template-columns:1fr; padding:30px; }
  .shop-actions { width:100%; min-width:0; }
  .hero-trust { flex-direction:column; gap:7px; }
  .home-search { grid-template-columns:1fr; border-radius:20px; }
  .home-search button { width:100%; }
  .blog-search { grid-template-columns:1fr; border-radius:20px; }
  .blog-search button { width:100%; }
  .blog-topic-nav { justify-content:flex-start; }
  .home-about-photo { width:min(78vw,330px); margin-inline:auto; }
  .post-card h3,.post-card-content > p { min-height:0; }
  .footer-bottom { align-items:flex-start; flex-direction:column; gap:6px; }
}
@media (max-width:520px) {
  .category-grid { grid-template-columns:1fr; }
  .category-tile { min-height:0; display:grid; grid-template-columns:42px 1fr; align-items:center; padding:20px; }
  .category-arrow { top:50%; transform:translateY(-50%); }
  .category-tile:hover .category-arrow { transform:translate(3px,-50%); }
  .category-content { padding-right:26px; }
}
@media screen and (max-width:782px) { .admin-bar .site-header { top:46px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }

/* Elternfund 1.1 — heller Lesebereich, warme Akzente, klare Empfehlungen. */
:root {
  --cream: #faf7f2;
  --paper: #ffffff;
  --sage: #78947f;
  --sage-dark: #17665e;
  --ink: #343a36;
  --muted: #626c65;
  --line: #e3e7e1;
  --shadow: 0 12px 36px rgba(44, 65, 54, .055);
  --link: #17665e;
  --link-hover: #104c46;
  --heading: #294b3d;
}
body { background: var(--paper); }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: .19em; }
a:hover { color: var(--link-hover); }
h1,h2,h3,h4,h5,h6 { color: var(--heading); }
:where(a,button,input,textarea,select):focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
[id] { scroll-margin-top: 125px; }
.site-header { background: rgba(250,247,242,.97); border-bottom-color: #e6e5de; }
.site-nav a:hover,.site-nav .current-menu-item > a { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
.hero { background: var(--cream); }
.hero h1 em { color: #a4514f; }
.eyebrow { color: #98534d; }
.section.soft { background: var(--cream); }
.category-tile { border-radius: 18px; box-shadow: none; }
.category-arrow { color: var(--link); }
.category-tile:nth-child(2) .category-icon { background: #e6eee8; }
.category-tile:nth-child(3) .category-icon { background: #e5edf2; }
.category-tile:nth-child(4) .category-icon { background: #f5e6e7; }
.category-tile:nth-child(5) .category-icon { background: #f4ecd8; }
.post-card { border-radius: 20px; box-shadow: 0 6px 22px rgba(44,65,54,.04); }
.blog-topic-nav a { background: #fff; }
.content-layout { grid-template-columns: minmax(0,820px) minmax(0,280px); gap: 48px; }
.article-shell { padding: 48px 0 80px; background: var(--cream); }
.article { min-width: 0; padding: clamp(22px,4vw,48px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.article > h1 { margin-top: 16px; margin-bottom: 24px; font-size: clamp(2rem,3.8vw,3.2rem); line-height: 1.16; overflow-wrap: anywhere; }
.article-content { font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.article-content h2 { margin: 1.9em 0 .7em; font-size: clamp(1.65rem,2.5vw,2.1rem); line-height: 1.25; }
.article-content h3 { margin: 1.6em 0 .6em; font-size: clamp(1.3rem,2vw,1.55rem); line-height: 1.3; }
.article-content h4 { margin: 1.5em 0 .6em; font-size: 1.15rem; line-height: 1.4; }
.article-content p { margin-bottom: 1.3em; }
.article-content li { margin-bottom: .45em; }
.article-content a:not(.button):not(.wp-block-button__link) { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.article-content a:not(.button):not(.wp-block-button__link):hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.article-content .ef-affiliate-link:not(.button):not(.wp-block-button__link) { font-weight: 650; }
.article-content .ef-affiliate-link:not(.ef-has-marker)::after { content: " *"; font-size: .85em; font-weight: 700; white-space: nowrap; }
.article-content .ef-tip { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--link); border-radius: 0 14px 14px 0; background: #edf4ef; }
.article-content .ef-tip > :last-child { margin-bottom: 0; }
.article-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid #78947f; background: #f4f7f3; }
.article-content blockquote > :last-child { margin-bottom: 0; }
.article-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.article-content table { width: 100%; border-collapse: collapse; font-size: .93em; }
.article-content th,.article-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: #edf4ef; color: var(--heading); }
.article-content hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.article-featured { border-radius: 14px; }
.article-featured img { display: block; width: 100%; }
.affiliate-note { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--link); background: #edf4ef; color: #394c41; font-size: .88rem; line-height: 1.65; }
.sidebar-card { padding: 24px; background: #f0f4ee; border: 1px solid #e0e8dd; border-radius: 18px; }
.sidebar-card:nth-child(even) { background: #fff; }
.share-row a:hover { color: var(--link); border-color: var(--link); background: #edf4ef; }
.home-search:focus-within,.blog-search:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
@media (max-width:980px) {
  .content-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
}
@media (max-width:760px) {
  .article-shell { padding: 22px 0 48px; }
  .article { padding: 24px 20px; border-radius: 16px; }
  .article-content { font-size: 17px; line-height: 1.78; }
  .article > h1 { font-size: clamp(1.9rem,7vw,2.6rem); }
  .affiliate-note { padding: 14px 16px; }
  .article-content .ef-tip { padding: 18px; }
}
@media screen and (max-width:600px) { .admin-bar .site-header { top: 0; } }
