/*
Theme Name: Ruang Warta
Author: Ruang Warta Development
Description: Portal berita editorial Indonesia, classic theme dengan dukungan block editor.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
License: GNU General Public License v2 or later
Text Domain: ruang-warta
*/
:root {
    --ink:#132b40;
    --accent:#bd342b;
    --paper:#fff;
    --muted:#526171;
    --line:#dce2e7;
    --surface:#f4f6f8;
    --serif:Georgia,'Times New Roman',serif;
    --sans:'Segoe UI',system-ui,sans-serif;
    --scroll-thumb:#526171;
    --scroll-track:#f4f6f8;
    --scroll-hover:#132b40;
}
* {
    box-sizing:border-box;
    scrollbar-color:var(--scroll-thumb) var(--scroll-track);
    scrollbar-width:auto;
}
html {
    scroll-behavior:smooth;
    scrollbar-gutter:stable;
}
body {
    margin:0;
    color:var(--ink);
    background:var(--paper);
    font-family:var(--sans);
    font-size:16px;
    line-height:1.6;
}
a {
    color:inherit;
    text-decoration:none;
}
a:hover {
    color:var(--accent);
}
button,a,input,textarea {
    touch-action:manipulation;
}
button {
    cursor:pointer;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:3px;
}
img {
    display:block;
    max-width:100%;
    height:auto;
}
svg {
    flex-shrink:0;
}
h1,h2,h3,p {
    margin-top:0;
}
h1,h2,h3 {
    font-family:var(--serif);
    line-height:1.18;
}
ul,ol {
    padding-left:1.3em;
}
button,input,textarea {
    font:inherit;
}
button:disabled {
    cursor:not-allowed;
    opacity:.6;
}
input,textarea {
    border:1px solid #8995a0;
    background:#fff;
    color:var(--ink);
    max-width:100%;
    padding:12px;
}
textarea {
    resize:none;
    min-height:180px;
    width:100%;
}
input[type=checkbox] {
    width:auto;
}
::selection {
    background:#dce8f1;
    color:var(--ink);
}
::-webkit-scrollbar {
    width:12px;
    height:12px;
}
::-webkit-scrollbar-track {
    background:var(--scroll-track);
}
::-webkit-scrollbar-thumb {
    background:var(--scroll-thumb);
    border:3px solid var(--scroll-track);
}
::-webkit-scrollbar-thumb:hover {
    background:var(--scroll-hover);
}
.container {
    width:min(1240px,calc(100% - 80px));
    margin-inline:auto;
}
.screen-reader-text,.skip-link:not(:focus) {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.skip-link:focus {
    position:fixed;
    left:12px;
    top:12px;
    padding:12px 20px;
    z-index:10000;
    background:var(--ink);
    color:#fff;
}
.demo-notice {
    text-align:center;
    padding:7px 20px;
    font-size:12px;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    color:var(--muted);
}
.utility {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding-block:12px;
    font-size:12px;
    border-bottom:1px solid var(--line);
}
.masthead {
    text-align:center;
    padding:21px 0 25px;
}
.brand {
    font:700 clamp(38px,5.3vw,68px)/1.1 var(--serif);
    text-transform:uppercase;
    letter-spacing:-2.4px;
}
.brand span,.footer-brand span {
    color:var(--accent);
}
.masthead p {
    font:15px/1.6 var(--serif);
    letter-spacing:1.2px;
    margin:7px 0 0;
}
.nav-border {
    border-block:1px solid var(--line);
    border-bottom:2px solid var(--ink);
}
.navigation {
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    gap:24px;
}
.menu {
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:0 30px;
    margin:0;
    padding:0;
}
.menu a {
    display:block;
    padding:15px 0;
    font-size:14px;
    font-weight:600;
}
.menu .current-menu-item>a,.menu .current_page_item>a {
    color:var(--accent);
    box-shadow:inset 0 -3px var(--accent);
}
.search-link {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
}
.menu-toggle {
    display:none;
    border:0;
    background:transparent;
    color:var(--ink);
    align-items:center;
    gap:8px;
    min-height:48px;
    padding:0;
}
.main-content {
    padding-block:26px 64px;
    min-height:50vh;
}
.breaking {
    display:flex;
    gap:20px;
    align-items:center;
    padding:0 0 16px;
    margin-bottom:24px;
    border-bottom:1px solid var(--line);
    font-size:14px;
}
.breaking strong {
    background:var(--accent);
    color:#fff;
    text-transform:uppercase;
    white-space:nowrap;
    padding:6px 12px;
    font-size:12px;
    letter-spacing:.4px;
}
.breaking ul {
    display:flex;
    flex-wrap:wrap;
    gap:8px 24px;
    list-style:none;
    margin:0;
    padding:0;
}
.breaking li {
    max-width:100%;
}
.lead-grid,.content-grid {
    display:grid;
    grid-template-columns:minmax(0,2.12fr) minmax(260px,1fr);
    gap:40px;
}
.lead-grid {
    padding-bottom:32px;
    margin-bottom:30px;
    border-bottom:1px solid var(--line);
}
.story {
    min-width:0;
}
.story-image {
    display:block;
    overflow:hidden;
    background:var(--surface);
}
.story-image img {
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
}
.story-lead .story-image {
    margin-bottom:18px;
}
.category-label {
    font:700 11px/1.6 var(--sans);
    letter-spacing:1.2px;
    text-transform:uppercase;
    color:var(--accent);
    display:inline-block;
    margin-bottom:8px;
}
.story h2 {
    margin:0 0 12px;
    font-size:25px;
    letter-spacing:-.45px;
    overflow-wrap:anywhere;
}
.story-lead h2 {
    font-size:clamp(30px,3vw,42px);
    line-height:1.1;
    letter-spacing:-1px;
}
.story-excerpt {
    color:var(--muted);
    font-size:15px;
    line-height:1.6;
    margin-bottom:12px;
}
.story-lead .story-excerpt {
    font-family:var(--serif);
    font-size:18px;
}
.story-meta {
    display:flex;
    flex-wrap:wrap;
    gap:4px 14px;
    color:var(--muted);
    font-size:11px;
}
.story-meta a {
    text-decoration:underline;
    text-underline-offset:3px;
}
.section-title {
    font:700 23px/1.3 var(--serif);
    letter-spacing:-.5px;
    border-bottom:1px solid #8995a0;
    padding-bottom:12px;
    margin:0 0 20px;
    display:flex;
    gap:15px;
    align-items:center;
    justify-content:space-between;
}
.section-title>a {
    font:600 12px var(--sans);
    letter-spacing:0;
    color:var(--accent);
}
.latest-rail {
    border-left:1px solid var(--line);
    padding-left:24px;
}
.latest-rail ul {
    list-style:none;
    padding:0;
    margin:0;
}
.latest-rail li {
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:16px;
    padding:18px 0;
    border-bottom:1px solid var(--line);
}
.latest-rail li:first-child {
    padding-top:0;
}
.latest-rail h3 {
    font-size:18px;
    font-weight:400;
    line-height:1.4;
    margin:0;
    overflow-wrap:anywhere;
}
.latest-rail time {
    font-size:10px;
    color:var(--muted);
    line-height:1.6;
}
.latest-rail time span {
    display:block;
    color:var(--accent);
    font-weight:600;
    font-size:12px;
}
.story-row {
    display:flex;
    gap:24px;
    padding-bottom:24px;
    margin-bottom:24px;
    border-bottom:1px solid var(--line);
}
.story-row .story-image {
    flex:0 0 29%;
    align-self:flex-start;
}
.story-row .story-image img {
    aspect-ratio:1.5;
}
.story-row .story-copy {
    flex:1;
    min-width:0;
}
.story-row .story-excerpt {
    font-size:14px;
}
.story-row h2 {
    font-size:24px;
}
.sidebar {
    border-left:1px solid var(--line);
    padding-left:24px;
}
.sidebar section+section {
    margin-top:36px;
}
.section-note {
    font-size:12px;
    color:var(--muted);
    margin-top:-10px;
}
.popular-list {
    counter-reset:news;
    list-style:none;
    padding:0;
}
.popular-list li {
    position:relative;
    padding:14px 0 14px 40px;
    border-bottom:1px solid var(--line);
    counter-increment:news;
}
.popular-list li:before {
    content:counter(news,decimal-leading-zero);
    position:absolute;
    left:0;
    top:14px;
    font:italic 27px var(--serif);
    color:var(--accent);
}
.popular-list h3 {
    font-size:18px;
    font-weight:400;
    line-height:1.4;
    margin:0 0 6px;
}
.popular-list time {
    font-size:11px;
    color:var(--muted);
}
.empty-small {
    font-size:14px;
    color:var(--muted);
    padding:18px 0;
    border-bottom:1px solid var(--line);
}
.category-list {
    list-style:none;
    margin:0;
    padding:0;
}
.category-list li {
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    padding-block:10px;
    font-size:13px;
    color:var(--muted);
}
.category-list a {
    font-weight:600;
    color:var(--ink);
}
.search-form {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    max-width:720px;
}
.search-form input {
    min-width:100px;
    flex:1;
    width:100%;
    font-size:14px;
    min-height:44px;
}
.search-form button {
    font-size:13px;
    min-height:44px;
}
.button,input[type=submit] {
    background:var(--ink);
    color:#fff;
    border:1px solid var(--ink);
    font-weight:600;
    padding:10px 18px;
    cursor:pointer;
}
.button:hover,input[type=submit]:hover {
    background:var(--accent);
    border-color:var(--accent);
    color:#fff;
}
.clear-search {
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--ink);
    padding:8px;
}
.clear-search:hover {
    border-color:var(--ink);
}
[hidden] {
    display:none!important;
}
.pagination {
    margin-top:32px;
}
.nav-links {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.page-numbers {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
    padding:6px 12px;
    border:1px solid var(--line);
    font-size:14px;
}
.page-numbers.current {
    background:var(--ink);
    color:#fff;
}
.archive-header {
    padding:15px 0 32px;
    margin-bottom:32px;
    border-bottom:1px solid var(--line);
}
.archive-header h1 {
    font-size:44px;
    letter-spacing:-1px;
    overflow-wrap:anywhere;
    margin-bottom:16px;
}
.archive-description {
    max-width:720px;
    color:var(--muted);
}
.empty-state {
    padding:32px 0 60px;
    max-width:680px;
}
.empty-state h2 {
    font-size:30px;
}
.empty-state p {
    color:var(--muted);
}
.empty-state .search-form {
    margin-bottom:24px;
}
.text-link {
    color:var(--accent);
    text-decoration:underline;
    text-underline-offset:4px;
    font-size:14px;
    font-weight:600;
}
.breadcrumb {
    display:flex;
    gap:12px;
    align-items:center;
    font-size:12px;
    margin-bottom:24px;
}
.breadcrumb .category-label {
    margin:0;
}
.article-detail {
    max-width:960px;
    margin-inline:auto;
}
.article-header {
    max-width:800px;
    margin:0 auto 30px;
    text-align:center;
}
.article-header h1 {
    font-size:clamp(32px,4vw,54px);
    line-height:1.12;
    letter-spacing:-1.5px;
    overflow-wrap:anywhere;
    margin-bottom:20px;
}
.article-deck {
    font-size:18px;
    color:var(--muted);
}
.article-header .story-meta {
    justify-content:center;
}
.article-feature {
    margin:0 0 32px;
}
.article-feature img {
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
}
.article-feature figcaption {
    font-size:12px;
    color:var(--muted);
    padding-top:10px;
}
.article-body,.article-end,.comments-area,.article-navigation,.article-search {
    max-width:720px;
    margin-inline:auto;
}
.article-body {
    font:20px/1.8 var(--serif);
    overflow-wrap:anywhere;
}
.article-body p {
    margin-bottom:1.3em;
}
.article-body a {
    color:var(--accent);
    text-decoration:underline;
}
.article-body h2 {
    font-size:30px;
    margin-top:1.5em;
}
.article-body h3 {
    font-size:25px;
    margin-top:1.5em;
}
.article-body blockquote {
    border-left:3px solid var(--accent);
    padding-left:24px;
    margin:32px 0;
    font-size:24px;
}
.article-body pre {
    overflow:auto;
    font-size:14px;
    background:var(--surface);
    padding:16px;
}
.article-body table {
    border-collapse:collapse;
    width:100%;
    font-size:16px;
}
.article-body td,.article-body th {
    border:1px solid var(--line);
    padding:8px;
}
.article-body .wp-block-table {
    overflow:auto;
}
.article-body .alignwide {
    width:100%;
}
.article-body .wp-block-image figcaption {
    font:12px/1.5 var(--sans);
    color:var(--muted);
}
.article-end {
    border-block:1px solid var(--line);
    margin-block:32px;
    padding-block:24px;
}
.tags {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    font-size:12px;
    align-items:center;
}
.tags a {
    border:1px solid var(--line);
    padding:5px 10px;
}
.author-note {
    margin-block:24px;
}
.author-note p {
    color:var(--muted);
    font-size:14px;
    margin-bottom:0;
}
.article-navigation {
    margin-block:24px 48px;
}
.post-navigation .nav-links {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    font:20px/1.4 var(--serif);
}
.post-navigation span {
    display:block;
    color:var(--muted);
    font:12px var(--sans);
    margin-bottom:8px;
}
.comments-area {
    margin-block:40px;
}
.comment-list {
    list-style:none;
    padding:0;
}
.comment-body {
    border-bottom:1px solid var(--line);
    padding:20px 0;
}
.comment-metadata {
    font-size:12px;
    color:var(--muted);
}
.comment-form label {
    display:block;
    font-size:14px;
}
.comment-form-cookies-consent {
    display:flex;
    gap:10px;
    align-items:start;
}
.comment-form input:not([type=checkbox]):not([type=submit]) {
    width:100%;
}
.comment-form-cookies-consent label {
    font-size:12px;
}
.comment-reply-title {
    font-size:26px;
}
.comment-form p {
    font-size:14px;
}
.article-search {
    margin-top:48px;
}
.page-detail {
    max-width:800px;
    margin:20px auto 60px;
}
.page-detail>h1 {
    font-size:46px;
}
.not-found {
    max-width:720px;
    margin:40px auto 70px;
}
.not-found h1 {
    font-size:48px;
}
.not-found .search-form {
    margin:30px 0;
}
.site-footer {
    background:var(--ink);
    color:#fff;
    padding:40px 0 20px;
}
.footer-grid {
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr;
    gap:60px;
    padding-bottom:32px;
}
.footer-brand {
    font:700 30px var(--serif);
    letter-spacing:-1px;
    text-transform:uppercase;
}
.footer-grid p {
    font-size:13px;
    color:#d5dfe7;
    margin:12px 0;
    max-width:320px;
}
.footer-grid h2 {
    font:600 12px var(--sans);
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:18px;
}
.footer-grid .menu {
    display:block;
}
.footer-grid .menu a,.footer-grid>div>a:not(.footer-brand) {
    font-size:13px;
    font-weight:400;
    padding:4px 0;
}
.site-footer a:hover {
    color:#fff;
    text-decoration:underline;
}
.footer-bottom {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:space-between;
    border-top:1px solid #456073;
    padding-top:20px;
    font-size:11px;
    color:#d5dfe7;
}
@media(min-width:901px) {
    .story-lead:not(:has(.story-image)) {
        padding-block:24px;
    }
    .story-lead:not(:has(.story-image)) h2 {
        font-size:48px;
    }
}
@media(max-width:1100px) {
    .container {
        width:calc(100% - 48px);
    }
    .menu {
        gap:0 22px;
    }
    .lead-grid,.content-grid {
        gap:24px;
    }
    .latest-rail,.sidebar {
        padding-left:20px;
    }
    .story-row {
        gap:18px;
    }
    .story-row h2 {
        font-size:22px;
    }
}
@media(max-width:900px) {
    .lead-grid,.content-grid {
        grid-template-columns:minmax(0,1fr);
    }
    .latest-rail,.sidebar {
        border:0;
        padding:0;
    }
    .latest-rail {
        margin-top:12px;
    }
    .latest-rail ul {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:0 24px;
    }
    .latest-rail li:first-child {
        padding-top:18px;
    }
    .sidebar {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:24px;
    }
    .sidebar section+section {
        margin-top:0;
    }
    .sidebar section:first-child {
        grid-row:span 2;
    }
    .menu {
        gap:0 20px;
    }
    .footer-grid {
        gap:30px;
    }
    .story-lead h2 {
        font-size:38px;
    }
    .sidebar .search-form input {
        flex-basis:100%;
    }
}
@media(max-width:600px) {
    .container {
        width:calc(100% - 40px);
    }
    .utility {
        font-size:10px;
    }
    .masthead {
        padding-block:22px;
    }
    .brand {
        font-size:38px;
        letter-spacing:-1.8px;
    }
    .masthead p {
        font-size:12px;
        letter-spacing:.3px;
    }
    .navigation {
        justify-content:space-between;
        flex-wrap:wrap;
        gap:0;
    }
    .js .menu-toggle {
        display:flex;
    }
    .navigation nav {
        width:100%;
    }
    .js .navigation nav {
        display:none;
        order:3;
    }
    .js .navigation nav.is-open {
        display:block;
    }
    .navigation .menu {
        justify-content:flex-start;
        gap:0;
        display:grid;
        grid-template-columns:1fr 1fr;
        padding-bottom:12px;
    }
    .navigation .menu a {
        padding:12px 0;
    }
    .navigation .search-link {
        margin-left:auto;
    }
    .main-content {
        padding-block:20px 40px;
    }
    .breaking {
        align-items:flex-start;
        gap:10px;
        flex-direction:column;
        font-size:13px;
    }
    .breaking strong {
        font-size:10px;
    }
    .lead-grid {
        gap:18px;
        padding-bottom:24px;
        margin-bottom:24px;
    }
    .story-lead h2 {
        font-size:30px;
        letter-spacing:-.7px;
    }
    .story-lead .story-excerpt {
        font-size:16px;
    }
    .latest-rail ul {
        grid-template-columns:1fr;
    }
    .latest-rail li {
        padding-block:14px;
        gap:12px;
    }
    .latest-rail h3 {
        font-size:17px;
    }
    .section-title {
        font-size:22px;
    }
    .story-row {
        gap:16px;
        margin-bottom:20px;
        padding-bottom:20px;
    }
    .story-row h2 {
        font-size:21px;
    }
    .story-row .story-image {
        flex-basis:30%;
        margin-top:4px;
    }
    .story-row .story-image img {
        aspect-ratio:1;
    }
    .story-row .story-excerpt {
        display:none;
    }
    .story-meta {
        font-size:10px;
        gap:4px 10px;
    }
    .category-label {
        font-size:10px;
    }
    .sidebar {
        display:block;
    }
    .sidebar section+section {
        margin-top:30px;
    }
    .archive-header h1 {
        font-size:32px;
    }
    .article-header {
        text-align:left;
    }
    .article-header h1 {
        font-size:34px;
        letter-spacing:-.8px;
    }
    .article-header .story-meta {
        justify-content:flex-start;
    }
    .article-deck {
        font-size:16px;
    }
    .article-body {
        font-size:18px;
        line-height:1.8;
    }
    .article-body h2 {
        font-size:26px;
    }
    .article-feature {
        margin-inline:-20px;
    }
    .article-feature figcaption {
        padding-inline:20px;
    }
    .post-navigation .nav-links {
        font-size:18px;
        gap:20px;
    }
    .footer-grid {
        grid-template-columns:1fr 1fr;
        gap:28px;
    }
    .footer-grid>div:first-child {
        grid-column:1/-1;
    }
    .not-found h1 {
        font-size:36px;
    }
    .page-detail>h1 {
        font-size:36px;
    }
    .search-form input {
        font-size:16px;
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }
    *,*:before,*:after {
        animation:none!important;
        transition:none!important;
    }
}
@media(forced-colors:active) {
    * {
        scrollbar-color:auto;
    }
    .button,.page-numbers.current {
        border:1px solid ButtonText;
    }
}
