/*
Theme Name: ìëì´ëì´í°
Theme URI: https://silver.yyssmm790.com
Author: í¸ìë§
Description: ììë³´í¸ì¬Â·ì´ì ë©´íÂ·ë¸ì¸ì¼ìë¦¬ ì ë³´ë¥¼ ì íë ìëì´ ì ë³´ ì¬ì´í¸. ì¥ìì ê±·ì´ë´ê³  íì¤í¸ì ì¬ë°± ìì£¼ë¡ ì¤ê³íìµëë¤.
Version: 1.1
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: senior-playground
*/

/* ---------- Design tokens ---------- */
:root{
  --ink: #14304F;
  --text: #2B2B28;
  --text-muted: #767066;
  --line: #E5E1D8;
  --paper: #FFFFFF;

  --sans: "Pretendard", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
}

/* ---------- Reset & base ---------- */
*{ box-sizing: border-box; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--ink); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
h1, h2, h3, h4{
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 .5em;
}
ul{ padding: 0; margin: 0; list-style: none; }
.container{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* ---------- Masthead ---------- */
.masthead{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.masthead-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}
.site-title{
  font-size: 25px;
  font-weight: 700;
  margin: 0;
}
.site-title a{ color: var(--ink); }
.site-title a:hover{ text-decoration: none; }
.site-tagline{
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 19px;
}

.primary-nav ul{ display: flex; flex-wrap: wrap; gap: 18px; }
.primary-nav a{
  display: block;
  color: var(--text-muted);
  font-size: 19px;
  font-weight: 500;
  padding: 4px 0;
}
.primary-nav a:hover{ color: var(--ink); text-decoration: none; }

/* ---------- Layout ---------- */
.site-main{ padding: 40px 0 64px; }

.feed-title{
  font-size: 25px;
  margin: 0 0 4px;
}
.feed-desc{
  color: var(--text-muted);
  font-size: 19px;
  margin: 0 0 30px;
}

/* ---------- Post list (plain, text-first) ---------- */
.post-list{ border-top: 1px solid var(--line); }
.post-list-item{
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.post-list-item .card-tag{
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}
.post-list-item h2, .post-list-item h3{
  font-size: 22px;
  margin: 6px 0 6px;
}
.post-list-item h2 a, .post-list-item h3 a{ color: var(--ink); }
.post-list-item p{
  color: var(--text-muted);
  font-size: 19px;
  margin: 0 0 8px;
  line-height: 1.6;
}
.post-list-item .card-meta{
  font-size: 19px;
  color: var(--text-muted);
}
.post-thumb{
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
}

/* ---------- Empty state ---------- */
.empty-desk{
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 34px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 19px;
}
.empty-desk strong{ display:block; color: var(--ink); font-size: 19px; margin-bottom: 6px; }

.archive-title, .page-title{
  font-size: 25px;
  margin-bottom: 4px;
}

/* ---------- Single article ---------- */
.article-wrap{ max-width: 680px; }
.article-header{ margin-bottom: 22px; }
.article-header .card-tag{
  font-size: 19px;
  font-weight: 700;
  color: var(--text-muted);
}
.article-title{
  font-size: 32px;
  margin: 8px 0 12px;
}
.article-meta{
  font-size: 19px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.article-thumb{
  margin: 22px 0;
  border-radius: 4px;
  overflow: hidden;
}
.after-title-ad{
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
  min-height: 0;
}
.article-body{
  font-size: 22px;
  line-height: 1.85;
}
.article-body p{ margin: 0 0 1.4em; }
.article-body h2{ font-size: 24px; margin-top: 1.6em; }
.article-body h3{ font-size: 22px; margin-top: 1.4em; }
.article-body a{ text-decoration: underline; }
.toc{
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.toc-title{ font-weight: 700; color: var(--ink); margin: 0 0 8px; font-size: 19px; }
.toc ul{ margin: 0; padding-left: 18px; list-style: decimal; }
.toc li{ margin-bottom: 4px; font-size: 19px; }
.toc a{ text-decoration: underline; }
.article-body mark{
  background: #FFF3C4;
  color: var(--text);
  padding: 1px 4px;
  border-radius: 2px;
}
.article-body strong{ font-weight: 700; color: var(--ink); }
.article-body ul, .article-body ol{ margin: 0 0 1.4em; padding-left: 1.4em; list-style: revert; }
.article-body img{ border-radius: 4px; margin: 1.2em 0; }
.article-body table{ width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.article-body th, .article-body td{
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 18px;
}
.article-body th{ background: #F2ECD8; font-weight: 700; color: var(--ink); }
.article-body tbody tr:nth-child(even){ background: #FAFAF8; }
.article-body blockquote{
  border-left: 3px solid var(--line);
  margin: 1.6em 0;
  padding: 2px 0 2px 18px;
  color: var(--text-muted);
  font-style: italic;
}

.related-posts{ margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.related-posts h2{ font-size: 19px; margin-bottom: 4px; }

/* ---------- Promo banner (ë´ë¶ ìë¹ì¤ íë³´ì©) ---------- */
.promo-banner{
  display: block;
  background: #FFF9E9;
  border: 1px solid #E9DBA8;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 24px 0;
  color: var(--text);
}
.promo-banner:hover{ text-decoration: none; border-color: var(--gold, #C98A2C); }
.promo-banner .promo-eyebrow{
  font-size: 13px;
  font-weight: 700;
  color: #A8801C;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.promo-banner .promo-title{
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.promo-banner .promo-desc{
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.promo-banner .promo-cta{
  display: inline-block;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 4px;
}

/* ---------- Search ---------- */
.search-form{ display: flex; }
.search-form input[type="search"]{
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 3px 0 0 3px;
  padding: 10px 12px;
  font-size: 19px;
  font-family: var(--sans);
}
.search-form button{
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 0 16px;
  font-size: 19px;
  cursor: pointer;
}

/* ---------- Pagination ---------- */
.pagination{ margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 16px;
  color: var(--text-muted);
}
.pagination .current{ background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner{
  padding: 26px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 19px;
  color: var(--text-muted);
}
.footer-inner a{ color: var(--text-muted); }

/* ---------- Homepage: search + hub tiles + FAQ ---------- */
.hero-block{ padding: 40px 0 4px; text-align: center; }
.hero-title{
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 12px;
}
.hero-sub{
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}
.hero-search{ padding: 28px 0 8px; }
.search-form{
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid #1E63C9;
  border-radius: 999px;
  overflow: hidden;
}
.search-form input[type="search"]{
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 18px;
  font-family: var(--sans);
  outline: none;
}
.search-form button{
  border: none;
  background: #1E63C9;
  color: #fff;
  padding: 0 24px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
}
.hub-label{
  text-align: center;
  font-size: 19px;
  color: var(--text-muted);
  margin: 32px 0 14px;
}
.hub-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.hub-tile{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px;
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.hub-tile:hover{ text-decoration: none; border-color: var(--ink); }
.hub-tile span{
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.hub-tile-row{ display: flex; align-items: center; justify-content: space-between; }
.hub-icon{ width: 26px; height: 26px; }
.hub-arrow{ font-size: 19px; color: var(--text-muted); }
.hub-tile.tone-navy{ background: #E3F0FF; border-color: #E3F0FF; }
.hub-tile.tone-sage{ background: #E6F7EF; border-color: #E6F7EF; }
.hub-tile.tone-gold{ background: #FFF3D6; border-color: #FFF3D6; }
.hub-tile.tone-outline{ background: #FDECEF; border-color: #FDECEF; }
.hub-tile.tone-navy .hub-icon{ stroke: #1E63C9; }
.hub-tile.tone-sage .hub-icon{ stroke: #1E9E6B; }
.hub-tile.tone-gold .hub-icon{ stroke: #C98A0A; }
.hub-tile.tone-outline .hub-icon{ stroke: #D9527A; }
.hub-tile.tone-navy .hub-arrow{ color: #1E63C9; }
.hub-tile.tone-sage .hub-arrow{ color: #1E9E6B; }
.hub-tile.tone-gold .hub-arrow{ color: #C98A0A; }
.hub-tile.tone-outline .hub-arrow{ color: #D9527A; }

.faq-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 40px;
}
.faq-item{
  background: #F7F5F0;
  border-radius: 8px;
  padding: 16px 18px;
}
.faq-item summary{
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--text-muted);
}
.faq-item[open] summary::after{ content: "â"; }
.faq-item p{
  margin: 10px 0 0;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 480px){
  .hub-grid{ gap: 8px; }
  .hub-tile{ padding: 16px 4px; }
  .hub-tile span{ font-size: 19px; }
}
