/*
Theme Name: 일상계기판 · Daily Gauge
Description: 자동차와 생활의 비용과 선택 기준을 비교하는 한국어 미디어 테마.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: daily-gauge
*/
@font-face{font-family:Pretendard;src:url("assets/PretendardVariable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:#181917;--accent:#b7351c;--vivid:#ef502e;--green:#376445;--rule:#dcdeda;--muted:#626661;--page:1256px;font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:white;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;color:inherit}img{display:block;width:100%;height:100%;object-fit:cover}h1,h2,h3,p,ul{margin:0}ul{list-style:none;padding:0}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2379b2;outline-offset:3px}main:focus{outline:none}body:has(dialog[open]){overflow:hidden}.wrap{width:min(calc(100% - 88px),var(--page));margin-inline:auto}.skip{position:absolute;left:10px;top:-60px;background:white;padding:10px;z-index:10}.skip:focus{top:3px}
.sitehead{border-top:4px solid var(--ink);border-bottom:1px solid var(--ink)}.head-inner{height:78px;display:flex;align-items:center;gap:66px}.brand{display:inline-flex;align-items:center;width:209px;flex:none}.brand img{width:100%;height:auto;display:block}.sitehead nav{display:flex;align-self:stretch;align-items:stretch;gap:32px}.sitehead nav a{position:relative;display:flex;align-items:center;font-size:16px;font-weight:710;letter-spacing:-.035em}.sitehead nav a[aria-current]{color:var(--accent)}.sitehead nav a[aria-current]:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--accent)}.search-btn{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;padding:12px 0 12px 12px}.mag{width:16px;height:16px;border:2px solid currentColor;border-radius:50%;position:relative;display:inline-block;flex:0 0 16px;margin-right:3px}.mag:after{content:"";position:absolute;bottom:-4px;right:-4px;width:7px;height:2px;background:currentColor;transform:rotate(48deg);border-radius:1px}
.edition{display:flex;align-items:center;justify-content:space-between;margin:28px 0 15px}.edition h1,.latest-head h2{font-size:27px;letter-spacing:-.065em;line-height:1.2;font-weight:820}.edition time{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:.015em}.hero-grid{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(0,1fr);gap:14px}.hero-lead{position:relative;isolation:isolate;display:block;min-height:395px;aspect-ratio:1.9;background:#242622;overflow:hidden}.hero-lead img{position:absolute;inset:0;z-index:-3;object-position:50% 52%}.hero-lead:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(0deg,rgba(10,13,13,.93) 0%,rgba(10,13,13,.76) 13%,rgba(10,13,13,.18) 47%,transparent 68%)}.lead-copy{position:absolute;bottom:29px;left:31px;right:26px;color:white}.tag{font-size:13px;line-height:1.2;font-weight:760;letter-spacing:-.015em}.lead-tag{display:inline-flex;background:var(--accent);color:white;padding:5px 9px}.lead-copy h2{font-size:clamp(34px,3.1vw,48px);letter-spacing:-.065em;font-weight:835;line-height:1.12;margin-top:9px;word-break:keep-all}.lead-copy p{color:#f2f2ed;line-height:1.4;font-size:16px;margin-top:8px;letter-spacing:-.025em}.side-stack{display:grid;grid-template-rows:1fr 1fr;gap:14px;min-width:0}.side-story{min-width:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);background:#eef0ed;overflow:hidden;position:relative}.side-story.life{background:#eff2e9}.side-story.auto{background:#f1f1ef}.side-photo{overflow:hidden;min-height:0;position:relative;order:1}.side-photo img{position:absolute;inset:0}.side-story.life img{object-position:48% center}.side-story.auto img{object-position:49% center}.side-copy{padding:22px 18px 21px 23px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}.side-copy h2{font-size:clamp(23px,1.95vw,31px);font-weight:800;line-height:1.21;letter-spacing:-.06em;margin-top:10px;word-break:keep-all}.cat{color:var(--accent)}.life .cat,.cat.life{color:var(--green)}.meta{font-size:13px;line-height:1.35;color:var(--muted);letter-spacing:-.02em}.side-copy .meta{margin-top:15px}
.latest{margin:40px 0 58px}.latest-head{display:flex;align-items:center;justify-content:space-between;border-top:2px solid var(--ink);padding:19px 0 17px}.filters{display:flex;gap:5px}.filters a{font-size:14px;font-weight:620;border-radius:20px;padding:6px 14px;color:#555a55}.filters a[aria-current="true"]{background:var(--ink);color:white}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:29px 20px}.story-link{display:block;min-width:0}.tile-photo{aspect-ratio:1.95;overflow:hidden;background:#e5e5e2}.tile-photo img,.side-photo img,.hero-lead img{transition:transform .3s ease}.story-link:hover img,.side-story:hover img,.hero-lead:hover img{transform:scale(1.025)}.story-link:hover h3,.side-story:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.tile-copy{padding:13px 0 0}.tile-copy .cat,.side-copy .cat{display:flex;align-items:center;gap:7px}.topic{color:var(--muted);font-weight:570}.topic:before{content:"";display:inline-block;width:2px;height:2px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:middle}.tile-copy h3{font-size:23px;line-height:1.32;letter-spacing:-.05em;font-weight:760;word-break:keep-all;margin-top:6px}.sitefoot{background:#f5f5f2;border-top:1px solid var(--rule)}.foot-inner{display:flex;align-items:center;justify-content:space-between;min-height:84px}.small.brand{width:150px}.sitefoot button{font-size:13px;color:#545953;text-decoration:underline;text-underline-offset:3px}
.cat-head{display:flex;align-items:baseline;gap:12px;padding:34px 0 17px;border-bottom:2px solid var(--ink);margin-bottom:20px}.cat-head h1{font-size:35px;letter-spacing:-.065em}.cat-head p{font-size:15px;color:var(--muted)}.category-view{margin-bottom:50px}.article-wrap{max-width:800px;margin:38px auto 65px}.article-wrap h1{font-size:clamp(32px,4vw,52px);line-height:1.15;letter-spacing:-.07em;word-break:keep-all;margin:12px 0}.article-wrap .dek{font-size:20px;line-height:1.6;letter-spacing:-.035em;color:#4d514c;margin:12px 0}.article-photo{margin:22px 0;max-height:400px;object-fit:cover;aspect-ratio:1.95}.article-body{line-height:1.82;font-size:18px;letter-spacing:-.025em}.article-body p+p{margin-top:12px}.backlink{display:inline-block;border-bottom:1px solid currentColor;margin-top:28px;font-size:15px;font-weight:650}.article-wrap .tag a{color:inherit}.article-wrap .meta{margin-top:12px}
dialog{border:0;padding:0;width:min(calc(100% - 32px),600px);max-height:80dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #0003}dialog::backdrop{background:#13202488}.dialog-inner{padding:28px}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px}.dialog-head h2{font-size:25px;letter-spacing:-.05em}.close{font-size:32px;line-height:1;padding:2px 8px}.query-wrap{border:1px solid #979b95;display:flex;align-items:center;gap:12px;padding:10px 15px}.query-wrap input{width:100%;border:0;min-height:32px;font-size:16px;outline:none}.query-wrap:focus-within{outline:2px solid var(--accent)}.result{display:block;padding:15px 0;border-bottom:1px solid var(--rule);font-size:16px;font-weight:650}.result .cat{display:inline-block;min-width:52px;font-size:13px}.empty{padding:18px 0;color:var(--muted)}dialog p{font-size:16px;line-height:1.6;margin-bottom:12px}#credits{display:flex;flex-wrap:wrap;gap:10px 16px}#credits a{font-size:14px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.hero-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}.hero-lead{min-height:354px}.side-copy{padding:15px}.side-copy h2{font-size:23px}.side-copy .meta{margin-top:9px}.tile-copy h3{font-size:21px}}
@media(max-width:720px){.wrap{width:calc(100% - 36px)}.sitehead{border-top-width:3px}.head-inner{height:58px;gap:0}.brand{width:148px}.sitehead nav{margin-left:auto;gap:17px}.sitehead nav a{font-size:15px}.search-btn{margin-left:15px;padding:8px 4px}.search-word{display:none}.mag{width:15px;height:15px;flex-basis:15px}.edition{margin:19px 0 11px}.edition h1,.latest-head h2{font-size:22px}.edition time{font-size:12px}.hero-grid{grid-template-columns:1fr;gap:9px}.hero-lead{aspect-ratio:1.7;min-height:0}.lead-copy{left:17px;right:13px;bottom:17px}.lead-copy h2{font-size:clamp(25px,6.2vw,36px);margin-top:6px;line-height:1.12}.lead-tag{padding:3px 6px;font-size:12px}.lead-copy p{display:none}.hero-lead:before{background:linear-gradient(0deg,#101416ef,#10141689 31%,transparent 68%)}.side-stack{gap:8px}.side-story{grid-template-columns:minmax(0,1fr) 31%;min-height:95px}.side-copy{padding:11px 14px}.side-copy h2{font-size:19px;line-height:1.18;margin-top:5px}.side-copy .meta{display:none}.side-copy .tag{font-size:12px}.side-photo img{object-position:center 50%}.latest{margin:24px 0 32px}.latest-head{padding:13px 0}.filters{gap:0}.filters a{padding:5px 10px;font-size:13px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.tile-photo{aspect-ratio:1.55}.tile-copy{padding-top:8px}.tile-copy h3{font-size:17px;line-height:1.32;margin-top:5px}.tile-copy .tag{font-size:12px}.foot-inner{min-height:68px}.small.brand{width:123px}.article-wrap{margin:24px auto 40px}.article-body{font-size:16px}.article-wrap .dek{font-size:17px}.cat-head{padding-top:22px}.dialog-inner{padding:18px}}
@media(max-width:370px){.sitehead .brand{width:132px}.wrap{width:calc(100% - 28px)}.sitehead nav{gap:13px}.side-story{min-height:84px}.side-copy h2{font-size:17px}.side-copy .topic{font-size:11px}.lead-copy{bottom:13px}.edition{margin-top:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.hero-lead{width:100%;min-width:0}.lead-copy h2,.side-copy h2{letter-spacing:-.05em}
@media(min-width:721px) and (max-width:1179px){.hero-grid{grid-template-columns:minmax(0,1fr)}.hero-lead{aspect-ratio:auto;height:clamp(250px,32vw,356px);min-height:0}.side-stack{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto}.side-story{min-height:114px;grid-template-columns:1.65fr 1fr}.side-copy h2{font-size:20px}.side-copy .meta{display:none}.lead-copy{bottom:22px}}

/* Keep the first row of latest headlines visible below the lead stories. */
.tile-copy h3 { text-wrap: balance; }
@media (min-width: 721px) {
  .latest .story-grid > li { display: flex; }
  .latest .story-link { display: flex; flex-direction: column; width: 100%; }
  .latest .tile-copy { order: -1; padding: 0 0 12px; }
  .latest .tile-photo { margin-top: auto; }
}
@media (min-width: 1180px) and (max-width: 1320px) {
  .side-story { grid-template-columns: 1.5fr 1fr; }
  .side-copy { padding: 16px; }
  .side-copy h2 { font-size: clamp(21px, 1.8vw, 24px); }
}
@media (max-width: 720px) {
  .sitehead nav { gap: 2px; }
  .sitehead nav a { min-width: 44px; padding-inline: 4px; justify-content: center; }
  .search-btn { width: 44px; min-height: 44px; margin-left: 3px; padding: 0; justify-content: center; }
  .filters a { min-width: 44px; min-height: 44px; }
  .filters a[aria-current="true"] {
    background: var(--ink); border-block: 6px solid transparent; background-clip: padding-box;
  }
  .latest-head { padding-block: 7px; }
  .close { min-width: 44px; min-height: 44px; }
}
@media (max-width: 349px) {
  .sitehead nav a { min-width: 36px; }
  .sitehead nav { gap: 0; }
  .search-btn { margin-left: 0; }
}

/* WordPress navigation, archive and editor content. */
.filters a { display: inline-flex; align-items: center; justify-content: center; }
.hero-only { grid-template-columns: minmax(0, 1fr); }
.hero-only .hero-lead { max-height: 510px; }
.one-side-story { grid-template-rows: 1fr; }
.side-story.no-photo { grid-template-columns: minmax(0, 1fr); }
.wp-search { display: flex; gap: 8px; margin: 2px 0 16px; }
.wp-search .query-wrap { flex: 1; min-width: 0; }
.wp-search .submit-search { padding: 9px 16px; color: white; background: var(--ink); font-weight: 650; }
.pagination { margin: 22px 0 0; }
.pagination ul, .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers:not(ul) { padding: 8px 10px; display: inline-block; }
.pagination .current { background: var(--ink); color: white; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wp-content img, .reading-body :is(.wp-block-image, figure) img { max-width: 100%; height: auto; }
.wp-content :is(ol, ul), .reading-body :is(.wp-block-list, .wp-block-list ul) { padding-inline-start: 1.5em; list-style: revert; }
.wp-content :is(h2,h3,h4,figure), .wp-content p + p { margin-top: 1em; }
.wp-content a, .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { max-width: 100%; height: auto; }
.category-view .cat-head h1 { overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .wp-search .submit-search { min-height: 44px; }
}
