/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
 * ------------------------------------------------------------------------- */

/* Scotlander: proportional JNews logo in desktop and mobile headers. */
.jeg_header .jeg_logo img,
.jeg_mobile_wrapper .jeg_logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .jeg_mobile_wrapper .jeg_logo img,
  .jeg_header .jeg_logo img { max-height: 48px; }
}

/* Scotlander: readable editorial wordmark in JNews article headers. */
.single-post .jeg_header .jeg_logo a img { display: none !important; }
.single-post .jeg_header .jeg_logo a::after {
  content: "SCOTLANDER";
  display: inline-block;
  color: #173b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(21px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .single-post .jeg_header .jeg_logo a::after { font-size: 21px; }
}

/* Scotlander: coherent editorial typography and accessible links. */
.single-post .entry-content,
.single-post .jeg_post_content {
  line-height: 1.8;
  overflow-wrap: break-word;
}
.single-post .entry-content p,
.single-post .jeg_post_content p { margin-bottom: 1.35em; }
.single-post .entry-content a,
.single-post .jeg_post_content a {
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.single-post .entry-content a:focus-visible,
.single-post .jeg_post_content a:focus-visible,
.jeg_header a:focus-visible {
  outline: 2px solid #173b35;
  outline-offset: 3px;
}

/* Scotlander: legible mobile wordmark instead of the tiny raster logo. */
@media (max-width: 767px) {
  .jeg_mobile_wrapper .jeg_logo a img { display: none !important; }
  .jeg_mobile_wrapper .jeg_logo a::after {
    content: "SCOTLANDER";
    display: inline-block;
    color: #f5f2e8;
    font: 700 23px/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: .055em;
    white-space: nowrap;
  }
}

/* Scotlander: editorial design system for JNews article and archive pages. */
:root { --sc-ink: #183c34; --sc-paper: #f6f4ec; --sc-accent: #9c7852; }
.single-post .jeg_post_title,
.single-post .entry-header .jeg_post_title {
  color: var(--sc-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14;
}
.single-post .jeg_post_content h2,
.single-post .jeg_post_content h3,
.single-post .entry-content h2,
.single-post .entry-content h3 {
  color: var(--sc-ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-top: 1.5em;
}
.single-post .jeg_post_content blockquote,
.single-post .entry-content blockquote {
  border-left: 3px solid var(--sc-accent);
  background: var(--sc-paper);
  color: var(--sc-ink);
  padding: 1.2em 1.5em;
  margin: 1.7em 0;
}
.jeg_postblock_content .jeg_post_title a,
.jeg_postblock_content .jeg_post_title a:hover { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.jeg_postblock_content .jeg_post_title a:hover { color: var(--sc-ink); }
@media (max-width: 767px) {
  .single-post .jeg_post_title { font-size: clamp(28px, 8vw, 38px); line-height: 1.14; }
  .single-post .jeg_post_content,
  .single-post .entry-content { font-size: 16px; line-height: 1.72; }
  .single-post .jeg_post_content blockquote,
  .single-post .entry-content blockquote { padding: 1em 1.1em; }
  .jeg_mobile_wrapper .jeg_logo a::after { font-size: 20px; }
}

/* Scotlander: refined magazine cards, category headings and image behavior. */
.jeg_postblock_content .jeg_post_title,
.jeg_postblock_content .jeg_post_title a {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.27;
  letter-spacing: -.012em;
}
.jeg_postblock_content .jeg_post_title a { color: #183c34; }
.jeg_postblock_content .jeg_post_title a:hover { color: #846441; }
.jeg_block_heading .jeg_block_title,
.jeg_cat_title,
.jeg_archive_title {
  color: #183c34;
  letter-spacing: -.015em;
}
.jeg_postblock_content .jeg_post_excerpt {
  line-height: 1.65;
  overflow-wrap: break-word;
}
.jeg_postblock_content img,
.jeg_post_featured img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
  .jeg_postblock_content .jeg_post_title { line-height: 1.3; }
  .jeg_postblock_content .jeg_post_excerpt { line-height: 1.6; }
}

/* Scotlander: visual polish across editorial cards and page navigation. */
.jeg_postblock .jeg_thumb,
.jeg_postblock .jeg_postblock_content .jeg_thumb {
  overflow: hidden;
  background: #f0eee7;
}
.jeg_postblock .jeg_thumb img {
  transition: transform .35s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .jeg_postblock .jeg_thumb:hover img { transform: scale(1.035); }
}
.jeg_postblock .jeg_post_meta,
.jeg_postblock .jeg_post_meta a {
  color: #746e64;
}
.jeg_postblock .jeg_post_excerpt { color: #4c514b; }
.jeg_block_heading { margin-bottom: 25px; }
.jeg_block_heading .jeg_block_title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
}
.jeg_pagination a:focus-visible,
.jeg_postblock a:focus-visible,
.jeg_footer a:focus-visible {
  outline: 2px solid #183c34;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .jeg_postblock .jeg_thumb img { transition: none; }
}

/* Scotlander: mobile header branding across JNews header variants. */
@media (max-width: 767px) {
  .jeg_mobile_logo img,
  .jeg_mobile_wrapper .jeg_mobile_logo img { max-height: 36px; width: auto; }
  .jeg_mobile_logo a,
  .jeg_mobile_wrapper .jeg_logo a { display: inline-flex; align-items: center; min-height: 34px; }
  .jeg_mobile_logo a::after {
    content: "SCOTLANDER";
    color: #fff;
    font: 700 20px/1.1 Georgia, 'Times New Roman', serif;
    letter-spacing: .03em;
    white-space: nowrap;
  }
  .jeg_mobile_logo a img { display: none !important; }
}

/* Scotlander: unify the mobile homepage masthead with article headers. */
@media (max-width: 767px) {
  body.home .jeg_mobile_wrapper .jeg_logo a img,
  body.home .jeg_mobile_logo a img,
  body.home .jeg_header .jeg_logo a img { display: none !important; }
  body.home .jeg_mobile_wrapper .jeg_logo a::after,
  body.home .jeg_mobile_logo a::after,
  body.home .jeg_header .jeg_logo a::after {
    content: "SCOTLANDER";
    display: inline-block;
    font: 700 20px/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: .03em;
    color: #fff;
    white-space: nowrap;
  }
}

/* Scotlander Premium: final unified editorial surfaces and navigation. */
:root { --sc-forest:#183c34; --sc-cream:#f6f4ec; --sc-gold:#aa8656; --sc-body:#353d38; }
.jeg_main_content { color:var(--sc-body); }
.jeg_block_heading { border-bottom:1px solid #dcd9ce; padding-bottom:12px; }
.jeg_block_heading .jeg_block_title { color:var(--sc-forest); }
.jeg_postblock .jeg_post_title a { transition:color .18s ease; }
.jeg_postblock .jeg_thumb { border-radius:5px; }
.jeg_postblock .jeg_post_excerpt { font-size:15px; }
.single-post .jeg_post_content { max-width:100%; }
.single-post .jeg_post_content > p:first-of-type { font-size:clamp(17px,1.7vw,20px); line-height:1.75; color:#33473e; }
.single-post .jeg_post_content img { border-radius:4px; }
.single-post .jeg_post_content figcaption,
.single-post .wp-caption-text { font-size:13px; line-height:1.5; color:#686f68; }
.single-post .jeg_post_content h2 { padding-bottom:.35em; border-bottom:1px solid #e4e1d8; }
.jeg_footer { border-top:3px solid var(--sc-forest); }
.jeg_footer a { text-underline-offset:3px; }
.jeg_pagination a, .jeg_pagination span { border-radius:3px; }
@media(max-width:767px) {
 .jeg_block_heading { margin-bottom:20px; }
 .single-post .jeg_post_content > p:first-of-type { font-size:17px; }
 .single-post .jeg_post_content h2 { font-size:25px; }
 .jeg_postblock .jeg_post_excerpt { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) { .jeg_postblock .jeg_post_title a { transition:none; } }

/* Scotlander destinations: editorial guide treatment, responsive and restrained. */
.page .jeg_post_content,
.page .entry-content { overflow-wrap:break-word; }
.page .jeg_post_content h2,
.page .entry-content h2 {
 color:#183c34;
 font-family:Georgia,'Times New Roman',serif;
 font-size:clamp(26px,2.6vw,36px);
 line-height:1.2;
 letter-spacing:-.025em;
 margin-top:1.5em;
}
.page .jeg_post_content h3,
.page .entry-content h3 {
 color:#183c34;
 font-family:Georgia,'Times New Roman',serif;
 line-height:1.3;
}
.page .jeg_post_content p,
.page .entry-content p { line-height:1.75; }
.page .jeg_post_content a:not(.button),
.page .entry-content a:not(.button) { text-underline-offset:3px; }
.page .jeg_post_content blockquote,
.page .entry-content blockquote {
 background:#f6f4ec;
 border-left:3px solid #aa8656;
 padding:20px 24px;
 color:#183c34;
}
.page .jeg_post_content img,
.page .entry-content img { max-width:100%; height:auto; }
.page .jeg_post_content figcaption,
.page .entry-content figcaption { color:#666d67; font-size:13px; line-height:1.5; }
.page .jeg_post_content table,
.page .entry-content table { width:100%; border-collapse:collapse; }
.page .jeg_post_content th,
.page .entry-content th { background:#f6f4ec; color:#183c34; }
.page .jeg_post_content td,
.page .jeg_post_content th,
.page .entry-content td,
.page .entry-content th { padding:12px 14px; border-bottom:1px solid #e3e1d9; }
@media(max-width:767px) {
 .page .jeg_post_content h2,
 .page .entry-content h2 { font-size:26px; }
 .page .jeg_post_content blockquote,
 .page .entry-content blockquote { padding:15px 17px; }
 .page .jeg_post_content table,
 .page .entry-content table { display:block; overflow-x:auto; }
}

/* Scotlander 2.0 — reading progress, editorial navigation and tactile controls. */
@supports (animation-timeline: scroll()) {
  @keyframes sc-reading-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
  body.single-post::before {
    content:""; position:fixed; z-index:999999; left:0; top:0;
    width:100%; height:4px; background:#b58c51;
    transform:scaleX(0); transform-origin:left center;
    animation:sc-reading-progress linear both;
    animation-timeline:scroll(root block);
    pointer-events:none;
  }
}
@media(prefers-reduced-motion:reduce) {
 body.single-post::before { animation:none; display:none; }
}
html { scroll-padding-top:90px; }
.jeg_main_menu > li > a { letter-spacing:.025em; }
.jeg_main_menu > li > a:hover,
.jeg_main_menu > li.current-menu-item > a { color:#a47b4a; }
.jeg_breadcrumbs, .jeg_breadcrumbs a { color:#63716a; }
.jeg_breadcrumbs a:hover { color:#183c34; }
.single-post .jeg_post_tags a,
.single-post .jeg_post_tag a {
 border:1px solid #d7d4c8;
 background:#f6f4ec;
 color:#183c34;
 padding:5px 10px;
 border-radius:3px;
}
.single-post .jeg_post_tags a:hover,
.single-post .jeg_post_tag a:hover { background:#183c34; color:#fff; }
.jeg_postblock .jeg_post_category a { letter-spacing:.055em; text-transform:uppercase; }
.jeg_postblock .jeg_post_title a:focus-visible,
.jeg_main_menu a:focus-visible { outline:2px solid #aa8656; outline-offset:3px; }
@media(max-width:767px) { html { scroll-padding-top:65px; } }

/* SCOTLANDER SIGNATURE — unmistakable full-bleed editorial cover. */
body.home .sct-premium .sct-hero.sct-hero-editorial {
 background:#102e29!important;
 color:#f6f1e6!important;
 position:relative;
 overflow:hidden;
 padding:0!important;
}
body.home .sct-premium .sct-hero .sct-wrap.sct-hero-layout {
 max-width:1600px!important;
 min-height:clamp(610px,74vh,840px);
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)!important;
 align-items:stretch!important;
 gap:0!important;
 padding:0!important;
}
body.home .sct-premium .sct-hero .sct-hero-copy {
 position:relative; z-index:1;
 padding:clamp(45px,6vw,110px) clamp(28px,5.4vw,96px)!important;
 display:flex; flex-direction:column; justify-content:center;
 background:#102e29!important;
}
body.home .sct-premium .sct-hero .sct-kicker {
 color:#ddc29a!important;
 letter-spacing:.19em!important;
 text-transform:uppercase;
 font-size:11px!important;
 font-weight:700;
}
body.home .sct-premium .sct-hero h1 {
 color:#faf6ea!important;
 font:500 clamp(55px,6.5vw,112px)/.99 Georgia,'Times New Roman',serif!important;
 letter-spacing:-.065em!important;
 max-width:780px!important;
 margin:24px 0 32px!important;
}
body.home .sct-premium .sct-hero .sct-intro {
 color:#d6e0d9!important;
 font-size:clamp(16px,1.35vw,20px)!important;
 line-height:1.75!important;
 max-width:570px!important;
}
body.home .sct-premium .sct-hero .sct-actions { margin-top:28px!important; display:flex; flex-wrap:wrap; gap:12px; }
body.home .sct-premium .sct-hero .sct-button {
 background:#d5b17b!important; color:#112e27!important;
 border:1px solid #d5b17b!important;
 border-radius:0!important;
 padding:16px 24px!important;
 font-size:12px!important; letter-spacing:.08em;
 font-weight:800!important; text-transform:uppercase;
 min-height:50px;
}
body.home .sct-premium .sct-hero .sct-button.alt {
 background:transparent!important; color:#f6f1e6!important;
 border-color:#8a9f92!important;
}
body.home .sct-premium .sct-hero .sct-button:hover { background:#f1d2a0!important; color:#102e29!important; }
body.home .sct-premium .sct-hero .sct-hero-index {
 color:#b6c8bb!important; border-top:1px solid #527064;
 margin-top:clamp(32px,5vw,72px)!important;
 padding-top:20px!important;
}
body.home .sct-premium .sct-hero .sct-hero-visual {
 position:relative!important; min-height:100%!important;
 display:block!important; overflow:hidden;
}
body.home .sct-premium .sct-hero .sct-hero-visual img {
 width:100%!important; height:100%!important;
 position:absolute!important; inset:0;
 object-fit:cover!important;
 filter:saturate(.85) contrast(1.06);
}
body.home .sct-premium .sct-hero .sct-hero-visual::after {
 content:""; position:absolute; inset:55% 0 0;
 background:linear-gradient(transparent,rgba(7,28,24,.7));
 pointer-events:none;
}
body.home .sct-premium .sct-hero .sct-visual-caption {
 position:absolute!important; z-index:1; bottom:35px; left:35px;
 color:#fff!important;
}
@media(max-width:850px) {
 body.home .sct-premium .sct-hero .sct-wrap.sct-hero-layout {
  display:flex!important; flex-direction:column!important; min-height:0!important;
 }
 body.home .sct-premium .sct-hero .sct-hero-copy { padding:54px 24px 42px!important; }
 body.home .sct-premium .sct-hero h1 { font-size:clamp(48px,12vw,78px)!important; }
 body.home .sct-premium .sct-hero .sct-hero-visual { height:360px!important; min-height:360px!important; }
 body.home .sct-premium .sct-hero .sct-hero-index { margin-top:30px!important; }
}
@media(max-width:420px) {
 body.home .sct-premium .sct-hero .sct-actions { flex-direction:column; }
 body.home .sct-premium .sct-hero .sct-button { width:100%; text-align:center; justify-content:center; }
 body.home .sct-premium .sct-hero .sct-hero-visual { height:280px!important; min-height:280px!important; }
}

/* Scotlander editorial edition: coherent rhythm, typography, destination gallery. */
body.home .sct-premium { background:#f5f2e9; color:#183c34; }
body.home .sct-premium .sct-section { padding-block:clamp(65px,8vw,125px)!important; }
body.home .sct-premium .sct-section > .sct-wrap { max-width:1350px!important; }
body.home .sct-premium .sct-section .sct-kicker {
 display:flex; align-items:center; gap:16px;
 color:#967344!important; letter-spacing:.17em!important;
 font-size:11px!important; font-weight:800!important; text-transform:uppercase;
}
body.home .sct-premium .sct-section .sct-kicker::before {
 content:""; width:30px; height:1px; background:#b58c51; flex:none;
}
body.home .sct-premium .sct-section h2 {
 font:500 clamp(35px,4.4vw,64px)/1.08 Georgia,'Times New Roman',serif!important;
 letter-spacing:-.045em!important; color:#173b35!important;
 max-width:900px;
 margin:22px 0 38px!important;
}
body.home .sct-premium .sct-section .sct-grid {
 gap:clamp(14px,2vw,28px)!important;
 align-items:stretch;
}
body.home .sct-premium .sct-section .sct-tile {
 display:flex!important; flex-direction:column!important; justify-content:space-between!important;
 min-height:360px!important; padding:24px!important;
 background:#fbfaf6!important;
 border:1px solid #d9d8ce!important;
 border-radius:0!important;
 box-shadow:none!important;
 text-decoration:none!important;
 transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
body.home .sct-premium .sct-section .sct-tile:hover {
 transform:translateY(-6px)!important;
 border-color:#aa8656!important;
 box-shadow:0 18px 38px rgba(16,46,41,.1)!important;
}
body.home .sct-premium .sct-section .sct-tile > span {
 color:#997648!important; letter-spacing:.13em!important;
 font-size:11px!important; font-weight:800!important;
}
body.home .sct-premium .sct-section .sct-tile img {
 width:100%!important; height:clamp(170px,16vw,250px)!important;
 object-fit:cover!important; margin:0 0 20px!important;
 border-radius:0!important;
}
body.home .sct-premium .sct-section .sct-tile h3 {
 font:500 clamp(25px,2.5vw,38px)/1.12 Georgia,serif!important;
 letter-spacing:-.025em!important; color:#173b35!important;
 margin:12px 0!important;
}
body.home .sct-premium .sct-section .sct-tile p {
 color:#56685e!important; line-height:1.6!important;
 font-size:15px!important;
}
body.home .sct-premium .sct-section.sct-dark {
 background:#183c34!important;
 color:#f7f3e8!important;
}
body.home .sct-premium .sct-section.sct-dark h2,
body.home .sct-premium .sct-section.sct-dark h3 { color:#f7f3e8!important; }
body.home .sct-premium .sct-section.sct-dark p { color:#dce5dd!important; }
body.home .sct-premium .sct-section.sct-dark .sct-kicker { color:#d7b98c!important; }
body.home .sct-premium .sct-section.sct-dark .sct-tile { background:#f8f6ef!important; }
body.home .sct-premium .sct-section.sct-divider { border-top:1px solid #d9d8ce; }
body.home .sc-editorial-feed .wp-block-post-title a {
 color:#183c34!important;
 font:500 clamp(24px,2.25vw,33px)/1.17 Georgia,serif!important;
 letter-spacing:-.02em;
}
body.home .sc-editorial-feed .wp-block-post-excerpt { color:#4e6257; line-height:1.7; }
body.home .sc-editorial-feed .wp-block-post-featured-image img { border-radius:0!important; }
@media(max-width:850px) {
 body.home .sct-premium .sct-section { padding-block:60px!important; }
 body.home .sct-premium .sct-section .sct-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 body.home .sct-premium .sct-section .sct-tile { min-height:300px!important; }
}
@media(max-width:560px) {
 body.home .sct-premium .sct-section { padding-block:44px!important; }
 body.home .sct-premium .sct-section h2 { font-size:35px!important; margin-bottom:24px!important; }
 body.home .sct-premium .sct-section .sct-grid { grid-template-columns:1fr!important; }
 body.home .sct-premium .sct-section .sct-tile { min-height:0!important; }
 body.home .sct-premium .sct-section .sct-tile img { height:220px!important; }
}
@media(prefers-reduced-motion:reduce) {
 body.home .sct-premium .sct-section .sct-tile { transition:none!important; }
 body.home .sct-premium .sct-section .sct-tile:hover { transform:none!important; }
}

/* Scotlander premium 2026: consistent navigation, footer and accessibility. */
.jeg_header .jeg_main_menu > li > a {
  font-weight:600;
  letter-spacing:.025em;
  text-underline-offset:5px;
}
.jeg_header .jeg_main_menu > li.current-menu-item > a,
.jeg_header .jeg_main_menu > li.current-menu-ancestor > a {
  color:#9b7546;
}
.jeg_header .jeg_main_menu .sub-menu a {
  line-height:1.45;
  padding-top:11px;
  padding-bottom:11px;
}
.jeg_header .jeg_main_menu a:focus-visible,
.jeg_mobile_wrapper a:focus-visible,
.jeg_footer a:focus-visible,
.sct-premium a:focus-visible {
  outline:3px solid #c79b61;
  outline-offset:3px;
}
.jeg_footer .widget { overflow-wrap:anywhere; }
.jeg_footer .widget h3, .jeg_footer .widget .widget-title {
  font-family:Georgia,'Times New Roman',serif;
  line-height:1.25;
  letter-spacing:-.01em;
}
.jeg_footer .widget p { line-height:1.7; }
.jeg_footer .widget a { text-underline-offset:3px; }
.jeg_footer .widget a:hover { text-decoration:underline; }
body.home .sct-premium .sct-hero h1,
body.home .sct-premium .sct-section h2 { text-wrap:balance; }
body.home .sc-editorial-feed .wp-block-post-title a:focus-visible {
  outline:3px solid #9b7546;
  outline-offset:4px;
}
@media(max-width:767px) {
  .jeg_footer .widget { margin-bottom:28px; }
  .jeg_mobile_wrapper .jeg_logo a::after { letter-spacing:.02em; }
  body.home .sct-premium .sct-hero h1 { overflow-wrap:normal; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
}

/* ------------------------------------------------------------------------- */