/*
Theme Name: Aboutora
Theme URI: https://aboutora.com
Author: Aboutora
Description: Minimal dark WordPress theme for the Aboutora Market Context service.
Version: 0.4.10
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aboutora
*/

:root{
  --ab-bg:#0b0d10;
  --ab-panel:#12161b;
  --ab-panel2:#171c22;
  --ab-text:#f4f6f8;
  --ab-muted:#929ba6;
  --ab-line:#28303a;
  --ab-accent:#93f7bf;
  --ab-max:1180px;
}
*{box-sizing:border-box}
html{background:var(--ab-bg)}
body{
  margin:0;
  background:var(--ab-bg);
  color:var(--ab-text);
  font-family:Inter,Pretendard,"Noto Sans KR",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%;height:auto}
.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(11,13,16,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  width:min(var(--ab-max),calc(100% - 40px));
  min-height:64px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.site-brand{
  font-weight:900;font-size:20px;letter-spacing:-.03em;
  text-decoration:none;
}
.site-brand small{
  display:inline-block;margin-left:8px;padding:3px 6px;border:1px solid var(--ab-line);
  border-radius:999px;color:var(--ab-muted);font-size:9px;letter-spacing:.08em;vertical-align:2px;
}
.primary-nav{display:flex;align-items:center;gap:4px}
.primary-nav a{
  display:block;padding:9px 12px;border-radius:10px;
  text-decoration:none;color:var(--ab-muted);font-size:14px;
}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav a[aria-current="page"]{
  background:var(--ab-panel2);color:var(--ab-text);
}
.site-main{
  flex:1;
  width:min(var(--ab-max),calc(100% - 40px));
  margin:0 auto;
}
.site-footer{
  margin-top:64px;border-top:1px solid var(--ab-line);
}
.footer-inner{
  width:min(var(--ab-max),calc(100% - 40px));
  margin:0 auto;padding:28px 0 42px;color:var(--ab-muted);font-size:12px;line-height:1.7;
}
.page-entry{padding:24px 0 0}
.page-entry h1{margin:0 0 22px;font-size:44px;letter-spacing:-.04em}
.page-entry .entry-content{color:var(--ab-text)}
.entry-content>*:first-child{margin-top:0}
.entry-content a{color:var(--ab-accent)}
.not-found{padding:120px 0;text-align:center}
.not-found h1{font-size:56px;margin:0 0 14px}
.not-found p{color:var(--ab-muted)}
.mobile-nav-toggle{display:none}
@media(max-width:760px){
  .header-inner{width:min(100% - 24px,var(--ab-max));min-height:62px}
  .site-main,.footer-inner{width:min(100% - 24px,var(--ab-max))}
  .primary-nav{gap:0;overflow:auto}
  .primary-nav a{padding:8px 9px;white-space:nowrap;font-size:13px}
  .site-brand small{display:none}
  .page-entry{padding:10px 0 0}
  .page-entry h1{font-size:36px}
}

/* v0.4 Watchlist navigation */
@media (max-width:700px){
  .primary-nav{overflow-x:auto;white-space:nowrap;max-width:68vw}
  .primary-nav a{flex:0 0 auto}
}


/* ==========================================================
   v0.4.2 Mobile header/navigation fix
   - Prevent whole-page horizontal overflow
   - Keep all five tabs reachable
   - Use a two-row mobile header instead of squeezing brand+tabs
   ========================================================== */
@media(max-width:760px){
  html,body,.site-shell{
    max-width:100%;
    overflow-x:hidden;
  }

  .header-inner{
    width:100%;
    min-height:0;
    padding:10px 12px 8px;
    margin:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:7px;
  }

  .site-brand{
    font-size:18px;
    line-height:1.1;
    width:max-content;
    max-width:100%;
  }

  .primary-nav{
    width:100%;
    max-width:none;
    min-width:0;
    display:flex;
    align-items:center;
    gap:3px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:0 0 1px;
  }
  .primary-nav::-webkit-scrollbar{display:none}

  /* Supports both fallback direct <a> markup and wp_nav_menu <ul><li><a>. */
  .primary-nav>ul{
    display:flex;
    align-items:center;
    gap:3px;
    list-style:none;
    margin:0;
    padding:0;
    min-width:max-content;
  }
  .primary-nav>ul>li{
    margin:0;
    padding:0;
  }

  .primary-nav a{
    flex:0 0 auto;
    padding:7px 9px;
    border-radius:9px;
    font-size:12px;
    line-height:1.2;
    white-space:nowrap;
  }
}

/* override old v0.4 mobile max-width rule */
@media(max-width:700px){
  .primary-nav{
    max-width:none;
  }
}


/* v0.4.3 Archive tab */
@media(max-width:760px){
  .primary-nav{gap:1px}
  .primary-nav a{
    padding:6px 7px;
    font-size:11px;
  }
}


/* v0.4.4 Cases tab — 7개 메뉴 모바일 압축 */
@media(max-width:760px){
  .primary-nav a{
    padding:6px 6px;
    font-size:10.5px;
  }
}
@media(max-width:430px){
  .primary-nav a{
    padding:5px 5px;
    font-size:10px;
  }
}


/* v0.4.5 Home */
.aboutora-front-page{
  padding-top:0;
}
.aboutora-front-page>.entry-content{
  width:100%;
}


/* ==========================================================
   v0.4.7 — Site-wide QA / mobile navigation
   ========================================================== */
.skip-link{
  position:fixed;
  top:8px;
  left:8px;
  z-index:99999;
  transform:translateY(-160%);
  padding:10px 12px;
  border-radius:9px;
  background:#f4f6f8;
  color:#0b0d10;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
.skip-link:focus{
  transform:translateY(0);
}

.site-brand:focus-visible,
.primary-nav a:focus-visible{
  outline:2px solid rgba(147,247,191,.65);
  outline-offset:3px;
}

/* WP admin toolbar must not cover the sticky site header while logged in. */
body.admin-bar .site-header{top:32px}

@media(max-width:760px){
  .site-header{
    backdrop-filter:blur(18px);
  }
  .header-inner{
    padding-top:9px;
    padding-bottom:7px;
  }
  .site-brand{
    font-size:17px;
  }
  .primary-nav{
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    padding:1px 2px 3px;
    mask-image:linear-gradient(
      90deg,
      transparent 0,
      #000 10px,
      #000 calc(100% - 14px),
      transparent 100%
    );
  }
  .primary-nav>ul>li,
  .primary-nav>a{
    scroll-snap-align:center;
  }
  .primary-nav a{
    min-height:32px;
    display:flex;
    align-items:center;
    padding:6px 8px;
    font-size:10.5px;
  }
  .primary-nav .current-menu-item>a,
  .primary-nav a[aria-current="page"]{
    box-shadow:inset 0 0 0 1px rgba(147,247,191,.10);
  }
  .site-main,
  .footer-inner{
    width:min(100% - 24px,var(--ab-max));
  }
  .site-footer{
    margin-top:42px;
  }
  .footer-inner{
    padding:22px 0 34px;
    font-size:11px;
  }
}

@media(max-width:782px){
  body.admin-bar .site-header{top:46px}
}

@media(max-width:430px){
  .primary-nav a{
    min-height:31px;
    padding:5px 7px;
    font-size:10px;
  }
}

/* Don't animate scroll for users who request reduced motion. */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}


/* ==========================================================
   v0.4.8 Footer — About / Methodology / source notice
   ========================================================== */
.aboutora-footer-v048{
  display:block;
}
.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.footer-top>div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.footer-top strong{
  color:#cbd3da;
  font-size:11px;
  letter-spacing:.04em;
}
.footer-top span{
  color:#70808c;
  font-size:10px;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:14px;
}
.footer-links a{
  color:#8c98a2;
  text-decoration:none;
  font-size:10px;
  font-weight:700;
}
.footer-links a:hover{
  color:#dce3e8;
}
.footer-notice{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  margin-top:17px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#70808c;
  font-size:9px;
  line-height:1.55;
}

@media(max-width:700px){
  .footer-top{
    display:block;
  }
  .footer-links{
    justify-content:flex-start;
    margin-top:14px;
    gap:12px;
  }
  .footer-links a{
    min-height:28px;
    display:flex;
    align-items:center;
  }
  .footer-notice{
    display:grid;
    gap:5px;
  }
}


/* ==========================================================
   v0.4.10 — Header brand lockup fix
   Fixes malformed v0.4.9 CSS and constrains the inline SVG.
   ========================================================== */
.site-brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  min-width:0;
  color:var(--ab-text);
  font-weight:900;
  font-size:20px;
  line-height:1;
  letter-spacing:-.03em;
  text-decoration:none;
  white-space:nowrap;
}
.site-brand-mark{
  display:block;
  width:28px;
  height:28px;
  flex:0 0 28px;
  color:var(--ab-accent);
  line-height:0;
  filter:drop-shadow(0 0 7px rgba(147,247,191,.12));
}
.site-brand-mark svg{
  display:block;
  width:28px;
  height:28px;
  max-width:none;
  overflow:visible;
}
.site-brand-mark .brand-bars,
.site-brand-mark .brand-line{
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.site-brand-mark .brand-bars{stroke-width:2.15}
.site-brand-mark .brand-line{stroke-width:1.65}
.site-brand-mark circle{fill:currentColor}
.site-brand-divider{
  display:block;
  width:1px;
  height:22px;
  flex:0 0 1px;
  background:rgba(255,255,255,.16);
}
.site-brand-wordmark{
  display:block;
  color:var(--ab-text);
  font-size:20px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.035em;
}
.site-brand small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  margin:0 0 0 2px;
  padding:0 9px;
  border:1px solid #34404c;
  border-radius:999px;
  color:#a8b3bd;
  background:rgba(18,22,27,.72);
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
  line-height:1;
  vertical-align:0;
}
.site-brand:hover .site-brand-mark{color:#a6ffca}
.site-brand:focus-visible{border-radius:8px}

@media(max-width:760px){
  .site-brand{
    gap:8px;
    font-size:17px;
  }
  .site-brand-mark{
    width:24px;
    height:24px;
    flex-basis:24px;
  }
  .site-brand-mark svg{
    width:24px;
    height:24px;
  }
  .site-brand-divider{height:18px}
  .site-brand-wordmark{font-size:17px}
  .site-brand small{display:none}
}

@media(max-width:380px){
  .site-brand-mark{
    width:22px;
    height:22px;
    flex-basis:22px;
  }
  .site-brand-mark svg{
    width:22px;
    height:22px;
  }
  .site-brand-wordmark{font-size:16px}
}
