/*
Theme Name: KALTIMOKE Child
Theme URI: https://www.kaltimoke.co.id/
Description: Majalahpro child theme with safe editorial styling and inherited theme settings.
Author: KALTIMOKE
Template: majalahpro
Version: 0.3.6
Text Domain: kaltimoke-child
*/

/* KALTIMOKE visual registry v0.3.6. Parent remains untouched. */
:root {
  --kto-ink: #18282d;
  --kto-muted: #56666f;
  --kto-accent: #0b7779;
  --kto-rule: #e2e8ea;
  --kto-paper: #ffffff;
  --kto-page: #f7f9f9;
}
html { scroll-behavior: smooth; }
body {
  color: var(--kto-ink);
  background-color: var(--kto-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--kto-accent);
  outline-offset: 3px;
}

/* Brand/header. Never replace or hide the logo/hamburger. */
.top-header-second { background: var(--kto-paper); border-bottom: 1px solid var(--kto-rule); }
.gmr-topnavwrap { box-shadow: none; }
.gmr-topnavwrap .container { padding-top: 10px; padding-bottom: 10px; }
.gmr-mobilelogo img { display: inline-block; max-width: 100%; height: auto; object-fit: contain; }
.site-header .top-header { border-bottom: 1px solid var(--kto-rule); }
.gmr-mainmenu { font-weight: 700; letter-spacing: .015em; }
.gmr-mainmenu .menu > li > a { font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: .025em; }
.gmr-mainmenu a, .gmr-secondmenu a {
  text-decoration: none;
  overflow-wrap: normal;
  transition: color .18s ease, background-color .18s ease;
}
.gmr-mainmenu a:hover, .gmr-secondmenu a:hover { color: var(--kto-accent); }
.gmr-mainmenu .sub-menu { box-shadow: 0 8px 22px rgba(11, 34, 39, .09); }
.gmr-secondmenuwrap { border-bottom: 1px solid var(--kto-rule); margin-bottom: 14px; }

/* Content columns and responsive images. */
.gmr-content { background-color: var(--kto-paper); }
.gmr-content .container { padding-left: 16px; padding-right: 16px; }
.gmr-content .row { margin-left: -12px; margin-right: -12px; }
.gmr-content [class*="col-md-"] { padding-left: 12px; padding-right: 12px; }
.gmr-content img, .entry-content img, .widget img { max-width: 100%; height: auto; }

/* Main hero first, followed by OKENEWS: module order is set in functions.php.
   Markup verified in parent inc/slider.php: .gmr-owl-carousel then .site-main. */
.home #primary > .gmr-owl-carousel + .site-main {
  margin-top: 26px;
}
.home #primary > .gmr-owl-carousel img { display: block; max-width: 100%; height: auto; }

/* Article cards and news listings. */
.gmr-archive { overflow: hidden; }
.gmr-box-content.gmr-archive {
  padding-top: 19px;
  padding-bottom: 21px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--kto-rule);
}
.gmr-archive .entry-title {
  color: var(--kto-ink);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  transition: color .16s ease;
}
.home article:first-of-type .gmr-archive .entry-title {
  font-size: clamp(21px, 2.05vw, 29px);
  line-height: 1.24;
}
.gmr-archive .entry-title a { color: inherit; text-decoration: none; }
.gmr-archive .entry-title a:hover { color: var(--kto-accent); }
.gmr-archive .entry-content-archive {
  color: #526069;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 7px;
}
.gmr-archive .entry-content-archive p { margin-bottom: 9px; overflow-wrap: break-word; }
.gmr-archive .entry-meta { color: var(--kto-muted); font-size: 12px; line-height: 1.55; }
.gmr-archive .entry-meta .cat-links { display: inline-block; margin-right: 8px; }
.gmr-archive .entry-meta .cat-links a { color: var(--kto-accent); font-weight: 700; }
.gmr-archive .entry-meta time.updated { display: none; }
.gmr-archive .content-thumbnail { max-width: 100%; }
.gmr-archive .content-thumbnail img { vertical-align: middle; border-radius: 4px; }

/* Sidebar, section headings and long form. */
.widget-title, .homemodule-title {
  color: var(--kto-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  border-bottom-color: var(--kto-rule);
}
.widget-title span { padding-bottom: 9px; border-bottom: 3px solid var(--kto-accent); }
.widget li { line-height: 1.5; }
.widget li + li { border-top: 1px solid var(--kto-rule); }
.widget a:hover { color: var(--kto-accent); }
.entry-content { line-height: 1.75; overflow-wrap: break-word; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; }
.entry-content figure img { display: block; max-width: 100%; height: auto; }
.entry-content figcaption, .wp-caption-text { color: var(--kto-muted); font-size: .88em; line-height: 1.5; }
.single .entry-header .entry-title { line-height: 1.24; letter-spacing: -.022em; }
.single .entry-content:not(.entry-content-archive) { max-width: 100%; color: #293b45; font-size: 17px; line-height: 1.82; }
.single .entry-content:not(.entry-content-archive) > p { margin-bottom: 1.4em; }
.single .entry-content:not(.entry-content-archive) h2,
.single .entry-content:not(.entry-content-archive) h3 { color: var(--kto-ink); margin-top: 1.5em; margin-bottom: .7em; line-height: 1.32; }
.single .entry-content blockquote { border-left: 3px solid var(--kto-accent); padding: 6px 0 6px 18px; margin: 24px 0; }
.single .entry-content blockquote p { margin-bottom: .5em; }
.single .entry-content blockquote p:last-child { margin-bottom: 0; }
.site-footer { line-height: 1.6; }

/* Majalahpro shows a secondary menu wrapper with no visible links below 1200px.
   Hide only this redundant wrapper; never the actual hamburger in .top-header-second. */
@media (max-width: 1199px) {
  .gmr-secondmenuwrap { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .gmr-archive .entry-title { font-size: 20px; }
}
@media (max-width: 767px) {
  /* The parent mobile header remains visible; the desktop menu band is hidden. */
  .site-header .top-header { display: none !important; }
  .gmr-topnavwrap .container { padding-top: 8px; padding-bottom: 8px; }
  .gmr-content .container { padding-left: 14px; padding-right: 14px; }
  .gmr-content .row { margin-left: -8px; margin-right: -8px; }
  .gmr-content [class*="col-md-"] { padding-left: 8px; padding-right: 8px; }
  /* Match the mobile home section gaps to the page's side gutters. */
  .home #content { padding-top: 14px; }
  .home #primary > .gmr-owl-carousel { margin-inline: 1px; }
  .home #primary > .gmr-owl-carousel + .site-main {
    margin-top: 14px;
    margin-bottom: 12px;
  }
  .gmr-box-content.gmr-archive { padding-top: 16px; padding-bottom: 18px; margin-bottom: 4px; }
  .gmr-archive .entry-title { font-size: 19px; line-height: 1.34; letter-spacing: -.015em; }
  .home article:first-of-type .gmr-archive .entry-title { font-size: 22px; }
  .gmr-archive .entry-content-archive { font-size: 13px; line-height: 1.55; }
  .gmr-archive .entry-meta { font-size: 11px; }
  .widget-title, .homemodule-title { font-size: 16px; }
  .widget li { padding-top: 11px; padding-bottom: 11px; }
  .widget { margin-bottom: 22px; }
  .single .entry-content:not(.entry-content-archive) { font-size: 16px; line-height: 1.76; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gmr-mainmenu a, .gmr-secondmenu a, .gmr-archive .entry-title { transition: none; }
}
