/* ==========================================================
   WordPress-specific styles
   ========================================================== */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 10px; top: 10px; z-index: 999; background: #fff; padding: 10px 16px; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Logo image */
.logo--image .custom-logo { max-height: 70px; width: auto; transition: max-height .3s; }
.site-header.is-scrolled .logo--image .custom-logo { max-height: 44px; }

/* Menus */
.main-nav__list > li { list-style: none; }
.offcanvas__sub { padding-left: 0; }
.site-footer__list { list-style: none; }
.site-footer__bottom-list { display: flex; gap: 14px; list-style: none; font-size: .8rem; }
.dropdown li { list-style: none; }

/* Category label is a link */
a.card__cat:hover { text-decoration: underline; }
.page-hero__desc p { margin: 0; }

/* Link chips */
a.chip { display: inline-block; color: var(--c-black); }

/* Search form */
.search-form { display: flex; gap: 8px; width: 100%; max-width: 520px; margin: 0 auto; }
.search-form__input { flex: 1; padding: 12px 14px; border: 1px solid var(--c-line); outline: none; }
.search-form__input:focus { border-color: var(--c-black); }
.page-hero__search { width: 100%; margin-top: 24px; }
.page-hero__big { font-family: var(--f-serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--c-accent); }
.empty-state { padding: 40px 0; }
.empty-state p { color: var(--c-muted); margin: 12px 0 20px; }
.empty-state .search-form { margin: 0; }

/* Pagination from paginate_links */
.pagination .dots { border: 0; }
.pagination__link.current { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

/* Avatars */
.article__avatar, .author-box__img { border-radius: 50%; }
.author-box__name a:hover { color: var(--c-accent); }
.article__author:hover { color: var(--c-accent); }

/* Video embeds */
.article__video, .video-player__embed { position: relative; aspect-ratio: 16 / 9; }
.article__video iframe, .video-player__embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.video-player__embed { width: 100%; height: 100%; }
a.video-player__play { display: flex; align-items: center; justify-content: center; }
.video-hero__title a:hover { opacity: .8; }

/* ---------- Post content (Gutenberg / classic editor) ---------- */
.entry-content > * { max-width: 100%; }
.entry-content img { height: auto; }
.entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; margin: 32px 0 12px; color: var(--c-black); }
.entry-content h4 { font-size: 1.1rem; margin: 24px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 22px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote { border-left: 3px solid var(--c-accent); padding: 8px 0 8px 28px; margin: 40px 0; }
.entry-content blockquote p { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--c-black); }
.entry-content blockquote cite { font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.entry-content figure, .entry-content .wp-block-image { margin: 36px 0; }
.entry-content figcaption, .wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--c-muted); margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--c-cream); }
.entry-content hr { border: 0; border-top: 1px solid var(--c-line); margin: 40px 0; }
.entry-content .wp-block-button__link { background: var(--c-black); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: var(--radius); }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sticky, .bypostauthor, .gallery-caption { display: block; }
.page-content { padding: 56px 24px 72px; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.post-nav a { display: block; padding: 18px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-black); transition: border-color .25s; height: 100%; }
.post-nav a:hover { border-color: var(--c-black); }
.post-nav__item--next { text-align: right; }
.post-nav__label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.post-nav__title { font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.3; }

/* Comments */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); font-size: 1rem; }
.comments__title { font-family: var(--f-serif); font-weight: 500; font-size: 1.6rem; margin-bottom: 20px; }
.comments__list, .comments__list .children { list-style: none; padding: 0; }
.comments__list .children { padding-left: 32px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .78rem; color: var(--c-muted); margin: 4px 0 8px; }
.comment-metadata a { color: inherit; text-decoration: none; }
.reply a { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); font: inherit; outline: none; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--c-black); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* Widgets added from Appearance → Widgets */
.sidebar .widget ul { list-style: none; }
.sidebar .widget li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.sidebar .widget li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .alignwide { margin-left: 0; margin-right: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
}

/* ---------- Page / category banner with photo ---------- */
.page-hero--image {
  position: relative; background-size: cover; background-position: center;
  padding: 120px 0 96px; border-bottom: 0; color: #fff;
}
.page-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}
.page-hero--image .page-hero__inner { position: relative; z-index: 1; }
.page-hero--image .page-hero__title,
.page-hero--image .page-hero__desc,
.page-hero--image .breadcrumb,
.page-hero--image .breadcrumb__current,
.page-hero--image .breadcrumb__link { color: #fff; }
.page-hero--image .page-hero__desc { opacity: .92; }
.page-hero--image .chip { background: rgba(255,255,255,.95); color: var(--c-black); border-color: rgba(255,255,255,.95); }
.page-hero--image .chip:hover { background: #fff; color: var(--c-accent); border-color: #fff; }
.page-hero--image .chip.is-active { background: var(--c-black); color: #fff; border-color: var(--c-black); }
@media (max-width: 600px) { .page-hero--image { padding: 80px 0 64px; } }

/* ---------- Single post: sidebar on the right (same as blog page) ---------- */
.article__layout { grid-template-columns: 60px minmax(0, 1fr) 320px; gap: 48px; }
.article__aside { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 40px; }
.article__aside .sidebar { gap: 40px; }
.article__aside .toc { position: static; }
@media (max-width: 1100px) {
  .article__layout { grid-template-columns: 60px minmax(0, 1fr); }
  .article__aside { display: flex; grid-column: 1 / -1; }
  .article__aside .toc { display: none; }
}
@media (max-width: 900px) {
  .article__layout { grid-template-columns: 1fr; }
}
.mini-post > a:first-child { flex-shrink: 0; display: block; width: 72px; height: 72px; }
.mini-post > a:first-child .mini-post__img { width: 72px; height: 72px; object-fit: cover; }

/* ---------- Footer: right "About" column ---------- */
.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.8fr; gap: 36px; }
.site-footer__about-text { font-size: .92rem; line-height: 1.7; color: #bdbdbd; margin-bottom: 14px; }
.site-footer__more { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.site-footer__more:hover { color: var(--c-accent); }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand, .site-footer__col--about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Image logo ---------- */
.logo--default { display: inline-flex; }
.logo__img { display: block; height: 62px; width: auto; transition: height .3s; }
.site-header.is-scrolled .logo__img { height: 44px; }
.logo__img--sm { height: 40px; }
.logo__img--footer { height: 56px; margin-bottom: 4px; }
@media (max-width: 600px) { .logo__img { height: 70px; } .site-header.is-scrolled .logo__img { height: 34px; } }

/* ---------- Share icons ---------- */
.share-btn { color: var(--c-black); position: relative; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn:hover { color: #fff; }
.share-btn.is-copied::after {
  content: attr(data-tip); position: absolute; left: 115%; top: 50%; transform: translateY(-50%);
  background: var(--c-black); color: #fff; font-size: .7rem; padding: 4px 8px; white-space: nowrap; border-radius: 3px;
}
.listing-more__head { margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--c-line); }

/* Header social icons (right side) */
.site-header__right { align-items: center; }
.header-social { display: flex; align-items: center; gap: 6px; }
.header-social__link { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-black); transition: background .25s, color .25s; }
.header-social__link svg { width: 18px; height: 18px; fill: currentColor; }
.header-social__link:hover { background: var(--c-black); color: #fff; }
@media (max-width: 600px) { .header-social { display: none; } }
