/*
Theme Name: Southern Cloud Works
Theme URI: https://southerncloudworks.com.au/
Author: Southern Cloud Works
Author URI: https://southerncloudworks.com.au/
Description: A fast, responsive technology-blog theme inspired by the Southern Cloud Works visual direction. Built for WordPress 7 with Gutenberg support, featured posts, category exploration, search, custom logo, menus and Customizer-managed homepage copy.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: southern-cloud-works
Tags: blog, news, technology, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --scw-bg: #f5f7fa;
  --scw-surface: #ffffff;
  --scw-ink: #08172f;
  --scw-muted: #647184;
  --scw-line: #dfe5ec;
  --scw-navy: #071733;
  --scw-navy-2: #0b1e42;
  --scw-aqua: #18c9b5;
  --scw-aqua-dark: #0b9e93;
  --scw-aqua-soft: #e8fbf8;
  --scw-shadow: 0 18px 45px rgba(7, 23, 51, .08);
  --scw-radius: 10px;
  --scw-content: 1110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 6%, rgba(24,201,181,.045), transparent 21rem),
    var(--scw-bg);
  color: var(--scw-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--scw-aqua-dark); }
button, input, textarea, select { font: inherit; }

.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;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #111;
  display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 16px;
  top: 8px; width: auto; z-index: 100000;
}

.scw-container { width: min(calc(100% - 40px), var(--scw-content)); margin-inline: auto; }
.scw-section { padding: 68px 0; }
.scw-section--tight { padding: 42px 0; }
.scw-eyebrow {
  color: var(--scw-aqua-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .71rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
.scw-section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--scw-line); padding-bottom: 12px; margin-bottom: 24px;
}
.scw-section-head h2 {
  margin: 0; font: 800 .78rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .2em; text-transform: uppercase;
}
.scw-section-link { font-size: .78rem; font-weight: 700; color: #35445a; }
.scw-section-link::after { content: " →"; }

/* Header */
.site-header { background: rgba(245,247,250,.94); border-bottom: 1px solid rgba(223,229,236,.8); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(16px); }
.scw-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.scw-brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.scw-brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: var(--scw-aqua-dark); font-weight: 900; font-family: ui-monospace, monospace; }
.scw-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.scw-brand-copy strong { font-size: .82rem; letter-spacing: -.02em; }
.scw-brand-copy span { color: var(--scw-aqua-dark); font-size: .72rem; font-weight: 800; }
.custom-logo { max-height: 42px; width: auto; }
.custom-logo-link { display: flex; align-items: center; }
.scw-nav-wrap { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu a { position: relative; display: block; padding: 25px 0 22px; font-size: .82rem; color: #344157; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--scw-ink); }
.primary-menu .current-menu-item > a::after, .primary-menu a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; background: var(--scw-aqua);
}
.scw-search-toggle, .scw-menu-toggle {
  width: 38px; height: 38px; border: 0; background: transparent; color: var(--scw-ink); cursor: pointer; border-radius: 7px;
}
.scw-search-toggle:hover, .scw-menu-toggle:hover { background: #eaf0f5; }
.scw-menu-toggle { display: none; }
.scw-search-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--scw-line); box-shadow: var(--scw-shadow); }
.scw-search-panel.is-open { display: block; }
.scw-search-panel .search-form { padding: 18px 0; display: flex; gap: 8px; }
.search-field { width: 100%; border: 1px solid #cad4df; background: #fff; padding: 12px 14px; border-radius: 6px; outline: none; }
.search-field:focus { border-color: var(--scw-aqua-dark); box-shadow: 0 0 0 3px rgba(24,201,181,.12); }
.search-submit { border: 0; background: var(--scw-navy); color: #fff; border-radius: 6px; padding: 11px 17px; font-weight: 750; cursor: pointer; }

/* Hero */
.scw-hero { padding: 58px 0 78px; }
.scw-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; }
.scw-hero h1 { margin: 10px 0 18px; max-width: 620px; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .91; letter-spacing: -.065em; font-weight: 900; }
.scw-hero p { max-width: 560px; margin: 0 0 24px; color: var(--scw-muted); font-size: 1.04rem; }
.scw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scw-button { display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 6px; font-size: .84rem; font-weight: 780; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease; }
.scw-button:hover { transform: translateY(-1px); }
.scw-button--primary { color: #fff; background: var(--scw-navy); box-shadow: 0 8px 18px rgba(7,23,51,.13); }
.scw-button--primary:hover { color: #fff; background: #0a2048; }
.scw-button--secondary { background: #fff; border-color: #d1dae5; }
.scw-hero-art { position: relative; width: 100%; min-width: 0; }
.scw-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    object-fit: contain;
   /* padding: 25px 50px;*/
    background: #fff;
    border-radius: 14px;
    box-shadow: 10px 12px 0 #d7eeeb, 0 30px 80px rgba(7,23,51,.08);
}
.scw-art-label { position: absolute; left: -12px; bottom: -13px; background: #fff; padding: 9px 14px; border-radius: 7px; box-shadow: 0 8px 25px rgba(7,23,51,.12); font: 700 .64rem/1.1 ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: #566477; }
.scw-art-label::before { content:""; width: 6px; height: 6px; background: var(--scw-aqua); border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 4px rgba(24,201,181,.14); }

/* Cards */
.scw-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scw-card { background: var(--scw-surface); border: 1px solid #dbe2ea; border-radius: var(--scw-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.scw-card:hover { transform: translateY(-2px); box-shadow: var(--scw-shadow); }
.scw-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.02fr .98fr; }
.scw-card-media { min-height: 220px; background: var(--scw-navy); overflow: hidden; }
.scw-card--lead .scw-card-media { min-height: 320px; }
.scw-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.scw-card:hover .scw-card-media img { transform: scale(1.015); }
.scw-card-body { padding: 24px; display: flex; flex-direction: column; }
.scw-card--lead .scw-card-body { justify-content: center; padding: 34px; }
.scw-card-kicker { color: var(--scw-aqua-dark); font: 800 .68rem/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .17em; margin-bottom: 10px; }
.scw-card-title { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 850; }
.scw-card--lead .scw-card-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.scw-card-excerpt { margin: 0 0 18px; color: var(--scw-muted); font-size: .88rem; line-height: 1.6; }
.scw-card-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #778395; font-size: .72rem; }
.scw-read-more { display: inline-flex; margin-top: 17px; font-size: .78rem; font-weight: 800; }
.scw-read-more::after { content: " →"; margin-left: 5px; }
.scw-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scw-post-grid .scw-card-media { aspect-ratio: 1.54 / 1; min-height: 0; }
.scw-post-grid .scw-card-body { padding: 18px; }
.scw-post-grid .scw-card-title { font-size: 1rem; }
.scw-post-grid .scw-card-excerpt { font-size: .8rem; }

/* Newsletter */
.scw-news-band { background: var(--scw-navy); color: #fff; padding: 27px 0; }
.scw-news-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.scw-news-copy { display: flex; gap: 15px; align-items: center; }
.scw-news-icon { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: var(--scw-aqua); }
.scw-news-copy h3 { margin: 0 0 2px; font-size: .98rem; }
.scw-news-copy p, .scw-news-status { margin: 0; color: #aebbd0; font-size: .78rem; }

/* Topics */
.scw-topic-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.scw-topic { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 13px; border: 1px solid #d7dfe8; background: #fff; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.scw-topic:hover { border-color: var(--scw-aqua); color: var(--scw-ink); }
.scw-topic-icon { color: var(--scw-aqua-dark); font-family: ui-monospace, monospace; font-weight: 900; }
.scw-topic-count { margin-left: auto; min-width: 24px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #f0f4f7; color: #788598; font-size: .68rem; }

/* About */
.scw-about { background: #f0f3f7; border-top: 1px solid #e2e7ed; }
.scw-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.scw-about h2 { margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .98; letter-spacing: -.05em; }
.scw-about p { color: var(--scw-muted); }
.scw-notice { margin-top: 22px; border: 1px solid #a8ded7; background: #e7f8f6; padding: 12px 14px; border-radius: 7px; font-size: .8rem; color: #235654; }
.scw-category-panel { background: #fff; border: 1px solid #d7dee7; border-radius: 10px; padding: 22px; }
.scw-category-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e5e9ee; font-size: .78rem; }
.scw-category-row:last-child { border-bottom: 0; }
.scw-category-name { display: flex; gap: 8px; align-items: center; font-weight: 720; }
.scw-category-name::before { content: "⌁"; color: var(--scw-aqua-dark); font-weight: 900; }
.scw-category-count { color: #7b8798; font-family: ui-monospace, monospace; font-size: .7rem; }
.scw-category-bar { grid-column: 1 / -1; height: 3px; background: #edf2f5; }
.scw-category-bar span { display: block; height: 100%; background: var(--scw-aqua-dark); }

/* Footer */
.site-footer { background: var(--scw-navy); color: #fff; padding: 52px 0 24px; }
.scw-footer-grid { display: grid; grid-template-columns: 1.7fr .7fr .7fr 1fr; gap: 56px; }
.site-footer .scw-brand-mark { background: #fff; }
.site-footer .scw-brand-copy strong { color: #fff; }
.scw-footer-intro { margin-top: 16px; max-width: 315px; color: #a9b7ca; font-size: .78rem; }
.scw-footer-title { margin: 0 0 16px; font: 800 .66rem/1 ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: #dbe5f2; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a, .scw-footer-links a, .scw-footer-note { color: #a9b7ca; font-size: .76rem; }
.footer-menu a:hover, .scw-footer-links a:hover { color: #fff; }
.scw-footer-links { display: flex; flex-direction: column; gap: 8px; }
.scw-socials { display: flex; gap: 8px; margin-top: 17px; }
.scw-socials a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #afbed1; font-size: .68rem; }
.scw-footer-bottom { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #8595ab; font-size: .65rem; }

/* Content */
.scw-page-head { padding: 56px 0 28px; }
.scw-page-head h1 { margin: 8px 0 10px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.055em; }
.scw-page-head p { max-width: 720px; color: var(--scw-muted); }
.scw-content-wrap { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 54px; align-items: start; }
.scw-article { background: #fff; border: 1px solid var(--scw-line); border-radius: 10px; overflow: hidden; }
.scw-article-header { padding: 38px 42px 20px; }
.scw-article-header h1 { margin: 9px 0 14px; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: .98; letter-spacing: -.05em; }
.scw-article-meta { color: #7a8696; font-size: .78rem; display: flex; gap: 14px; flex-wrap: wrap; }
.scw-article-featured img { display: block; width: 100%; max-height: 580px; object-fit: cover; }
.entry-content { padding: 34px 42px 46px; }
.entry-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 980px; }
.entry-content > .alignfull { max-width: none; margin-left: -42px; margin-right: -42px; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.15; letter-spacing: -.025em; margin-top: 1.8em; }
.entry-content h2 { font-size: 2rem; }
.entry-content a { color: var(--scw-aqua-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.entry-content pre { padding: 18px; border-radius: 8px; overflow-x: auto; background: #071733; color: #dce8f7; }
.entry-content blockquote { border-left: 3px solid var(--scw-aqua); margin: 26px auto; padding: 8px 20px; color: #4b586a; }
.scw-sidebar { position: sticky; top: 100px; }
.scw-sidebar-card { background: #fff; border: 1px solid var(--scw-line); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.scw-sidebar-card h2 { margin: 0 0 14px; font-size: .72rem; font-family: ui-monospace, monospace; letter-spacing: .15em; text-transform: uppercase; }
.scw-pagination { margin-top: 34px; }
.scw-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.scw-pagination a, .scw-pagination span { border: 1px solid #d7dfe8; background: #fff; padding: 8px 12px; border-radius: 6px; font-size: .8rem; }
.scw-pagination .current { background: var(--scw-navy); color: #fff; border-color: var(--scw-navy); }
.scw-empty { padding: 70px 0 100px; text-align: center; }
.scw-empty h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .9; margin: 0 0 18px; letter-spacing: -.07em; }

/* Comments */
.comments-area { margin-top: 30px; background: #fff; border: 1px solid var(--scw-line); border-radius: 10px; padding: 28px; }
.comment-list { padding-left: 20px; }
.comment-body { margin-bottom: 22px; }
.comment-meta { font-size: .78rem; color: #657287; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid #cfd8e2; border-radius: 6px; padding: 11px 12px; }
.form-submit .submit { border: 0; background: var(--scw-navy); color: #fff; border-radius: 6px; padding: 11px 16px; cursor: pointer; }

@media (max-width: 940px) {
  .scw-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .scw-hero-art { max-width: 680px; }
  .scw-post-grid { grid-template-columns: repeat(2, 1fr); }
  .scw-topic-list { grid-template-columns: repeat(2, 1fr); }
  .scw-footer-grid { grid-template-columns: 1fr 1fr; }
  .scw-content-wrap { grid-template-columns: 1fr; }
  .scw-sidebar { position: static; }
}
@media (max-width: 760px) {
  .scw-container { width: min(calc(100% - 28px), var(--scw-content)); }
  .scw-menu-toggle { display: inline-grid; place-items: center; }
  .primary-menu { display: none; position: absolute; left: 14px; right: 14px; top: 66px; background: #fff; border: 1px solid var(--scw-line); border-radius: 8px; box-shadow: var(--scw-shadow); padding: 8px; }
  .primary-menu.is-open { display: block; }
  .primary-menu a { padding: 12px 10px; }
  .primary-menu .current-menu-item > a::after, .primary-menu a:hover::after { display: none; }
  .scw-brand { min-width: 0; }
  .scw-brand-copy { display: none; }
  .scw-hero { padding-top: 42px; }
  .scw-hero h1 { font-size: clamp(2.8rem, 14vw, 4.7rem); }
  .scw-card--lead { grid-template-columns: 1fr; }
  .scw-card--lead .scw-card-media { min-height: 250px; }
  .scw-post-grid { grid-template-columns: 1fr; }
  .scw-news-inner, .scw-news-copy { align-items: flex-start; }
  .scw-news-inner { flex-direction: column; gap: 12px; }
  .scw-about-grid, .scw-footer-grid { grid-template-columns: 1fr; }
  .scw-topic-list { grid-template-columns: 1fr; }
  .scw-footer-grid { gap: 30px; }
  .scw-footer-bottom { flex-direction: column; }
  .scw-article-header, .entry-content { padding-left: 22px; padding-right: 22px; }
  .entry-content > .alignfull { margin-left: -22px; margin-right: -22px; }
}

/* Enhanced archives */
.scw-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--scw-line);
  background:
    radial-gradient(circle at 13% 4%, rgba(24,201,181,.11), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(7,23,51,.055), transparent 26rem),
    linear-gradient(180deg, #f7f9fb 0%, #f3f6f9 100%);
}
.scw-archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: radial-gradient(rgba(7,23,51,.16) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to right, #000 0%, transparent 58%);
}
.scw-archive-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr);
  gap: 74px;
  align-items: center;
}
.scw-archive-intro h1 {
  margin: 12px 0 16px;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 900;
}
.scw-archive-description {
  max-width: 720px;
  margin: 0;
  color: var(--scw-muted);
  font-size: 1.02rem;
}
.scw-archive-description p { margin: 0; }
.scw-archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.scw-archive-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #536176;
  font-size: .74rem;
  backdrop-filter: blur(8px);
}
.scw-archive-stats strong { color: var(--scw-ink); font-size: .8rem; }
.scw-archive-panel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(24,201,181,.12), transparent 45%),
    var(--scw-navy);
  color: #fff;
  box-shadow: 0 26px 65px rgba(7,23,51,.13);
}
.scw-archive-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -56px;
  top: -58px;
  border: 1px solid rgba(24,201,181,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(24,201,181,.04), 0 0 0 56px rgba(24,201,181,.025);
}
.scw-archive-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9cadc2;
  font: 800 .63rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}
.scw-archive-panel-code {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--scw-aqua);
  letter-spacing: 0;
}
.scw-archive-panel h2 {
  position: relative;
  z-index: 1;
  margin: 28px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.scw-archive-panel > p {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  max-width: 330px;
  color: #aebbd0;
  font-size: .79rem;
}
.scw-archive-panel-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.scw-archive-panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #c6d2e2;
  font-size: .69rem;
}
.scw-archive-panel-links a:hover,
.scw-archive-panel-links a.is-current {
  border-color: rgba(24,201,181,.52);
  background: rgba(24,201,181,.1);
  color: #fff;
}
.scw-archive-panel-links small {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #8fa2ba;
  font-size: .58rem;
}
.scw-archive-topics {
  border-bottom: 1px solid var(--scw-line);
  background: rgba(255,255,255,.68);
}
.scw-archive-topic-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.scw-archive-topic-label {
  flex: 0 0 auto;
  color: #6d798b;
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}
.scw-archive-topic-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px;
  scrollbar-width: thin;
}
.scw-archive-topic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #d8e0e8;
  border-radius: 999px;
  background: #fff;
  color: #4e5c70;
  font-size: .7rem;
  font-weight: 720;
}
.scw-archive-topic:hover,
.scw-archive-topic.is-current {
  border-color: var(--scw-aqua);
  color: var(--scw-ink);
}
.scw-archive-topic.is-current { background: var(--scw-aqua-soft); }
.scw-archive-topic span {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0f4f7;
  color: #778598;
  font-size: .6rem;
}
.scw-archive-content { padding: 54px 0 76px; }
.scw-archive-section-head { margin-bottom: 26px; }
.scw-archive-count {
  color: #7d8999;
  font: 700 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.scw-archive-lead { margin-bottom: 18px; }
.scw-archive-lead .scw-card--lead { min-height: 360px; }
.scw-archive-lead .scw-card--lead .scw-card-media { min-height: 360px; }
.scw-archive-post-grid { margin-top: 18px; }
.scw-archive-content .scw-card { box-shadow: 0 8px 24px rgba(7,23,51,.035); }
.scw-card-media { display: block; }
.scw-archive-empty {
  padding: 70px 24px;
  border: 1px dashed #cdd7e2;
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  text-align: center;
}
.scw-archive-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--scw-navy);
  color: var(--scw-aqua);
  font: 800 .85rem/1 ui-monospace, monospace;
}
.scw-archive-empty h2 { margin: 0 0 8px; font-size: 1.5rem; }
.scw-archive-empty p { margin: 0 0 22px; color: var(--scw-muted); }

@media (max-width: 940px) {
  .scw-archive-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .scw-archive-panel { min-height: 0; }
}
@media (max-width: 760px) {
  .scw-archive-hero { padding: 46px 0 36px; }
  .scw-archive-intro h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .scw-archive-topic-inner { align-items: flex-start; flex-direction: column; gap: 2px; padding-top: 14px; padding-bottom: 10px; }
  .scw-archive-topic-list { width: 100%; }
  .scw-archive-panel { padding: 22px; }
  .scw-archive-panel-links { grid-template-columns: 1fr; }
  .scw-archive-lead .scw-card--lead,
  .scw-archive-lead .scw-card--lead .scw-card-media { min-height: 0; }
}

/* ============================================================
   Homepage refinement — v1.2
   Tuned to closely match the supplied Southern Cloud Works mockup.
   ============================================================ */
.home .site-content { overflow: hidden; }
.home .scw-container { width: min(calc(100% - 40px), 1040px); }
.home .scw-hero { padding: 46px 0 66px; }
.home .scw-hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
}
.home .scw-hero-copy { padding-top: 2px; }
.home .scw-hero h1 {
  max-width: 500px;
  margin: 11px 0 14px;
  font-size: clamp(3.05rem, 5.05vw, 4.45rem);
  line-height: .92;
  letter-spacing: -.058em;
}
.home .scw-hero p {
  max-width: 470px;
  margin-bottom: 21px;
  font-size: .92rem;
  line-height: 1.55;
}
.home .scw-hero-art { width: 100%; max-width: 520px; justify-self: end; }
.home .scw-hero-art img { border-radius: 10px; box-shadow: 8px 9px 0 #d9eeeb, 0 22px 52px rgba(7,23,51,.08); }
.home .scw-art-label { left: -9px; bottom: -11px; padding: 8px 12px; font-size: .57rem; }
.home .scw-actions { gap: 9px; }
.home .scw-button { padding: 10px 14px; font-size: .76rem; border-radius: 5px; }

.home .scw-featured { padding: 44px 0 56px; }
.home .scw-section-head { margin-bottom: 20px; padding-bottom: 10px; }
.home .scw-featured-grid { gap: 14px; }
.home .scw-featured-grid--count-1 { grid-template-columns: 1fr; }
.home .scw-featured-grid--count-1 .scw-card--lead { grid-column: 1; }
.home .scw-featured-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .scw-featured-grid--count-2 .scw-card { grid-column: auto; }

.home .scw-card { border-radius: 8px; box-shadow: 0 4px 14px rgba(7,23,51,.018); }
.home .scw-card--lead {
  grid-template-columns: 1fr 1fr;
  min-height: 290px;
}
.home .scw-card--lead .scw-card-media { min-height: 290px; }
.home .scw-card--lead .scw-card-body { padding: 28px 30px; }
.home .scw-card--lead .scw-card-title { font-size: clamp(1.45rem, 2.35vw, 1.95rem); }
.home .scw-card-media { min-height: 208px; }
.home .scw-card-body { padding: 17px 18px 18px; }
.home .scw-card-title { font-size: .98rem; line-height: 1.18; }
.home .scw-card-excerpt { margin-bottom: 14px; font-size: .76rem; line-height: 1.52; }
.home .scw-card-kicker { margin-bottom: 7px; font-size: .61rem; }
.home .scw-card-meta { font-size: .64rem; }
.home .scw-read-more { margin-top: 12px; font-size: .71rem; }

.home .scw-news-band { padding: 22px 0; }
.home .scw-news-icon { width: 36px; height: 36px; }
.home .scw-news-copy { gap: 12px; }
.home .scw-news-copy h3 { font-size: .86rem; }
.home .scw-news-copy p,
.home .scw-news-status { font-size: .69rem; }

.home .scw-latest { padding: 48px 0 54px; }
.home .scw-post-grid { gap: 14px; }
.home .scw-post-grid .scw-card-media { aspect-ratio: 1.48 / 1; }
.home .scw-post-grid .scw-card-body { padding: 15px 16px 16px; }
.home .scw-post-grid .scw-card-title { font-size: .9rem; }
.home .scw-post-grid .scw-card-excerpt { font-size: .73rem; }

.home .scw-topics { padding: 34px 0 48px; }
.home .scw-topic-list { gap: 8px; }
.home .scw-topic { min-height: 36px; padding: 7px 11px; font-size: .72rem; }
.home .scw-topic-count { min-width: 20px; height: 20px; font-size: .61rem; }

.home .scw-about { padding: 56px 0 60px; }
.home .scw-about-grid { gap: 56px; align-items: center; }
.home .scw-about h2 { max-width: 470px; margin: 11px 0 14px; font-size: clamp(2.15rem, 4.1vw, 3rem); }
.home .scw-about p { max-width: 510px; margin-top: 0; font-size: .82rem; }
.home .scw-notice { margin-top: 18px; padding: 10px 12px; font-size: .7rem; }
.home .scw-about-link { display: inline-flex; margin-top: 17px; font-size: .72rem; font-weight: 800; }
.home .scw-category-panel { padding: 19px 22px; }
.home .scw-category-row { padding: 7px 0; font-size: .71rem; }
.home .scw-category-count { font-size: .62rem; }
.home .scw-category-browse { display: inline-flex; margin-top: 13px; font-size: .68rem; font-weight: 800; }

.scw-home-empty {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 28px 30px;
  border: 1px dashed #cdd7e2;
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  color: var(--scw-muted);
  font-size: .82rem;
}
.scw-home-empty strong { color: var(--scw-ink); }

@media (max-width: 940px) {
  .home .scw-hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .home .scw-hero h1 { font-size: clamp(2.7rem, 6vw, 3.9rem); }
  .home .scw-about-grid { gap: 34px; }
}
@media (max-width: 760px) {
  .home .scw-container { width: min(calc(100% - 28px), 1040px); }
  .home .scw-hero { padding: 36px 0 52px; }
  .home .scw-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .home .scw-hero h1 { max-width: 620px; font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .home .scw-hero-art { width: 100%; max-width: 600px; justify-self: start; }
  .home .scw-card--lead { grid-template-columns: 1fr; }
  .home .scw-card--lead .scw-card-media { min-height: 230px; }
  .home .scw-featured-grid { grid-template-columns: 1fr; }
  .home .scw-featured-grid .scw-card--lead { grid-column: auto; }
  .home .scw-card-media { min-height: 220px; }
  .home .scw-about-grid { gap: 28px; }
}
