/*
Theme Name: justarchived
Theme URI: https://justarchived.com
Author: justarchived
Description: Custom theme for justarchived - investment, travel, beauty and event content.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: justarchived
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: #ffffff;
  color: rgb(61,61,61);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 720px; margin: 0 auto; }

.ph {
  background: rgba(58,58,58,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(58,58,58,0.45);
}

/* header nav */
.tabs { display:flex; align-items:center; gap: 22px; height: 100%; flex-wrap: wrap; }
.tabs a {
  font-size:14px; font-weight:700; display:flex; align-items:center; height:100%;
  color: rgb(58,58,58);
}
.tabs a.current-cat, .tabs a.tab-home.active {
  color: rgb(61,61,61);
  box-shadow: inset 0 -3px 0 0 rgb(25,114,223);
}

.card-title:hover, .side-title:hover, .hl:hover { color: rgb(25,114,223); }

/* hamburger toggle + drawer */
.menu-toggle {
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; display: flex; align-items: center;
}
.menu-toggle line {
  transition: transform .2s ease, opacity .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.menu-toggle.open .l1 { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open .l2 { opacity: 0; }
.menu-toggle.open .l3 { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 300px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid rgba(58,58,58,0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 20px 24px 24px;
  z-index: 60;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .3s ease, opacity .22s ease, transform .3s ease;
}
.mobile-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.drawer-tabs { display: flex; flex-direction: column; }
.drawer-tabs a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(58,58,58,0.12);
  font-size: 17px;
  font-weight: 700;
  color: rgb(61,61,61);
}
.drawer-tabs a:last-child { border-bottom: none; }
.drawer-tabs a.current-cat,
.drawer-tabs a.tab-home.active {
  color: rgb(25,114,223);
  box-shadow: none;
}

/* keyword pills */
.kw-pill {
  background: rgba(25,114,223,0.08);
  color: rgb(25,114,223);
  font-size:14px; font-weight:700;
  padding:8px 16px;
  border-radius:999px;
  display:inline-block;
}

/* generic page typography (About / Privacy pages) */
.page-body h1 { font-size:36px; font-weight:800; line-height:1.35; color:rgb(61,61,61); margin: 0 0 28px; }
.page-body h2 { font-size:18px; font-weight:700; color:rgb(61,61,61); margin: 32px 0 16px; }
.page-body p { font-size:16px; line-height:1.85; color:rgb(58,58,58); margin: 0 0 24px; }
.page-body ul { font-size:15px; line-height:1.85; color:rgb(58,58,58); padding-left: 20px; }

@media (max-width: 900px) {
  .top-story-grid { grid-template-columns: 1fr !important; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .tabs { display: none !important; }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr !important; }
}
