/*
Theme Name: HomelyNestor Visual Bold Context Related Links
Theme URI: https://example.com/
Author: Ehyperlink
Description: Dark visual home-improvement magazine theme for HomelyNestor.
Version: 1.2.2
Text Domain: homelynestor
*/

:root{
  --hn-bg:#061827;
  --hn-bg2:#0b2c43;
  --hn-cyan:#2fc7ff;
  --hn-cyan2:#73e0ff;
  --hn-text:#0f2232;
  --hn-muted:#6e7d88;
  --hn-card:#ffffff;
  --hn-line:#dfe7ec;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--hn-text);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(1220px,calc(100% - 32px));margin:auto}

/* Header */
.hn-header{position:sticky;top:0;z-index:999;background:rgba(4,24,39,.97);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 28px rgba(0,0,0,.18)}
.admin-bar .hn-header{top:32px}
.hn-head{min-height:78px;display:grid;grid-template-columns:250px 1fr 300px;gap:24px;align-items:center}
.hn-logo img{display:block;width:245px;max-height:56px;object-fit:contain}
.hn-nav ul{margin:0;padding:0;list-style:none;display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap}
.hn-nav a{display:block;padding:11px 10px;color:#e8f5fb;font-size:12px;font-weight:700;border-radius:6px}
.hn-nav a:hover,.hn-nav .current-menu-item>a{background:rgba(47,199,255,.12);color:var(--hn-cyan2)}
.hn-search{height:42px;display:grid;grid-template-columns:1fr 44px;border:1px solid rgba(255,255,255,.18);border-radius:22px;overflow:hidden;background:#fff}
.hn-search input{border:0;outline:0;padding:0 15px;color:#405461;font-size:12px}
.hn-search button{border:0;background:linear-gradient(180deg,#34c9ff,#1598d7);color:#fff;font-size:18px}

/* Hero */
.hn-hero{position:relative;overflow:hidden;background:var(--hn-bg);min-height:540px}
.hn-hero-bg{position:absolute;inset:0}
.hn-hero-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(.62) saturate(.92)}
.hn-hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,20,33,.96) 0%,rgba(5,31,49,.85) 42%,rgba(5,31,49,.18) 75%)}
.hn-hero-inner{position:relative;z-index:2;min-height:540px;display:flex;align-items:center}
.hn-hero-copy{max-width:630px;padding:52px 0;color:#fff}
.hn-kicker{font-size:11px;letter-spacing:.17em;text-transform:uppercase;color:#61d7ff;font-weight:900}
.hn-hero h1{margin:10px 0 16px;font:700 clamp(3.5rem,6vw,6rem)/.96 Georgia,serif;letter-spacing:-.04em}
.hn-hero h1 span{color:var(--hn-cyan)}
.hn-hero p{max-width:560px;margin:0;color:#d8e8f0;font-size:16px;line-height:1.55}
.hn-actions{display:flex;gap:12px;margin-top:24px}
.hn-btn{display:inline-flex;min-height:46px;align-items:center;padding:0 20px;border-radius:7px;font-size:12px;font-weight:900}
.hn-btn.primary{background:linear-gradient(180deg,#3bd1ff,#179cd9);color:#032033}
.hn-btn.secondary{border:1px solid rgba(255,255,255,.6);color:#fff;background:rgba(255,255,255,.03)}

.hn-category-strip{position:relative;z-index:5;margin-top:-38px}
.hn-category-strip-inner{background:#fff;border-radius:18px;box-shadow:0 20px 55px rgba(6,31,48,.18);padding:16px;display:grid;grid-template-columns:repeat(13,1fr);gap:8px}
.hn-mini-cat{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 4px;border-radius:10px;transition:.2s}
.hn-mini-cat:hover{background:#edfaff;transform:translateY(-2px)}
.hn-mini-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf7fc;color:#0c709b;font-size:18px}
.hn-mini-cat strong{font-size:10px;text-align:center;line-height:1.15}

/* Sections */
.hn-section{padding:54px 0}
.hn-section.alt{background:#f7fafc}
.hn-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.hn-section-head h2{margin:0;font:700 2.3rem/1.05 Georgia,serif;color:#112a3d}
.hn-section-head p{margin:6px 0 0;color:#7b8993;font-size:12px}
.hn-section-head>a{font-size:11px;font-weight:800;color:#0878a9}

/* Categories */
.hn-cat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hn-cat-card{position:relative;height:220px;overflow:hidden;border-radius:14px;box-shadow:0 10px 25px rgba(14,43,63,.08)}
.hn-cat-card img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.hn-cat-card:hover img{transform:scale(1.04)}
.hn-cat-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(4,26,42,.92))}
.hn-cat-card span{position:absolute;z-index:2;left:16px;right:16px;bottom:14px;color:#fff;display:flex;justify-content:space-between;align-items:center}
.hn-cat-card strong{font:700 1.05rem Georgia,serif}
.hn-cat-card b{color:#6edcff;font-size:20px}

/* Articles */
.hn-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hn-card{overflow:hidden;border:1px solid var(--hn-line);border-radius:12px;background:#fff;box-shadow:0 10px 25px rgba(14,43,63,.06)}
.hn-card-img{display:block;height:210px;overflow:hidden}
.hn-card-img img{width:100%;height:100%;object-fit:cover}
.hn-card-body{padding:15px 16px 17px}
.hn-card-body>small{color:#0792c6;font-size:9px;font-weight:900;text-transform:uppercase}
.hn-card h3{margin:7px 0 8px;font:700 1.15rem/1.17 Georgia,serif;color:#15324a}
.hn-card p{margin:0;color:#74838e;font-size:11px;line-height:1.48}
.hn-meta{display:flex;justify-content:space-between;margin-top:12px;color:#929da5;font-size:9px}

/* Feature band */
.hn-band{background:linear-gradient(135deg,#072238,#0d3a56);color:#fff}
.hn-band-inner{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:center;padding:36px 0}
.hn-band h2{margin:0;font:700 2.2rem/1.05 Georgia,serif}
.hn-band p{color:#c8d9e4;font-size:12px;line-height:1.5}
.hn-band-points{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.hn-band-points div{padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04)}
.hn-band-points b{display:block;color:#65d9ff;font-size:14px}
.hn-band-points span{font-size:10px;color:#c9dae4}

/* Footer */
.hn-footer{background:#041725;color:#dce8ef;border-top:2px solid #2bc9ff}
.hn-footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:36px;padding:44px 0 34px}
.hn-footer-brand img{width:260px;max-height:62px}
.hn-footer-brand p{max-width:340px;color:#aebfc9;font-size:11px;line-height:1.6}
.hn-footer-col{display:flex;flex-direction:column;gap:8px}
.hn-footer h3{margin:0 0 8px;font:700 1rem Georgia,serif;color:#fff}
.hn-footer a{color:#c3d4dd;font-size:10px}
.hn-footer a:hover{color:#64dcff}
.hn-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:15px 0 20px;border-top:1px solid rgba(255,255,255,.1);font-size:9px;color:#91a6b3}

/* Single post */
.hn-post-hero{background:#f3f7f9;padding:42px 0 28px;border-bottom:1px solid #e0e7eb}
.hn-post-hero h1{max-width:900px;margin:8px 0 10px;font:700 clamp(2.5rem,5vw,4.3rem)/.98 Georgia,serif;color:#12324a}
.hn-post-meta{display:flex;gap:8px;color:#798791;font-size:10px}
.hn-post-wrap{width:min(1050px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.hn-article{background:#fff;border:1px solid #e0e7eb;border-radius:14px;box-shadow:0 16px 38px rgba(13,43,64,.08);padding:34px 38px}
.hn-featured img{display:block;width:100%;height:520px;object-fit:cover;border-radius:12px;border:1px solid #dbe3e8;box-shadow:0 14px 30px rgba(12,40,59,.13);margin-bottom:28px}
.hn-entry{font-size:16px;line-height:1.8;color:#344b5d}
.hn-entry>*{max-width:100%;box-sizing:border-box}
.hn-entry h2,.hn-entry h3{font-family:Georgia,serif;color:#17384f}
.hn-entry img{max-width:100%;height:auto;border-radius:10px}
.hn-entry a{color:#078cc0;text-decoration:underline}
.hn-related{margin-top:34px;padding-top:26px;border-top:1px solid #e2e8ec}
.hn-related h2{font:700 2rem Georgia,serif;color:#14354e}
.hn-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.hn-related-card{border:1px solid #e1e7eb;border-radius:9px;overflow:hidden;background:#fff}
.hn-related-card img{width:100%;height:170px;object-fit:cover}
.hn-related-card div{padding:11px}
.hn-related-card h3{margin:0;font:700 .95rem Georgia,serif}

@media(max-width:1100px){
  .hn-head{grid-template-columns:220px 1fr}.hn-search{grid-column:1/-1}
  .hn-category-strip-inner{grid-template-columns:repeat(7,1fr)}
  .hn-cat-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .admin-bar .hn-header{top:46px}
  .hn-header{position:relative}
  .hn-head{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .hn-nav ul{justify-content:flex-start}
  .hn-category-strip{margin-top:0;padding-top:16px}
  .hn-category-strip-inner{grid-template-columns:repeat(4,1fr)}
  .hn-cat-grid,.hn-article-grid{grid-template-columns:repeat(2,1fr)}
  .hn-band-inner{grid-template-columns:1fr}
  .hn-footer-grid{grid-template-columns:1fr 1fr}
  .hn-featured img{height:360px}
}
@media(max-width:560px){
  .hn-category-strip-inner,.hn-cat-grid,.hn-article-grid,.hn-related-grid,.hn-footer-grid{grid-template-columns:1fr}
  .hn-mini-cat{flex-direction:row;justify-content:flex-start}
  .hn-hero h1{font-size:3rem}
  .hn-actions{flex-direction:column;align-items:flex-start}
  .hn-article{padding:20px 16px}
  .hn-featured img{height:260px}
  .hn-footer-bottom{flex-direction:column}
}


/* =========================================================
   v1.2 — Related Links inside article context
   ========================================================= */

.hn-context-related{
  width:100%!important;
  max-width:100%!important;
  margin:30px 0 32px!important;
  padding:18px!important;
  background:linear-gradient(135deg,#f2f9fc,#ffffff)!important;
  border:1px solid #d8e8ef!important;
  border-left:4px solid #21bfe9!important;
  border-radius:10px!important;
  box-shadow:0 9px 22px rgba(10,54,79,.07)!important;
  box-sizing:border-box!important;
}

.hn-context-related-label{
  margin-bottom:11px!important;
  color:#067fa9!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

.hn-context-related-list{
  display:grid!important;
  gap:8px!important;
}

.hn-context-related-list a{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-height:44px!important;
  padding:10px 12px!important;
  background:#fff!important;
  border:1px solid #e0e9ee!important;
  border-radius:7px!important;
  color:#17394f!important;
  text-decoration:none!important;
  font-weight:700!important;
  line-height:1.35!important;
  transition:.18s ease!important;
}

.hn-context-related-list a:hover{
  border-color:#63cae8!important;
  background:#f7fdff!important;
  transform:translateX(2px)!important;
}

.hn-context-related-list span{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}

.hn-context-related-list b{
  flex:0 0 auto!important;
  color:#11a9d4!important;
  font-size:18px!important;
}

@media(max-width:600px){
  .hn-context-related{
    padding:14px!important;
    margin:24px 0!important;
  }
  .hn-context-related-list a{
    min-height:42px!important;
    padding:9px 10px!important;
  }
}

/* Scoped contact page: simple, accessible and responsive. */
.hn-contact-shell{max-width:1160px;margin:0 auto;padding:48px 24px 72px}
.hn-contact-intro{max-width:700px;margin-bottom:32px}
.hn-contact-intro h1{font-size:clamp(38px,6vw,68px);line-height:1.06;letter-spacing:-.045em;margin:18px 0;color:#061827}
.hn-contact-intro h1 span{color:#2fc7ff}
.hn-contact-intro>p{font-size:18px;line-height:1.75;color:#536775}
.hn-contact-grid{display:grid;grid-template-columns:.85fr 1.3fr;gap:24px;align-items:stretch}
.hn-contact-note{background:#061827;color:#fff;border-radius:24px;padding:38px;display:flex;flex-direction:column;min-width:0}
.hn-contact-badge{width:56px;height:56px;background:#2fc7ff;border-radius:18px;display:grid;place-items:center;font-size:30px;margin-bottom:36px}
.hn-contact-note h2{color:#fff;font-size:30px;line-height:1.3;letter-spacing:-.025em;margin:0 0 18px}
.hn-contact-note p{color:#cbd3e1;line-height:1.8;margin:0 0 36px}
.hn-contact-label{color:#b6c4d9;font-size:11px;font-weight:700;letter-spacing:.15em;margin-bottom:12px}
.hn-contact-note>a{color:#fff;font-size:18px;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.hn-contact-note-bottom{border-top:1px solid #ffffff26;margin-top:auto;padding-top:24px;font-size:12px;color:#cbd3e1}
.hn-contact-card{background:#fff;border:1px solid #e1e6ed;border-radius:24px;padding:36px;box-shadow:0 12px 40px #06182708;min-width:0}
.hn-contact-card h2{font-size:26px;line-height:1.3;color:#061827;margin:0 0 8px}
.hn-contact-card>p{color:#667085;margin:0 0 26px;line-height:1.6}
 .hn-contact-card .hn-kicker{display:block;margin-bottom:18px}
.hn-contact-card .hn-contact-copy{font-size:16px;line-height:1.85;color:#536775;margin:0 0 20px}
.hn-contact-card .hn-contact-copy a{color:#061827;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.hn-contact-email-button{display:inline-flex;align-items:center;gap:26px;background:#061827;color:#fff!important;border-radius:12px;padding:15px 22px;text-decoration:none;font-weight:700;margin:8px 0 20px}
.hn-contact-email-button:hover{background:#2d4262}
.hn-contact-shell a:focus-visible{outline:3px solid #2fc7ff;outline-offset:4px}
.hn-contact-card .hn-contact-small{font-size:13px;line-height:1.7;color:#667085;margin:0}
@media(max-width:760px){.hn-contact-shell{padding:32px 18px 48px}.hn-contact-grid{grid-template-columns:1fr}.hn-contact-note,.hn-contact-card{padding:26px}.hn-contact-note-bottom{margin-top:28px}.hn-contact-badge{margin-bottom:24px}.hn-contact-note h2{font-size:26px}}
@media(max-width:440px){.hn-contact-email-button{display:flex;justify-content:space-between;gap:12px;font-size:14px}}

.hn-contact-back{display:inline-block;margin-bottom:24px;color:#536775;font-size:14px}.hn-contact-intro .hn-kicker,.hn-contact-card .hn-kicker{color:#08749f}.hn-contact-card .hn-contact-copy a{color:#08749f}

/* Scoped wrapping and responsive footer safeguards. */
.hn-contact-shell *, .hn-footer-col, .hn-article-card{min-width:0;overflow-wrap:anywhere}
.hn-contact-email-button{max-width:100%;white-space:normal}
.hn-footer-grid{grid-template-columns:1.45fr repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.hn-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hn-footer-grid{grid-template-columns:minmax(0,1fr)}}
