/*
Theme Name: Aphasia Hope Blog
Theme URI: https://smalldeskapps.com/
Author: SmallDeskApps
Author URI: https://smalldeskapps.com/
Description: A warm pastel WordPress blog theme for an English aphasia awareness website.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: aphasia-hope-blog
*/
:root{
  --cream:#fffaf2;
  --cream-2:#fff3e6;
  --paper:#ffffff;
  --ink:#343445;
  --muted:#74758a;
  --rose:#ffb7b2;
  --rose-2:#ffd5cf;
  --peach:#ffd7a8;
  --butter:#fff0a9;
  --mint:#bfead8;
  --mint-2:#e0f8ee;
  --sky:#cde8ff;
  --lavender:#ded6ff;
  --lilac:#f1eefe;
  --accent:#ff8f86;
  --accent-dark:#df6d65;
  --teal:#59b8a6;
  --shadow:0 22px 55px rgba(91,77,65,.13);
  --shadow-soft:0 12px 35px rgba(91,77,65,.09);
  --radius:32px;
  --radius-small:20px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 8%,rgba(255,183,178,.38),transparent 28%),
    radial-gradient(circle at 92% 4%,rgba(191,234,216,.48),transparent 30%),
    radial-gradient(circle at 75% 42%,rgba(222,214,255,.42),transparent 32%),
    linear-gradient(180deg,#fffaf2 0%,#fff7ef 46%,#ffffff 100%);
  font-family:ui-rounded,"SF Pro Rounded","Aptos Rounded","Nunito",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.72;
  overflow-x:hidden;
}
a{color:var(--accent-dark);text-decoration:none}
a:hover{color:#bf5c54}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin:0 auto}
.skip-link{position:absolute;left:-999px;top:12px;background:var(--ink);color:#fff;padding:12px 16px;border-radius:999px;z-index:50}
.skip-link:focus{left:16px}
.site-shell{position:relative;isolation:isolate}
.site-shell:before,.site-shell:after{
  content:"";
  position:fixed;
  width:290px;
  height:290px;
  border-radius:999px;
  filter:blur(12px);
  opacity:.42;
  pointer-events:none;
  z-index:-1;
}
.site-shell:before{left:-130px;top:240px;background:var(--sky)}
.site-shell:after{right:-130px;bottom:80px;background:var(--rose-2)}
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  padding:18px 0;
  backdrop-filter:blur(18px);
  background:rgba(255,250,242,.78);
  border-bottom:1px solid rgba(255,255,255,.72);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:68px;
  padding:10px 14px 10px 18px;
  border:1px solid rgba(255,255,255,.86);
  background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,243,230,.72));
  border-radius:999px;
  box-shadow:0 12px 35px rgba(118,93,70,.08);
}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);min-width:0}
.brand-mark{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:18px;
  background:linear-gradient(135deg,var(--rose),var(--peach) 48%,var(--mint));
  box-shadow:0 12px 24px rgba(255,143,134,.22);
  color:#fff;
}
.brand-mark svg{width:28px;height:28px}
.custom-logo-link img{max-height:54px;width:auto;border-radius:16px}
.brand-text{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.site-title{font-weight:900;font-size:1.05rem;color:var(--ink);letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-description{font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}
.primary-nav{display:flex;align-items:center;gap:18px}
.primary-nav ul{display:flex;align-items:center;gap:8px;list-style:none;margin:0;padding:0}
.primary-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  border-radius:999px;
  color:#55566a;
  font-weight:750;
  font-size:.94rem;
}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{background:#fff;color:var(--accent-dark);box-shadow:0 8px 20px rgba(115,83,64,.08)}
.nav-toggle{display:none;align-items:center;gap:9px;border:0;border-radius:999px;background:#fff;padding:11px 14px;color:var(--ink);font-weight:850;box-shadow:0 8px 20px rgba(115,83,64,.09);cursor:pointer}
.nav-toggle-bars{width:18px;height:13px;position:relative;display:inline-block}
.nav-toggle-bars:before,.nav-toggle-bars:after,.nav-toggle-bars span{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--ink);border-radius:3px;transition:.2s ease}
.nav-toggle-bars:before{top:0}.nav-toggle-bars span{top:5.5px}.nav-toggle-bars:after{bottom:0}
body.nav-open .nav-toggle-bars:before{top:5.5px;transform:rotate(45deg)}
body.nav-open .nav-toggle-bars span{opacity:0}
body.nav-open .nav-toggle-bars:after{bottom:5.5px;transform:rotate(-45deg)}
.site-main{min-height:64vh}
.hero-wrap{padding:38px 0 58px}
.hero{
  position:relative;
  min-height:620px;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:58px 54px;
  border-radius:48px;
  background:linear-gradient(135deg,#fff7ef 0%,#fff8dc 34%,#e7f8ef 68%,#eee9ff 100%);
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.82);
}
.hero:before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:38px;
  border:1px solid rgba(255,255,255,.66);
  pointer-events:none;
  z-index:3;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:1;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:.98;
}
.hero-bg:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(255,250,242,.99) 0%,rgba(255,250,242,.96) 25%,rgba(255,250,242,.78) 43%,rgba(255,250,242,.28) 63%,rgba(255,250,242,.04) 100%),
    linear-gradient(180deg,rgba(255,250,242,.2) 0%,rgba(255,250,242,0) 45%,rgba(255,250,242,.48) 100%);
  pointer-events:none;
}
.hero-bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 12%,rgba(255,183,178,.23),transparent 32%),
    radial-gradient(circle at 42% 60%,rgba(191,234,216,.18),transparent 34%),
    radial-gradient(circle at 86% 12%,rgba(255,255,255,.22),transparent 30%);
  mix-blend-mode:screen;
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:4;
  width:min(56%,720px);
  padding:8px 0 8px 0;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.74);
  color:#8a655e;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
  box-shadow:0 8px 22px rgba(121,92,70,.08);
  width:max-content;
  max-width:100%;
}
.kicker:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 6px rgba(89,184,166,.14)}
.hero h1{font-size:clamp(2.7rem,5vw,5.4rem);line-height:.98;letter-spacing:-.075em;margin:22px 0 18px;max-width:760px;color:#353345}
.hero p{font-size:clamp(1.05rem,1.45vw,1.28rem);max-width:650px;color:#626377;margin:0 0 26px}
.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:52px;
  padding:13px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),#ffb28c);
  color:#fff;
  font-weight:900;
  box-shadow:0 16px 30px rgba(255,143,134,.3);
  border:0;
}
.button:hover{color:#fff;transform:translateY(-1px);box-shadow:0 20px 38px rgba(255,143,134,.36)}
.button.secondary{background:rgba(255,255,255,.74);color:var(--ink);box-shadow:0 10px 24px rgba(118,93,70,.09)}
.hero-note{display:flex;align-items:center;gap:8px;color:#6b6c7e;font-size:.94rem;font-weight:750}
.hero-note span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--accent-dark)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}
.section-head h2,.archive-header h1,.page-title{margin:8px 0 0;font-size:clamp(2rem,3vw,3.25rem);line-height:1.05;letter-spacing:-.055em;color:#353345}
.section-head p,.archive-header p{margin:0;color:var(--muted);max-width:680px;font-size:1.05rem}
.blog-area{padding:18px 0 78px}
.content-sidebar-grid{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:34px;align-items:start}
.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.post-card{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
}
.post-card:hover{transform:translateY(-4px);box-shadow:0 24px 54px rgba(91,77,65,.14)}
.post-card-media{position:relative;aspect-ratio:16/10;background:linear-gradient(135deg,var(--rose-2),var(--butter),var(--mint-2));overflow:hidden}
.post-card-media img{width:100%;height:100%;object-fit:cover}
.no-image-blob{position:absolute;inset:0;background:radial-gradient(circle at 28% 22%,rgba(255,255,255,.72),transparent 25%),radial-gradient(circle at 68% 64%,rgba(255,255,255,.46),transparent 28%),linear-gradient(135deg,#ffd5cf,#fff0a9,#dff8ee)}
.no-image-blob:after{content:"";position:absolute;left:50%;top:50%;width:96px;height:96px;border-radius:36px;background:rgba(255,255,255,.45);transform:translate(-50%,-50%) rotate(10deg);box-shadow:54px -32px 0 rgba(255,255,255,.28),-45px 38px 0 rgba(255,255,255,.32)}
.post-card-body{padding:22px 22px 24px}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#838497;font-size:.86rem;font-weight:750;margin-bottom:11px}
.post-meta a{color:#8a655e}
.pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff4ee;color:#8a655e;font-size:.79rem;font-weight:900}
.post-card h3{margin:0 0 12px;font-size:clamp(1.25rem,2vw,1.62rem);line-height:1.12;letter-spacing:-.04em}
.post-card h3 a{color:#353345}
.post-card h3 a:hover{color:var(--accent-dark)}
.post-card p{margin:0;color:#696a7c;font-size:.98rem}
.read-more{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-weight:900;color:var(--accent-dark)}
.read-more:after{content:"→";transition:.2s ease}.read-more:hover:after{transform:translateX(4px)}
.sidebar{position:sticky;top:128px;display:grid;gap:18px}
.widget{
  padding:24px;
  border-radius:30px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:var(--shadow-soft);
}
.widget h2,.widget h3,.widget-title{margin:0 0 14px;font-size:1.16rem;line-height:1.2;letter-spacing:-.03em;color:#353345}
.widget ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.widget li a{color:#5f6073;font-weight:760}
.widget li a:hover{color:var(--accent-dark)}
.search-form{display:flex;gap:10px;align-items:center}
.search-field,input[type="search"],input[type="text"],input[type="email"],textarea{
  width:100%;
  min-height:48px;
  border:1px solid rgba(120,111,100,.16);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  padding:12px 15px;
  outline:none;
}
textarea{border-radius:22px;min-height:130px}
.search-submit,input[type="submit"],button[type="submit"]{
  min-height:48px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  padding:11px 17px;
  font-weight:900;
  cursor:pointer;
}
.gentle-box{background:linear-gradient(135deg,#fff,#fff4ee 46%,#e9f8f1);overflow:hidden;position:relative}
.gentle-box:after{content:"";position:absolute;right:-34px;bottom:-34px;width:120px;height:120px;border-radius:45px;background:rgba(255,183,178,.24);transform:rotate(18deg)}
.gentle-box p{margin:0;color:#696a7c;font-size:.97rem;position:relative;z-index:2}
.archive-wrap{padding:48px 0 78px}
.archive-header{
  margin-bottom:30px;
  padding:32px;
  border-radius:38px;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,245,236,.72));
  border:1px solid rgba(255,255,255,.88);
  box-shadow:var(--shadow-soft);
}
.pagination,.nav-links{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:28px}
.page-numbers,.post-page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px 13px;border-radius:999px;background:#fff;color:#5f6073;font-weight:900;box-shadow:0 8px 18px rgba(91,77,65,.08)}
.page-numbers.current,.post-page-numbers.current{background:var(--accent);color:#fff}
.single-wrap,.page-wrap{padding:48px 0 84px}
.article-shell{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:34px;align-items:start}
.article-card{
  overflow:hidden;
  border-radius:42px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.article-hero{padding:34px 36px 26px;background:linear-gradient(135deg,#fff,#fff4ee 58%,#eef9f4)}
.article-hero h1{margin:14px 0 18px;font-size:clamp(2.2rem,4vw,4.65rem);line-height:1;letter-spacing:-.07em;color:#353345}
.article-hero .post-meta{margin-bottom:0}
.article-image{aspect-ratio:16/8.3;overflow:hidden;background:linear-gradient(135deg,var(--rose-2),var(--mint-2))}
.article-image img{width:100%;height:100%;object-fit:cover}
.article-content{padding:34px 42px 44px;font-size:1.08rem;color:#4d4e62}
.article-content>*:first-child{margin-top:0}
.article-content h2,.article-content h3,.article-content h4{color:#353345;letter-spacing:-.045em;line-height:1.14;margin:1.6em 0 .55em}
.article-content h2{font-size:clamp(1.85rem,2.7vw,2.65rem)}
.article-content h3{font-size:clamp(1.42rem,2vw,1.9rem)}
.article-content p{margin:0 0 1.15em}
.article-content ul,.article-content ol{padding-left:1.3em;margin:0 0 1.2em}
.article-content li{margin:.38em 0}
.article-content blockquote{
  margin:1.6em 0;
  padding:24px 26px;
  border-radius:28px;
  background:#fff6ef;
  border-left:6px solid var(--accent);
  color:#55566a;
  box-shadow:0 12px 25px rgba(91,77,65,.07);
}
.article-content table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:22px;margin:1.5em 0;background:#fff;box-shadow:0 12px 26px rgba(91,77,65,.08)}
.article-content th,.article-content td{padding:14px 15px;border-bottom:1px solid #f0e7dd;text-align:left;vertical-align:top}
.article-content th{background:#fff4ee;color:#4c4d60}
.article-content tr:last-child td{border-bottom:0}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px;padding-top:24px;border-top:1px solid #f1e8df}
.tags a{display:inline-flex;padding:7px 11px;border-radius:999px;background:#f4f0ff;color:#68607f;font-weight:850;font-size:.86rem}
.post-navigation{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.post-navigation a{display:block;padding:18px;border-radius:24px;background:#fff;color:#353345;font-weight:900;box-shadow:var(--shadow-soft)}
.post-navigation .nav-next{text-align:right}
.comments-area{margin-top:28px;padding:30px;border-radius:34px;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.9);box-shadow:var(--shadow-soft)}
.comment-list{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.comment-body{padding:18px;border-radius:24px;background:#fff7f0}
.form-submit{margin-bottom:0}
.not-found-card{
  max-width:760px;
  margin:70px auto 90px;
  padding:42px;
  border-radius:40px;
  background:rgba(255,255,255,.86);
  box-shadow:var(--shadow);
  text-align:center;
}
.not-found-card h1{font-size:clamp(2.2rem,4vw,4.8rem);line-height:1;letter-spacing:-.07em;margin:0 0 16px}
.site-footer{padding:38px 0 44px;background:linear-gradient(180deg,transparent,#fff7ef)}
.footer-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);
  gap:28px;
  align-items:center;
  padding:30px;
  border-radius:36px;
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,244,238,.86));
  border:1px solid rgba(255,255,255,.94);
  box-shadow:var(--shadow-soft);
}
.footer-card h2{margin:0 0 10px;font-size:clamp(1.5rem,2.3vw,2.3rem);letter-spacing:-.05em;line-height:1.08}
.footer-card p{margin:0;color:#6b6c7e;max-width:760px}
.footer-links{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.footer-links a{display:inline-flex;padding:10px 13px;border-radius:999px;background:#fff;color:#5f6073;font-weight:850}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:18px;color:#858699;font-size:.9rem;padding:0 4px}
.alignwide{max-width:calc(var(--max) - 80px);margin-left:auto;margin-right:auto}
.alignfull{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.wp-block-image img{border-radius:28px;box-shadow:var(--shadow-soft)}
.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{color:var(--muted);font-size:.92rem;text-align:center;margin-top:8px}
.bypostauthor .comment-body{background:#f0fbf5}
.sticky .post-card{outline:3px solid rgba(255,143,134,.26)}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
@media (max-width:1040px){
  .hero{min-height:560px;padding:46px 38px;border-radius:38px}
  .hero-copy{width:min(68%,680px)}
  .hero h1{font-size:clamp(2.55rem,7vw,4.85rem)}
  .content-sidebar-grid,.article-shell{grid-template-columns:1fr}
  .sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:840px){
  .container{width:min(var(--max),calc(100% - 28px))}
  .site-header{padding:10px 0}
  .topbar{border-radius:28px;align-items:flex-start;flex-wrap:wrap;padding:12px}
  .brand{max-width:calc(100% - 112px)}
  .nav-toggle{display:inline-flex;margin-left:auto}
  .primary-nav{display:none;width:100%;padding:8px 0 2px}
  body.nav-open .primary-nav{display:block}
  .primary-nav ul{display:grid;gap:8px;width:100%}
  .primary-nav a{background:rgba(255,255,255,.74);justify-content:center}
  .hero-wrap{padding:22px 0 36px}
  .hero{min-height:auto;padding:34px 28px 330px}
  .hero-copy{width:100%;max-width:680px}
  .hero h1{font-size:clamp(2.45rem,12vw,4.1rem)}
  .hero-bg{background-size:cover;background-position:68% bottom}
  .hero-bg:before{
    background:
      linear-gradient(180deg,rgba(255,250,242,.98) 0%,rgba(255,250,242,.95) 43%,rgba(255,250,242,.36) 72%,rgba(255,250,242,.08) 100%),
      linear-gradient(90deg,rgba(255,250,242,.96) 0%,rgba(255,250,242,.5) 45%,rgba(255,250,242,.02) 100%);
  }
  .section-head{display:block}
  .posts-grid{grid-template-columns:1fr}
  .sidebar{grid-template-columns:1fr}
  .article-hero{padding:28px 24px 22px}
  .article-content{padding:28px 24px 34px;font-size:1.02rem}
  .post-navigation{grid-template-columns:1fr}.post-navigation .nav-next{text-align:left}
  .footer-card{grid-template-columns:1fr}.footer-links{justify-content:flex-start}
}
@media (max-width:520px){
  .container{width:min(var(--max),calc(100% - 22px))}
  .site-description{display:none}
  .site-title{font-size:.96rem}
  .hero{padding:26px 18px 285px;border-radius:30px}
  .hero:before{inset:10px;border-radius:24px}
  .hero h1{font-size:clamp(2.25rem,14vw,3.4rem)}
  .hero p{font-size:1rem}
  .hero-actions{align-items:stretch}.button{width:100%}
  .hero-note{justify-content:center;width:100%}
  .hero-bg{background-position:69% bottom}
  .hero-bg:before{
    background:
      linear-gradient(180deg,rgba(255,250,242,.99) 0%,rgba(255,250,242,.96) 50%,rgba(255,250,242,.28) 78%,rgba(255,250,242,.05) 100%);
  }
  .archive-header,.not-found-card{padding:26px;border-radius:30px}
  .post-card,.widget{border-radius:26px}
  .article-card{border-radius:30px}.article-hero h1{font-size:2.35rem}.article-image{aspect-ratio:16/10}
  .footer-card{padding:24px;border-radius:30px}
}


/* Mobile article overflow fix */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.site-shell,
.site-main,
.container,
.content-sidebar-grid,
.article-shell,
.article-card,
.article-hero,
.article-content,
.post-card,
.widget{
  max-width:100%;
  min-width:0;
}

.article-card,
.post-card,
.archive-header,
.not-found-card{
  width:100%;
}

.article-hero h1,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.article-content p,
.article-content li,
.post-card h3,
.page-title,
.archive-header h1{
  max-width:100%;
  overflow-wrap:break-word;
  word-wrap:break-word;
}

.article-content table{
  display:block;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.article-content pre,
.article-content code,
.article-content iframe,
.article-content embed,
.article-content object{
  max-width:100%;
  overflow-x:auto;
}

@media (max-width:840px){
  .single-wrap,
  .page-wrap,
  .archive-wrap{
    padding-top:34px;
  }

  .single-wrap .container,
  .page-wrap .container,
  .archive-wrap .container,
  .blog-area .container{
    width:calc(100% - 28px);
    max-width:100%;
  }

  .article-shell,
  .content-sidebar-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) !important;
    gap:24px;
    width:100%;
    max-width:100%;
  }

  .article-card{
    border-radius:32px;
    overflow:hidden;
  }

  .article-hero{
    padding:28px 24px 22px;
  }

  .article-hero h1{
    font-size:clamp(2rem,9.4vw,3.15rem);
    line-height:1.06;
    letter-spacing:-.052em;
  }

  .article-content{
    padding:28px 24px 34px;
    font-size:1.02rem;
  }
}

@media (max-width:520px){
  .single-wrap .container,
  .page-wrap .container,
  .archive-wrap .container,
  .blog-area .container{
    width:calc(100% - 22px);
  }

  .article-card{
    border-radius:28px;
  }

  .article-hero{
    padding:24px 20px 20px;
  }

  .article-hero h1{
    font-size:clamp(1.82rem,10.6vw,2.65rem);
    line-height:1.08;
    letter-spacing:-.045em;
  }

  .article-content{
    padding:25px 20px 32px;
    font-size:1rem;
    line-height:1.75;
  }

  .post-meta{
    gap:8px;
  }

  .pill,
  .post-meta{
    font-size:.82rem;
  }
}


/* Mobile table fix */
.article-content table{
  width:100%;
  max-width:100%;
  table-layout:fixed;
}
.article-content th,
.article-content td{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

@media (max-width:840px){
  .article-content table{
    display:table;
    width:100%;
    max-width:100%;
    table-layout:fixed;
    border-spacing:0;
  }
  .article-content th,
  .article-content td{
    padding:12px 12px;
    font-size:.96rem;
    line-height:1.55;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    vertical-align:top;
  }
}

@media (max-width:520px){
  .article-content table{
    display:table;
    width:100%;
    max-width:100%;
    table-layout:fixed;
    border-radius:18px;
  }
  .article-content th,
  .article-content td{
    padding:10px 10px;
    font-size:.88rem;
    line-height:1.48;
  }
}
