/* Site chrome for the Node.js build of cekweton.id — reproduces the
   GeneratePress look (colors from the original theme settings) so the
   captured content.css/weton.css apply unchanged. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: #F3ECDA;
  color: #241C12;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: #7A4A28; }

/* ---- Header ---- */
.site-header {
  background-color: #F8F3E7;
  border-bottom: 1px solid rgba(78, 46, 24, 0.12);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 40px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #241C12;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.site-nav a:hover { background-color: rgba(122, 74, 40, 0.08); }
.site-nav a.active { color: #7A4A28; }

/* ---- Main content ---- */
.site-main { min-height: 60vh; }

.inside-article { padding: 24px 20px 56px; }

.entry-content { max-width: 860px; margin: 0 auto; }

/* ---- Footer ---- */
.site-footer {
  background-color: #F8F3E7;
  border-top: 1px solid rgba(78, 46, 24, 0.12);
  padding: 26px 20px 30px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 6px 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #241C12;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-nav a:hover { color: #7A4A28; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #5A4A34;
}

/* ---- Kontak form ---- */
.kontak-form { max-width: 560px; margin-top: 22px; }

.kontak-field { margin-bottom: 18px; position: relative; }

.kontak-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #241C12;
}

.kontak-required { color: #9E3B32; }

.kontak-field input,
.kontak-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(78, 46, 24, 0.2);
  border-radius: 10px;
  background: #FFFDF7;
  font-family: inherit;
  font-size: 16px;
  color: #241C12;
}

.kontak-field input:focus,
.kontak-field textarea:focus {
  outline: 0;
  border-color: #7A4A28;
  box-shadow: 0 0 0 3px rgba(122, 74, 40, 0.12);
}

.kontak-counter {
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 12px;
  color: #7A6B54;
}

.kontak-submit {
  padding: 13px 34px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  background: #7A4A28;
  color: #FFF8EC;
  transition: background-color 0.15s;
}

.kontak-submit:hover { background: #4E2E18; }
.kontak-submit:disabled { opacity: 0.6; cursor: default; }

.kontak-status { font-weight: 600; font-size: 14px; }
.kontak-ok { color: #3F6E4B; }
.kontak-err { color: #9E3B32; }

@media (max-width: 600px) {
  .site-header-inner { justify-content: center; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 2px 0 14px;
  font-size: 13.5px;
  color: #7A6B54;
  border-bottom: 1px solid rgba(78, 46, 24, 0.14);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
}
.breadcrumbs a {
  color: #7A4A28;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(122, 74, 40, 0.07);
  transition: background-color 0.15s;
}
.breadcrumbs a:first-child { margin-left: 0; }
.breadcrumbs a:hover { background: rgba(122, 74, 40, 0.16); }
.breadcrumbs .crumb-sep { margin: 0 8px; color: #B4A98F; }
.breadcrumbs span[aria-current] { color: #5A4A34; font-weight: 600; padding: 3px 2px; }

/* ---- Static weton card wrapper (server-rendered, mirrors .wt-app) ---- */
.wt-app-static {
  max-width: 640px;
  margin: 22px auto;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---- Weton index grid ---- */
.weton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 26px;
}
.weton-tile {
  display: block;
  background: #F8F3E7;
  border: 1.5px solid rgba(78, 46, 24, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.weton-tile:hover { border-color: #7A4A28; transform: translateY(-1px); }
.weton-tile-name { display: block; font-weight: 700; color: #241C12; font-size: 15px; }
.weton-tile-neptu { display: block; font-size: 12px; color: #7A4A28; margin-top: 2px; }

/* ---- Weton dates list ---- */
.weton-dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.weton-dates a {
  background: #F8F3E7;
  border: 1px solid rgba(78, 46, 24, 0.16);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 14px;
  color: #241C12;
  text-decoration: none;
}
.weton-dates a:hover { border-color: #7A4A28; color: #7A4A28; }

/* ---- Prev/next pager ---- */
.weton-pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(78, 46, 24, 0.14);
}
.weton-pager a {
  color: #7A4A28;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}
.weton-pager a:hover { background: rgba(122, 74, 40, 0.08); }

/* ---- Month calendar table ---- */
.cal-table-wrap { overflow-x: auto; margin: 20px 0 8px; }
.cal-table {
  width: 100%;
  border-collapse: collapse;
  background: #F8F3E7;
  border: 1.5px solid rgba(78, 46, 24, 0.18);
  border-radius: 12px;
  overflow: hidden;
  min-width: 540px;
}
.cal-table th {
  background: #241C12;
  color: #F3ECDA;
  font-size: 12px;
  padding: 8px 4px;
  letter-spacing: 0.06em;
}
.cal-table td {
  border: 1px solid rgba(78, 46, 24, 0.12);
  text-align: center;
  padding: 8px 4px 7px;
  vertical-align: top;
  width: 14.28%;
}
.cal-table .cal-d { display: block; font-weight: 700; font-size: 17px; color: #241C12; }
.cal-table .cal-p { display: block; font-size: 12px; color: #7A4A28; font-weight: 600; margin-top: 5px; }
.cal-table .cal-n { display: block; font-size: 11px; color: #7A6B54; }
.cal-table .cal-empty { background: rgba(78, 46, 24, 0.04); }
.cal-table .cal-sun .cal-d, .cal-table .cal-sun .cal-p { color: #D32F2F; font-weight: 800; }
.cal-table .cal-fri .cal-d, .cal-table .cal-fri .cal-p { color: #2E7D32; font-weight: 800; }
.cal-table th.th-sun { color: #F0B3AD; }
.cal-table th.th-fri { color: #BFE6C8; }
.cal-table .cal-good .cal-d, .cal-table .cal-good .cal-p { color: #C77800; font-weight: 800; }
.cal-table .cal-libur .cal-d, .cal-table .cal-libur .cal-p { color: #D32F2F; font-weight: 800; }
.cal-table .cal-today { outline: 2.5px solid #7A4A28; outline-offset: -2.5px; }
.cal-legend { font-size: 13px; color: #7A6B54; margin-top: 6px; }

/* ---- Month nav ---- */
.month-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.month-nav a, .month-nav span {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(78, 46, 24, 0.16);
  color: #241C12;
}
.month-nav a:hover { border-color: #7A4A28; color: #7A4A28; }
.month-nav span { background: #7A4A28; color: #FFF8EC; border-color: #7A4A28; font-weight: 700; }

/* ---- Footer columns ---- */
.footer-cols {
  max-width: 1080px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  text-align: left;
}
.footer-col a {
  display: block;
  color: #241C12;
  text-decoration: none;
  font-size: 14px;
  padding: 3px 0;
}
.footer-col a:hover { color: #7A4A28; }
.footer-head {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A4A28;
  margin: 0 0 6px;
}

/* ---- Store badges ---- */
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #241C12;
  color: #F3ECDA;
  text-decoration: none;
  border-radius: 9px;
  padding: 6px 12px;
  line-height: 1.1;
  transition: transform 0.15s, background-color 0.15s;
}
.store-badge:hover { background: #3A2E1E; transform: translateY(-1px); }
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; font-weight: 700; font-size: 13px; }
.store-badge small { font-weight: 500; font-size: 9px; letter-spacing: 0.04em; opacity: 0.75; }

.header-badges .store-badge { padding: 5px 10px; }
.header-badges .store-badge span { font-size: 12px; }
@media (max-width: 900px) {
  .header-badges .store-badge small { display: none; }
  .header-badges .store-badge span { font-size: 12px; }
}

/* ---- In-article app CTA ---- */
.app-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #212B4E 0%, #2E3C68 100%);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 30px 0;
}
.app-cta-text { flex: 1; min-width: 230px; }
.app-cta-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 19px;
  color: #E7C463;
  font-family: 'Fraunces', serif;
}
.app-cta-desc { margin: 0; font-size: 14px; color: #F3ECDA; opacity: 0.92; line-height: 1.55; }
.app-cta .store-badge { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(243, 236, 218, 0.25); }
.app-cta .store-badge:hover { background: rgba(0, 0, 0, 0.5); }

/* ---- Footer (dark) ---- */
.site-footer {
  background: #241C12;
  border-top: none;
  padding: 0;
  text-align: left;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 2.4fr;
  gap: 36px;
}
.footer-logo { margin: 0 0 8px; font-weight: 800; font-size: 22px; color: #F3ECDA; }
.footer-logo span { color: #C69A2E; }
.footer-tagline { margin: 0 0 16px; font-size: 13.5px; color: rgba(243, 236, 218, 0.75); line-height: 1.6; }
.footer-badges .store-badge { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(243, 236, 218, 0.2); }
.footer-badges .store-badge:hover { background: rgba(255, 255, 255, 0.16); }
.footer-cols { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.footer-col a { color: rgba(243, 236, 218, 0.82); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #E7C463; }
.footer-head { color: #C69A2E; }
.footer-bottom { border-top: 1px solid rgba(243, 236, 218, 0.14); }
.footer-copy {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 12.5px;
  color: rgba(243, 236, 218, 0.6);
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

/* Wide tables scroll inside themselves on small screens */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll table.wt-neptu { min-width: 320px; }

/* ---- Hamburger menu ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid rgba(78, 46, 24, 0.25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #241C12;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .site-header-inner { justify-content: space-between; flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .site-nav-wrap {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 14px;
  }
  .nav-open .site-nav-wrap { display: flex; }
  .site-header-inner { flex-wrap: wrap; }
  .site-nav { flex-direction: column; gap: 2px; }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(78, 46, 24, 0.08);
  }
  .site-nav a.active { background: rgba(122, 74, 40, 0.1); }
  .header-badges { padding-top: 8px; justify-content: stretch; }
  .header-badges .store-badge { flex: 1; justify-content: center; padding: 10px; }
  .header-badges .store-badge small { display: inline; }
}
