:root {
  /* WhatsApp green brand; every colour that carries white text passes the 4.5:1 contrast check. */
  --brand: #075e54; --brand-dark: #054d45; --brand-soft: #e7f5ef; --accent: #25d366;
  --ink: #0b2e2a; --muted: #466760; --line: #b9dccf; --line-soft: #e3efe9; --bg: #f0f6f3; --card: #fff;
  /* Platforms share the WhatsApp green (the user wants one calm colour); the logos tell them apart */
  --wa: #075e54; --wa-soft: #e7f5ef; --tg: #075e54; --tg-soft: #e7f5ef; --fb: #075e54; --fb-soft: #e7f5ef;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(7, 94, 84, .04), 0 6px 20px rgba(7, 94, 84, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 34px; }
.center { text-align: center; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); }
.empty a { color: var(--brand); font-weight: 600; }

/* Platform colour on any element: class net-wa / net-tg / net-fb sets --pc and --ps */
.net-wa { --pc: var(--wa); --ps: var(--wa-soft); }
.net-tg { --pc: var(--tg); --ps: var(--tg-soft); }
.net-fb { --pc: var(--fb); --ps: var(--fb-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px;
       font-weight: 650; font-size: 14px; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn svg { flex: none; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-join { background: var(--pc, var(--brand)); color: #fff; }
.btn-join:hover { filter: brightness(.9); }
.btn-light { background: var(--brand-soft); color: var(--brand); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn.big { min-height: 48px; font-size: 16px; padding: 0 24px; }
.btn.wide { width: 100%; }

/* Header */
.site-head { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.logo img { border-radius: 10px; }
.brand-x { color: #0b8a5f; font-weight: 900; }
.logo.light .brand-x { color: #86efac; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #25d366, #075e54); display: grid; place-items: center; color: #fff; flex: none; }
.menu { display: flex; gap: 20px; font-weight: 550; color: #3d5f58; font-size: 15px; }
.menu a:hover, .menu a.on { color: var(--brand); }
.nav-search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.nav-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 0 38px; font: inherit; font-size: 14px; background: var(--bg); }
.nav-search input:focus { background: #fff; outline: 2px solid #86efac; border-color: var(--brand); }
.nav-search svg { position: absolute; left: 13px; top: 12px; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }

.m-search { display: none; color: var(--ink); padding: 6px; }

/* Ads: a place with no ad prints nothing, so these only style real ads */
.ad-box { position: relative; text-align: center; overflow: hidden; }
.ad-box img { display: block; margin: 0 auto; border-radius: 12px; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-top, .ad-foot { margin: 14px auto; }
.ad-mid { margin: 28px 0 0; }
.ad-list { margin: 0 0 16px; }
.ad-feed { grid-column: 1 / -1; background: #fff; border-radius: var(--radius); padding: 10px; display: grid; place-items: center; box-shadow: var(--shadow); }
.ad-text { display: block; padding: 20px; font-weight: 700; color: var(--brand); }

/* Hero: dark panel with a soft glow in the three platform colours */
.hero { margin: 22px auto 0; border-radius: 26px; padding: 54px 28px 30px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
        background: radial-gradient(520px 280px at 90% -10%, rgba(37, 211, 102, .28), transparent 60%), linear-gradient(135deg, #075e54 0%, #0b6e63 55%, #0d7f58 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; pointer-events: none;
                background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 34px 34px; }
.hero-in { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.hero h1 { font-size: clamp(28px, 4.8vw, 48px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { color: #fff; font-size: 17px; margin: 0 auto; max-width: 640px; }
.hero-search { background: #fff; border-radius: 14px; padding: 6px; display: flex; gap: 6px; max-width: 640px; margin: 26px auto 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hero-search select { border: 0; border-right: 1px solid var(--line-soft); font: inherit; font-size: 14px; color: var(--ink); background: transparent; padding: 0 8px; max-width: 170px; }
.hero-search input { flex: 1; border: 0; font: inherit; font-size: 16px; padding: 0 12px; outline: none; color: var(--ink); min-width: 0; }
.hero-search .btn { min-height: 44px; }
.ptiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.ptile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-align: left; transition: background .15s, transform .15s; }
.ptile:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.ptile i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--pc); font-style: normal; }
.ptile strong { font-size: 14.5px; line-height: 1.25; }
.ptile small { color: #d9f2e8; font-size: 12.5px; }

/* Featured cards above the categories */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 24px; }
.promo-h { margin: 22px 0 -14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp { background: #fff; border: 1px solid #86efac; border-radius: var(--radius); padding: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 6px 22px rgba(7, 94, 84, .14); }
.sp-nm { flex: 1; min-width: 0; }
.sp-nm strong { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.sp-nm small { color: var(--muted); font-size: 12.5px; }
.sp .btn { flex: none; padding: 0 22px; font-weight: 700; }

/* Layout */
.page-pad { padding-top: 24px; padding-bottom: 48px; }
.narrow { max-width: 820px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
section { margin-bottom: 34px; }
.home section { margin: 44px 0 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.sec-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.sec-head h2 i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ps, var(--brand-soft)); color: var(--pc, var(--brand)); font-style: normal; flex: none; }
.sec-head a { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-block; padding: 6px 0; }
.sec-head.net-wa a, .sec-head.net-tg a, .sec-head.net-fb a { color: var(--pc); }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; }
.page-head.with-icon { display: flex; gap: 16px; align-items: center; }
.ph-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--pc); color: #fff; flex: none; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { display: inline-block; padding: 3px 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--muted); padding: 3px 0; }
.notice { background: #fef3c7; border-radius: 10px; padding: 10px 14px; }

/* Filter chips on list pages (topics inside a platform, platforms inside a topic) */
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.fchips a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; color: #3d5f58; }
.fchips a b { font-weight: 600; color: var(--muted); font-size: 12px; }
.fchips a:hover { border-color: var(--pc, var(--brand)); color: var(--pc, var(--brand)); }
.fchips a.on { background: var(--pc, var(--brand)); border-color: var(--pc, var(--brand)); color: #fff; }
.fchips a.on b { color: #fff; }
.fchips a i { font-style: normal; color: var(--pc); display: inline-flex; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cats.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cats.big { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.cat:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(7, 94, 84, .14); }
.cat i { font-style: normal; font-size: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; flex: none; }
.cat span { min-width: 0; overflow-wrap: anywhere; }
.cat small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Group cards: platform badge on the picture, platform-coloured Join button */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.groups.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.g::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--pc); }
.g:hover { border-color: var(--pc); box-shadow: 0 10px 28px rgba(7, 94, 84, .1); transform: translateY(-2px); }
.g.pinned { background: linear-gradient(180deg, #fffbeb, #fff 60px); border-color: #fcd34d; }
.g-top { display: flex; gap: 12px; align-items: flex-start; }
.av-wrap { position: relative; flex: none; }
.av-net { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; box-shadow: 0 0 0 2px #fff; }
.avatar { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; object-fit: cover; background: #e2e8f0; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; border-radius: 22px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; border-radius: 50%; }
.g h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.3; overflow-wrap: anywhere; }
.g h3 a:hover { color: var(--pc); }
.g-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.g-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.g-stats span { display: inline-flex; align-items: center; gap: 4px; }
.tpill { display: inline-block; background: var(--ps); color: var(--pc); font-weight: 700; font-size: 11.5px; border-radius: 6px; padding: 1px 7px; }
.cpill { display: inline-block; background: var(--bg); color: #3d5f58; font-weight: 600; font-size: 12px; border-radius: 6px; padding: 1px 7px; }
.cpill:hover { background: var(--brand-soft); color: var(--brand); }
.newb { background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 1px 7px; }
.pin { font-size: 10.5px; font-weight: 800; color: #92400e; background: #fde68a; border-radius: 6px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .04em; }
.g p { margin: 0; color: #3d5f58; font-size: 14px; line-height: 1.5; flex: 1; overflow-wrap: anywhere; }
.acts { display: flex; gap: 8px; margin-top: auto; }
/* Long labels ("Follow Channel") wrap inside the button instead of spilling past its background */
.acts .btn { flex: 1 1 0; padding: 6px 8px; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
.acts .btn-outline { flex: 0.7 1 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12.5px; color: #3d5f58; background: var(--bg); border-radius: 8px; padding: 4px 10px; font-weight: 550; }
a.tag { padding: 5px 10px; }
a.tag:hover { background: var(--brand-soft); color: var(--brand); }
.tag.tp { background: var(--ps); color: var(--pc); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.join { min-height: 40px; }

/* Article cards */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.posts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.post:hover { box-shadow: 0 10px 28px rgba(7, 94, 84, .1); }
.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.thumb.ph { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; text-align: center; padding: 14px; background: linear-gradient(135deg, #075e54, #0b6e63); }
.post .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post small { color: var(--brand); font-weight: 700; font-size: 12px; }
.post-title { font-size: 17px; line-height: 1.35; }
.post-ex { color: var(--muted); font-size: 13.5px; }
.post .read { margin-top: auto; }
.post:hover .read { border-color: var(--brand); color: var(--brand); }

/* Sidebar */
.side .box { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.box-h { margin: 0 0 12px; font-size: 15px; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.list a:last-child { border-bottom: 0; }
.list a:hover { color: var(--brand); }
.list a span { color: var(--muted); font-size: 12px; flex: none; }
.list a .ln { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; font-size: 14px; }
.list a .ln i { color: var(--pc); display: inline-flex; font-style: normal; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: #fff; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.cta { background: linear-gradient(135deg, #075e54, #0d7f58) !important; border: 0 !important; color: #fff; }
.cta .box-h { color: #fff; }
.cta p { font-size: 13.5px; color: #e7f5ef; margin: 0 0 12px; }
.cta .btn { background: #fff; color: var(--brand); }
.sticky { position: sticky; top: 80px; }

/* FAQ and long text */
.faq details { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.prose { font-size: 16.5px; line-height: 1.75; color: #1d3a35; overflow-wrap: anywhere; }
.prose h2 { font-size: 23px; margin: 28px 0 10px; line-height: 1.3; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose img { border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 16px 0; padding: 4px 16px; color: #3d5f58; background: #fff; }
.seo-text { background: #fff; border-radius: var(--radius); padding: 22px; font-size: 15px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.seo-text h2:first-child { margin-top: 0; }

/* Group page */
.detail { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.detail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--pc); }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.detail h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.h1-sub { display: block; font-size: 15px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.detail h2 { font-size: 19px; margin: 26px 0 10px; }
.join-big { width: 100%; min-height: 56px; font-size: 17px; border-radius: 14px; margin: 6px 0 4px; }
.desc { white-space: normal; color: #3d5f58; }
.info { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info th, .info td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.info th { color: var(--muted); font-weight: 500; width: 40%; }
.info a { color: var(--brand); }
.steps { padding-left: 20px; color: #3d5f58; }
.steps li { margin-bottom: 4px; }
/* minmax(0, …) and wrapping text keep all four buttons inside the card on any screen width */
.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.share .btn { min-width: 0; padding: 6px 8px; font-size: 13.5px; white-space: normal; text-align: center; line-height: 1.25; gap: 6px; }
.share .btn svg { flex: none; }
.share .sh-wa { color: var(--wa); }
.share .sh-fb { color: var(--fb); }
.share .sh-rep { color: #9f1239; }
.share .sh-rep:hover { border-color: #9f1239; background: #fff1f2; }

/* Article */
.article { background: #fff; border-radius: var(--radius); padding: 26px; min-width: 0; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.article h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.meta a { color: var(--brand); }
.feature { width: 100%; border-radius: 14px; margin-bottom: 18px; aspect-ratio: 16/9; object-fit: cover; }
.group-table h2 { font-size: 22px; margin: 30px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
.group-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.group-table th { background: var(--bg); text-align: left; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.group-table td { padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.gt-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.gt-name img { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.gt-name a:hover { color: var(--brand); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.form-card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form-card input, .form-card select, .form-card textarea, .search-big input, .search-big select { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; background: #fff; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid #86efac; border-color: var(--brand); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -5000px; }
.preview { display: flex; gap: 12px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 10px; }
.preview img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; }
.preview small { display: block; color: var(--brand); }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-weight: 500; }
.alert.ok { background: #dcfce7; color: #14532d; }
.alert.err { background: #fee2e2; color: #991b1b; }
.netpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.netpick span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; background: var(--ps); color: var(--pc); font-size: 13px; font-weight: 700; text-align: center; }

/* Article extras */
.byline { margin-top: -4px; }
.byline a { color: var(--brand); }
.toc { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.toc-h { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.toc a { color: var(--brand); }
.toc a:hover { text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 80px; }
.callout { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.callout p { margin: 0; flex: 1 1 260px; }

/* Comments */
.comments { margin-top: 24px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.article .comments { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 22px 0 0; }
.comments h2 { margin: 0 0 14px; font-size: 20px; }
.comment-form { display: grid; gap: 12px; margin-bottom: 20px; }
.comment-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.comment-form input, .comment-form textarea, .comment-form select { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.comment-form input:focus, .comment-form textarea:focus, .comment-form select:focus { outline: 2px solid #86efac; border-color: var(--brand); }
.comment-form .btn { justify-self: start; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comment-list li { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.comment-list .avatar { flex: none; }
.c-head { margin: 0 0 2px; }
.c-body { margin: 0; overflow-wrap: anywhere; }
.alert a { text-decoration: underline; }
.search-big { display: flex; gap: 8px; margin-top: 14px; max-width: 640px; }
.search-big select { width: auto; max-width: 190px; }
.center .search-big { margin: 18px auto; }

/* Pager */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; justify-content: center; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span.on, .pager a.nx { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager a.nx:hover { background: var(--brand-dark); color: #fff; }
.pager span.dots { border: 0; background: none; min-width: 0; padding: 0 2px; color: var(--muted); }
.pager span.off { color: var(--muted); border-color: var(--line-soft); }

/* Footer */
.site-foot { background: #073b35; color: #bfe0d6; padding: 44px 0 24px; margin-top: 56px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 24px; }
.foot-h { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-foot a { display: block; padding: 4px 0; font-size: 14px; color: #bfe0d6; }
.site-foot a:hover { color: #fff; }
.logo.light { color: #fff; font-size: 19px; padding: 0; }
.foot-text { color: #bfe0d6; font-size: 14px; max-width: 340px; }
.copy { border-top: 1px solid #0d5048; margin-top: 28px; padding-top: 18px; font-size: 13px; color: #bfe0d6; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; }

@media (max-width: 1100px) {
  .groups.four, .posts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 16px; box-shadow: 0 12px 24px rgba(7, 94, 84, .08); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .menu-btn { display: block; }
  .foot { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  .nav { gap: 6px; height: 58px; }
  .nav-search { display: none; }
  .m-search { display: block; margin-left: auto; }
  .nav .btn-brand { padding: 0 12px; font-size: 13px; min-height: 36px; }
  .menu { top: 58px; }
  .page-pad { padding-top: 16px; }
  .home section { margin-top: 32px; }
  .sec-head h2 { font-size: 19px; }
  .sec-head h2 i { width: 28px; height: 28px; }
  .hero { padding: 26px 16px 18px; border-radius: 18px; margin-top: 12px; }
  .hero h1 { font-size: 25px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hero p { font-size: 14.5px; }
  .hero-search { flex-wrap: wrap; margin-top: 18px; }
  .hero-search select { max-width: none; flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line-soft); height: 40px; }
  .hero-search input { height: 44px; }
  /* Platforms are shown under the search on computers only */
  .ptiles { display: none; }
  .g { padding: 14px; }
  .page-head h1 { font-size: 23px; }
  .groups.four, .posts.four { grid-template-columns: minmax(0, 1fr); }
  .cats.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo { grid-template-columns: minmax(0, 1fr); }
  .sp .btn { padding: 0 14px; }
  .pager .far { display: none; }
  .two { grid-template-columns: 1fr; }
  .detail, .article { padding: 16px; }
  /* Mobile: icon stays beside the name, not a big picture on its own row */
  .detail-head { gap: 14px; align-items: flex-start; }
  .avatar.xl { width: 62px; height: 62px; font-size: 21px; border-radius: 18px; }
  .detail h1 { font-size: 21px; }
  .h1-sub { font-size: 14px; }
  .share .btn { font-size: 13px; }
  .share .sh-on { display: none; }
  /* Icon beside the title, the intro text below across the full width */
  .page-head.with-icon { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .page-head.with-icon > div { display: contents; }
  .page-head.with-icon h1 { margin: 0; }
  .page-head.with-icon p, .page-head.with-icon .search-big { grid-column: 1 / -1; }
  .ph-icon { width: 44px; height: 44px; border-radius: 12px; }
  .ph-icon svg { width: 22px; height: 22px; }
  .search-big { flex-wrap: wrap; }
  .search-big select { max-width: none; flex: 1 1 100%; }
  .group-table table { min-width: 0; }
  .group-table th:nth-child(3), .group-table td:nth-child(3) { display: none; }
  .group-table th, .group-table td { padding: 8px; }
  .foot { grid-template-columns: 1fr; }
  .netpick { grid-template-columns: minmax(0, 1fr); }
}
/* Very small phones (320–380px): the logo, Submit button and menu button must share one row */
@media (max-width: 440px) {
  .nav { gap: 4px; }
  .logo { font-size: 16.5px; gap: 6px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  .hide-xs { display: none; }
}
/* 320–360px phones: the logo icon is dropped so logo, search, Submit and menu fit on one row */
@media (max-width: 360px) {
  .logo .logo-mark { display: none; }
  .logo { font-size: 15.5px; }
  .nav .btn-brand { padding: 0 10px; }
  .m-search, .menu-btn { padding: 4px; }
}
