/*
Theme Name: Rutinitas Ready
Theme URI: https://rutinitas.co.id/
Author: Rutinitas Media Network
Description: Tema WordPress portal berita yang ringan, responsive, secure-by-default, dan langsung siap pakai untuk Rutinitas.co.id tanpa pengaturan wajib.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: rutinitas-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --rt-black: #050505;
  --rt-text: #101010;
  --rt-muted: #8b8b8b;
  --rt-line: #e7e7e7;
  --rt-soft: #f6f6f6;
  --rt-blue: #2563eb;
  --rt-blue-dark: #1746a2;
  --rt-red: #df2029;
  --rt-radius: 4px;
  --rt-container: 1160px;
  --rt-shadow: 0 5px 16px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--rt-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rt-blue); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #111; color: #fff; }

.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; width: 1px;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto;
  background: #fff; color: #000; padding: 10px 14px; left: 8px; top: 8px; z-index: 999999;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.rt-container { width: min(calc(100% - 48px), var(--rt-container)); margin-inline: auto; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-head-top {
  min-height: 112px;
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 210px;
  gap: 24px;
  align-items: center;
  padding-block: 18px;
}
.site-branding { min-width: 0; }
.site-title { margin: 0; font-size: 33px; line-height: 1; font-weight: 950; letter-spacing: -.8px; text-transform: uppercase; }
.site-title a { color: #050505; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: auto; max-width: 190px; max-height: 62px; object-fit: contain; }

.rt-header-ads { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; min-width: 0; }
.rt-header-ad { min-width: 0; }
.rt-header-ad .widget { margin: 0; }
.rt-header-ad img { width: 100%; aspect-ratio: 3.25/1; object-fit: cover; }
.rt-house-banner {
  min-height: 60px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e2e2;
  background: linear-gradient(135deg,#121212,#2a2a2a);
  color: #fff;
}
.rt-house-banner::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -28px;
  top: -22px;
  border: 12px solid rgba(255,255,255,.08);
  transform: rotate(20deg);
}
.rt-house-banner-2 { background: linear-gradient(135deg,#0e3c8f,#2563eb); }
.rt-house-banner-3 { background: linear-gradient(135deg,#613500,#d48700); }
.rt-house-banner span { position: relative; z-index: 1; font-size: 8px; letter-spacing: 1.2px; font-weight: 850; opacity: .8; }
.rt-house-banner strong { position: relative; z-index: 1; font-size: 14px; line-height: 1.05; letter-spacing: -.2px; }
.rt-house-banner small { position: relative; z-index: 1; font-size: 8px; line-height: 1.2; opacity: .75; margin-top: 3px; }
.rt-house-banner:hover { color: #fff; filter: brightness(1.05); }

.rt-search { min-width: 0; }
.rt-search .search-form, .rt-search-page .search-form { display: flex; width: 100%; }
.search-field { min-width: 0; width: 100%; border: 1px solid #dedede; background: #f8f8f8; color: #111; padding: 11px 12px; outline: 0; }
.search-field:focus { border-color: #aaa; background: #fff; box-shadow: inset 0 0 0 1px #aaa; }
.search-submit { border: 0; background: #050505; color: #fff; padding: 0 16px; cursor: pointer; font-weight: 800; }
.search-submit:hover { background: #242424; }

.rt-nav-wrap { background: var(--rt-black); color: #fff; }
.rt-nav-inner { min-height: 50px; display: flex; align-items: center; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display: block; padding: 15px 20px; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; }
.primary-menu > li:first-child > a { padding-left: 0; padding-right: 28px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a { color: #fff; opacity: .72; }
.primary-menu .sub-menu {
  display: none; position: absolute; z-index: 50; top: 100%; left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 8px 0; background: #111; box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 10px 15px; color: #fff; font-size: 14px; font-weight: 700; }
.rt-mobile-nav { display: none; width: 100%; }
.rt-mobile-nav summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 850; }
.rt-mobile-nav summary::-webkit-details-marker { display: none; }
.rt-mobile-nav summary::after { content: "☰"; float: right; }
.rt-mobile-nav[open] summary::after { content: "✕"; }
.rt-mobile-nav .primary-menu { display: block; padding-bottom: 12px; }
.rt-mobile-nav .primary-menu > li > a, .rt-mobile-nav .primary-menu > li:first-child > a { padding: 9px 0; }
.rt-mobile-nav .primary-menu .sub-menu { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 0 16px; }

/* Main */
.site-main { padding-block: 48px 68px; }
.rt-layout { display: grid; grid-template-columns: minmax(0,1fr) 322px; gap: 22px; align-items: start; }
.rt-main-column, .rt-article { min-width: 0; }
.rt-section-title {
  margin: 0 0 14px;
  padding: 7px 10px;
  color: #fff;
  background: var(--rt-black);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.25px;
}
.rt-content-panel { border: 1px solid #ececec; padding: 20px 10px 24px; background: #fff; }

/* Homepage list */
.rt-post-list { display: flex; flex-direction: column; gap: 26px; }
.rt-list-card { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 20px; align-items: start; }
.rt-list-thumb { aspect-ratio: 16/9; overflow: hidden; background: #ededed; }
.rt-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rt-list-card:hover .rt-list-thumb img { transform: scale(1.025); }
.rt-list-body { min-width: 0; }
.rt-list-cat { display: inline-block; margin-bottom: 4px; color: var(--rt-blue); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.rt-list-title { margin: 0 0 6px; font-size: 22px; line-height: 1.17; font-weight: 900; letter-spacing: -.35px; }
.rt-list-title a:hover { color: #111; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rt-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #929292; font-size: 12px; }
.rt-excerpt { margin: 8px 0 0; color: #2b2b2b; line-height: 1.45; font-size: 15px; }

.rt-no-image {
  width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center;
  background: linear-gradient(135deg,#111,#333); color: #fff; font-weight: 950; letter-spacing: 1px;
}

/* Sidebar */
.rt-sidebar { min-width: 0; }
.rt-sidebar .widget { margin: 0 0 22px; }
.rt-sidebar .widget-title { margin: 0 0 12px; padding: 7px 10px; background: #050505; color: #fff; font-size: 20px; line-height: 1.25; font-weight: 900; }
.rt-sidebar ul { list-style: none; margin: 0; padding: 0; }
.rt-sidebar li { margin-bottom: 12px; }
.rt-sidebar-block { margin-bottom: 18px; }
.rt-sidebar-list { padding-top: 2px; }

.rt-feature-card { border-bottom: 1px solid #111; padding-bottom: 18px; margin-bottom: 18px; }
.rt-feature-thumb { display: block; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #eee; }
.rt-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt-feature-overlay { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; background: rgba(0,0,0,.86); color: #fff; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.rt-feature-body h3 { margin: 10px 0 4px; font-size: 18px; line-height: 1.17; font-weight: 900; }
.rt-feature-body p { margin: 0; color: #666; font-size: 13px; line-height: 1.4; }

.rt-side-post { display: grid; grid-template-columns: 136px minmax(0,1fr); gap: 12px; margin-bottom: 16px; align-items: start; }
.rt-side-post-thumb { aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.rt-side-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.rt-side-post:hover .rt-side-post-thumb img { transform: scale(1.03); }
.rt-side-post-title { margin: 0; font-size: 14px; line-height: 1.18; font-weight: 850; }
.rt-side-more { display: inline-block; color: var(--rt-blue); margin-top: 4px; font-size: 12px; }

.rt-mini-promo { padding: 18px; background: #0a0a0a; color: #fff; }
.rt-mini-promo span { display: block; color: #9fbfff; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.rt-mini-promo strong { display: block; margin-top: 2px; font-size: 21px; line-height: 1.15; }
.rt-mini-promo a { display: inline-block; margin-top: 12px; color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* Archive */
.rt-archive-head { margin-bottom: 24px; }
.rt-archive-title { margin: 0 0 5px; font-size: 34px; line-height: 1.12; font-weight: 950; letter-spacing: -.6px; }
.rt-archive-description { color: #555; max-width: 760px; }
.rt-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.rt-card { position: relative; border: 1px solid #e8e8e8; background: #fff; box-shadow: var(--rt-shadow); min-width: 0; display: flex; flex-direction: column; }
.rt-card-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.rt-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rt-card:hover .rt-card-thumb img { transform: scale(1.03); }
.rt-category-badge { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-block; background: #3b82f6; color: #fff; font-size: 10px; font-weight: 900; border-radius: 4px; padding: 4px 10px; text-transform: uppercase; }
.rt-card-body { padding: 18px 20px 10px; flex: 1; }
.rt-card-title { margin: 0 0 10px; font-size: 21px; line-height: 1.16; font-weight: 900; letter-spacing: -.28px; }
.rt-card-excerpt { margin: 0; color: #777; font-size: 14px; line-height: 1.4; }
.rt-card-footer { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid #eee; margin-top: 17px; padding: 12px 20px; color: #999; font-size: 11px; }

/* Single */
.rt-single-layout { display: grid; grid-template-columns: minmax(0,1fr) 322px; gap: 20px; align-items: start; }
.rt-entry-header { margin-bottom: 22px; }
.rt-entry-title { margin: 0 0 12px; font-size: clamp(32px,3.2vw,42px); line-height: 1.02; letter-spacing: -1px; font-weight: 950; max-width: 850px; }
.rt-single-meta { color: #525252; font-size: 12px; }
.rt-single-meta a { color: #333; }
.rt-single-meta a:hover { text-decoration: underline; }
.rt-hero { margin: 0 0 22px; background: #eee; }
.rt-hero img { width: 100%; height: auto; }
.rt-entry-content { font-size: 17px; line-height: 1.6; }
.rt-entry-content > * { max-width: 100%; }
.rt-entry-content p { margin: 0 0 18px; }
.rt-entry-content h2 { margin: 34px 0 13px; font-size: 29px; line-height: 1.2; }
.rt-entry-content h3 { margin: 26px 0 10px; font-size: 23px; line-height: 1.25; }
.rt-entry-content h4 { margin: 22px 0 9px; font-size: 19px; }
.rt-entry-content a { color: var(--rt-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.rt-entry-content ul, .rt-entry-content ol { padding-left: 24px; }
.rt-entry-content blockquote { margin: 25px 0; padding: 6px 0 6px 18px; border-left: 4px solid #111; font-size: 19px; color: #333; }
.rt-entry-content pre { overflow: auto; padding: 16px; background: #111; color: #f8f8f8; border-radius: 4px; }
.rt-entry-content table { width: 100%; border-collapse: collapse; display: block; overflow: auto; }
.rt-entry-content th, .rt-entry-content td { border: 1px solid #ddd; padding: 8px 10px; }
.rt-entry-content iframe { max-width: 100%; }
.rt-social-row { display: flex; gap: 8px; justify-content: flex-end; margin: -8px 0 22px; }
.rt-share { border: 0; width: 50px; height: 50px; display: inline-grid; place-items: center; color: #fff; font-weight: 900; border-radius: 5px; cursor: pointer; }
.rt-share:hover { color: #fff; opacity: .88; }
.rt-share-facebook { background: #4267a9; }
.rt-share-x { background: #111; }
.rt-share-whatsapp { background: #1f9d55; font-size: 11px; }
.rt-share-copy { background: #59636f; }

.rt-related { margin-top: 52px; }
.rt-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.rt-related .rt-card { box-shadow: none; }
.rt-related .rt-card-body { padding: 13px 14px 8px; }
.rt-related .rt-card-title { font-size: 16px; }
.rt-related .rt-card-excerpt { display: none; }
.rt-related .rt-card-footer { display: none; }

/* Pagination */
.navigation.pagination, .page-links, .rt-content-panel > ul.page-numbers { margin-top: 36px; }
.nav-links, ul.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 0; padding: 0; }
.page-numbers a, .page-numbers span, .nav-links .page-numbers { border: 1px solid #ddd; min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; }
.page-numbers .current, .nav-links .page-numbers.current { background: #050505; color: #fff; border-color: #050505; }

/* Search / 404 */
.rt-search-page .search-form { max-width: 620px; }
.rt-search-again { margin-top: 20px; }
.rt-not-found { max-width: 760px; }
.rt-404-code { display: block; color: #eee; font-size: 96px; line-height: .9; font-weight: 950; }
.rt-back-home { display: inline-block; margin-top: 18px; font-weight: 800; }

/* Footer */
.site-footer { margin-top: 0; background: #050505; color: #fff; }
.rt-footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; }
.rt-footer-copy { font-size: 14px; font-weight: 750; }
.rt-footer-brand { font-weight: 950; font-size: 25px; letter-spacing: .2px; text-transform: uppercase; }
.rt-footer-widget { margin-top: 8px; font-size: 13px; opacity: .85; }
.rt-footer-widget .widget { margin: 0; }

/* Core */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: #777; font-size: 13px; }
.sticky { outline: 1px solid #ececec; }
.bypostauthor { display: block; }

@media (max-width: 1080px) {
  .rt-head-top { grid-template-columns: 180px minmax(0,1fr); }
  .rt-search { grid-column: 1 / -1; width: min(100%,430px); justify-self: end; }
  .rt-layout, .rt-single-layout { grid-template-columns: minmax(0,1fr) 290px; }
  .rt-card-grid { gap: 20px; }
}

@media (max-width: 860px) {
  .rt-container { width: min(calc(100% - 30px),var(--rt-container)); }
  .rt-head-top { min-height: auto; grid-template-columns: 1fr; gap: 14px; }
  .site-branding { justify-self: center; }
  .rt-header-ads { width: 100%; }
  .rt-search { grid-column: auto; justify-self: stretch; width: 100%; }
  .rt-desktop-nav { display: none; }
  .rt-mobile-nav { display: block; }
  .rt-layout, .rt-single-layout { grid-template-columns: 1fr; }
  .rt-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rt-sidebar { margin-top: 18px; }
  .rt-single-sidebar { margin-top: 30px; }
  .rt-related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-main { padding-block: 30px 46px; }
  .rt-head-top { padding-block: 16px; }
  .site-title { font-size: 31px; }
  .rt-header-ads { grid-template-columns: 1fr; }
  .rt-header-ad:nth-child(n+2) { display: none; }
  .rt-house-banner { min-height: 54px; }
  .rt-section-title, .rt-sidebar .widget-title { font-size: 19px; }
  .rt-content-panel { border: 0; padding: 0; }
  .rt-post-list { gap: 22px; }
  .rt-list-card { grid-template-columns: 124px minmax(0,1fr); gap: 12px; }
  .rt-list-title { font-size: 17px; line-height: 1.18; }
  .rt-list-cat { font-size: 9px; margin-bottom: 2px; }
  .rt-excerpt { display: none; }
  .rt-meta { font-size: 10px; gap: 5px; }
  .rt-card-grid { grid-template-columns: 1fr; }
  .rt-card-title { font-size: 21px; }
  .rt-entry-title { font-size: 31px; line-height: 1.05; }
  .rt-entry-content { font-size: 16px; line-height: 1.62; }
  .rt-social-row { justify-content: flex-start; margin-top: 0; }
  .rt-share { width: 42px; height: 42px; }
  .rt-related-grid { grid-template-columns: 1fr; }
  .rt-related .rt-card { display: grid; grid-template-columns: 125px 1fr; }
  .rt-related .rt-card-thumb { height: 100%; min-height: 84px; }
  .rt-related .rt-card-body { display: flex; align-items: center; }
  .rt-footer-inner { align-items: flex-start; flex-direction: column; }
  .rt-footer-copy { font-size: 12px; }
}
