/* Travel Network Canada: Editorial Design System v3
   Loaded last to normalize legacy and current templates without destructive rewrites. */
:root {
  --tnc-ink:#10233f; --tnc-muted:#52647a; --tnc-blue:#075985; --tnc-blue-dark:#082f49;
  --tnc-sky:#eaf6fb; --tnc-gold:#d49a16; --tnc-paper:#ffffff; --tnc-wash:#f5f8fb;
  --tnc-border:#d9e2ec; --tnc-success:#166534; --tnc-radius:18px;
  --tnc-shadow:0 14px 38px rgba(15,35,55,.10); --tnc-shadow-soft:0 7px 22px rgba(15,35,55,.07);
  --tnc-content:1180px; --tnc-reading:760px;
}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body.tnc-site{background:var(--tnc-paper);color:var(--tnc-ink);font-size:17px;line-height:1.7;overflow-x:hidden}
body.tnc-site *,body.tnc-site *::before,body.tnc-site *::after{box-sizing:border-box}
body.tnc-site img{max-width:100%;height:auto}
body.tnc-site .container{width:min(calc(100% - 40px),var(--tnc-content));margin-inline:auto}
body.tnc-site main{min-height:55vh}
body.tnc-site h1,body.tnc-site h2,body.tnc-site h3,body.tnc-site h4{color:var(--tnc-ink);line-height:1.15;text-wrap:balance;letter-spacing:-.025em}
body.tnc-site h1{font-size:clamp(2.35rem,5.5vw,4.75rem);max-width:17ch}
body.tnc-site h2{font-size:clamp(1.75rem,3.5vw,2.75rem);margin-bottom:.8rem}
body.tnc-site h3{font-size:clamp(1.15rem,2vw,1.45rem)}
body.tnc-site p{max-width:75ch}
body.tnc-site a{text-underline-offset:.18em}
body.tnc-site :focus-visible{outline:3px solid #f59e0b;outline-offset:3px;border-radius:4px}

/* Header */
body.tnc-site .site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(15px);border-bottom:1px solid rgba(15,35,55,.10);box-shadow:0 4px 20px rgba(15,35,55,.05)}
body.tnc-site .header-inner{min-height:78px;gap:28px}
body.tnc-site .logo img{display:block;max-height:52px;width:auto}
body.tnc-site .nav-list>li>a,body.tnc-site .nav-link{font-weight:700;letter-spacing:.01em}
body.tnc-site .dropdown-menu{border:1px solid var(--tnc-border);border-radius:14px;box-shadow:var(--tnc-shadow);padding:12px;background:#fff}
body.tnc-site .dropdown-menu a{border-radius:9px}

/* Editorial heroes */
body.tnc-site .page-hero,body.tnc-site .hero,body.tnc-site .country-hero{
  position:relative;isolation:isolate;padding:clamp(64px,9vw,118px) 0;
  background:linear-gradient(130deg,var(--tnc-blue-dark),#075985 58%,#0e7490);color:#fff;overflow:hidden;
}
body.tnc-site .page-hero::before,body.tnc-site .country-hero::before{content:"";position:absolute;inset:-40%;z-index:-1;background:radial-gradient(circle at 76% 30%,rgba(255,255,255,.18),transparent 28%),radial-gradient(circle at 18% 82%,rgba(212,154,22,.22),transparent 24%)}
body.tnc-site .page-hero h1,body.tnc-site .page-hero h2,body.tnc-site .page-hero p,body.tnc-site .hero h1,body.tnc-site .country-hero h1{color:#fff}
body.tnc-site .page-hero .lead,body.tnc-site .hero .lead,body.tnc-site .dest-summary{font-size:clamp(1.08rem,2vw,1.32rem);max-width:68ch;color:rgba(255,255,255,.9)}
body.tnc-site .eyebrow{display:inline-flex;align-items:center;gap:.5rem;text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-size:.78rem;color:#f7d676!important}
body.tnc-site .breadcrumb,body.tnc-site .dest-breadcrumb{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;padding-block:20px;font-size:.93rem;color:var(--tnc-muted)}
body.tnc-site .page-hero .breadcrumb,body.tnc-site .page-hero .dest-breadcrumb{padding:0 0 18px;color:rgba(255,255,255,.78)}
body.tnc-site .page-hero .breadcrumb a,body.tnc-site .page-hero .dest-breadcrumb a{color:#fff}

/* Sections and cards */
body.tnc-site .section,body.tnc-site .content-section,body.tnc-site .destination-main,body.tnc-site .widget-section,body.tnc-site .hotel-list{padding:clamp(52px,7vw,90px) 0}
body.tnc-site .section-alt,body.tnc-site .content-section:nth-of-type(even){background:var(--tnc-wash)}
body.tnc-site .section-intro{font-size:1.12rem;color:var(--tnc-muted);margin:0 auto 36px;max-width:72ch}
body.tnc-site .category-grid,body.tnc-site .content-card-grid,body.tnc-site .hotels-grid,body.tnc-site .stats-grid,body.tnc-site .resource-grid,body.tnc-site .editorial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.tnc-site .category-card,body.tnc-site .content-card,body.tnc-site .hotel-card,body.tnc-site .stat-card,body.tnc-site .resource-card,body.tnc-site .editorial-card{
  background:#fff;border:1px solid var(--tnc-border);border-radius:var(--tnc-radius);box-shadow:var(--tnc-shadow-soft);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body.tnc-site .category-card:hover,body.tnc-site .content-card:hover,body.tnc-site .hotel-card:hover,body.tnc-site .resource-card:hover,body.tnc-site .editorial-card:hover{transform:translateY(-4px);box-shadow:var(--tnc-shadow);border-color:#a8c9dc}
body.tnc-site .category-content,body.tnc-site .content-card,body.tnc-site .hotel-card__body,body.tnc-site .resource-card,body.tnc-site .editorial-card{padding:26px}
body.tnc-site .content-card p,body.tnc-site .category-desc,body.tnc-site .hotel-card__description{color:var(--tnc-muted)}
body.tnc-site .content-card p+ p{padding-top:12px;border-top:1px solid #edf1f5}
body.tnc-site .card-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:var(--tnc-sky);color:var(--tnc-blue);font-size:1.25rem;margin-bottom:18px}

/* Buttons */
body.tnc-site .btn-primary,body.tnc-site .btn-secondary,body.tnc-site .button,body.tnc-site button[type=submit],body.tnc-site input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:12px 20px;border-radius:999px;font-weight:800;text-decoration:none;line-height:1.2;border:2px solid transparent;cursor:pointer}
body.tnc-site .btn-primary,body.tnc-site button[type=submit],body.tnc-site input[type=submit]{background:var(--tnc-blue);color:#fff;box-shadow:0 8px 18px rgba(7,89,133,.18)}
body.tnc-site .btn-primary:hover{background:var(--tnc-blue-dark);color:#fff}
body.tnc-site .btn-secondary{background:#fff;color:var(--tnc-blue);border-color:#9fc3d8}
body.tnc-site .button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}

/* Content readability */
body.tnc-site .prose,body.tnc-site .article-content,body.tnc-site .legal-content,body.tnc-site .blog-post-content{max-width:var(--tnc-reading);margin-inline:auto}
body.tnc-site .prose p+ p,body.tnc-site .article-content p+ p{margin-top:1.2em}
body.tnc-site blockquote{margin:28px 0;padding:20px 24px;border-left:5px solid var(--tnc-gold);background:#fff8e7;border-radius:0 12px 12px 0}
body.tnc-site table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--tnc-border);border-radius:14px;overflow:hidden;background:#fff}
body.tnc-site th{background:var(--tnc-blue-dark);color:#fff;text-align:left}
body.tnc-site th,body.tnc-site td{padding:13px 15px;border-bottom:1px solid var(--tnc-border)}
body.tnc-site details{background:#fff;border:1px solid var(--tnc-border);border-radius:14px;margin:12px 0;box-shadow:0 4px 12px rgba(15,35,55,.04)}
body.tnc-site summary{cursor:pointer;padding:18px 52px 18px 20px;font-weight:800;position:relative;list-style:none}
body.tnc-site details p{padding:0 20px 20px;color:var(--tnc-muted)}

/* Destination template */
body.tnc-site .dest-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
body.tnc-site .dest-content>section,body.tnc-site .dest-content>.editorial-panel{margin-bottom:32px;padding:28px;background:#fff;border:1px solid var(--tnc-border);border-radius:var(--tnc-radius);box-shadow:var(--tnc-shadow-soft)}
body.tnc-site .dest-highlights,body.tnc-site .check-list{display:grid;gap:13px;padding:0;list-style:none}
body.tnc-site .dest-highlights li,body.tnc-site .check-list li{position:relative;padding-left:30px}
body.tnc-site .dest-highlights li::before,body.tnc-site .check-list li::before{content:"✓";position:absolute;left:0;top:0;color:var(--tnc-success);font-weight:900}
body.tnc-site .dest-sidebar{position:sticky;top:108px;background:linear-gradient(150deg,#fff,var(--tnc-sky));border:1px solid #c7dce8;border-radius:var(--tnc-radius);padding:26px;box-shadow:var(--tnc-shadow-soft)}
body.tnc-site .quick-facts{display:grid;gap:0;margin:20px 0}
body.tnc-site .quick-fact{padding:14px 0;border-bottom:1px solid var(--tnc-border)}
body.tnc-site .quick-fact:last-child{border-bottom:0}
body.tnc-site .tag-list{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
body.tnc-site .tag-list li{padding:7px 11px;border-radius:999px;background:var(--tnc-sky);color:var(--tnc-blue-dark);font-size:.9rem;font-weight:700}

/* Forms and widgets */
body.tnc-site input,body.tnc-site select,body.tnc-site textarea{max-width:100%;min-height:48px;border:1px solid #b8c7d4;border-radius:10px;padding:11px 13px;background:#fff;color:var(--tnc-ink);font:inherit}
body.tnc-site textarea{min-height:140px;resize:vertical}
body.tnc-site iframe{max-width:100%;border:0;border-radius:14px}
body.tnc-site .widget-section{width:min(calc(100% - 40px),var(--tnc-content));margin-inline:auto}

/* Legacy shell normalization */
body.tnc-site>.container.hotels-page,body.tnc-site main.container{padding-top:24px;padding-bottom:70px}
body.tnc-site .hotels-page .country-hero{border-radius:24px;padding:52px clamp(24px,5vw,64px);margin:18px 0 36px}
body.tnc-site .hotel-card__image{aspect-ratio:16/10;background:#e8eef3;overflow:hidden}
body.tnc-site .hotel-card__image img{width:100%;height:100%;object-fit:cover}
body.tnc-site .hotel-card__amenities ul{padding-left:20px}
body.tnc-site .planning-cta .container{padding:clamp(30px,5vw,56px);border-radius:24px;background:linear-gradient(135deg,var(--tnc-blue-dark),var(--tnc-blue));color:#fff;box-shadow:var(--tnc-shadow)}
body.tnc-site .planning-cta h2,body.tnc-site .planning-cta p{color:#fff}

/* Footer */
body.tnc-site .site-footer{margin-top:0}
body.tnc-site .footer-main{padding-top:64px}

/* Responsive */
@media (max-width:1000px){
 body.tnc-site .category-grid,body.tnc-site .content-card-grid,body.tnc-site .hotels-grid,body.tnc-site .resource-grid,body.tnc-site .editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tnc-site .dest-layout{grid-template-columns:1fr}.tnc-site .dest-sidebar{position:static}
}
@media (max-width:760px){
 body.tnc-site{font-size:16px}.tnc-site .container{width:min(calc(100% - 28px),var(--tnc-content))}
 body.tnc-site .site-header{position:relative}.tnc-site .header-inner{min-height:68px}
 body.tnc-site .logo img{max-height:44px}.tnc-site .main-nav{max-height:calc(100vh - 68px);overflow:auto}
 body.tnc-site .category-grid,body.tnc-site .content-card-grid,body.tnc-site .hotels-grid,body.tnc-site .stats-grid,body.tnc-site .resource-grid,body.tnc-site .editorial-grid{grid-template-columns:1fr;gap:16px}
 body.tnc-site .page-hero,body.tnc-site .hero,body.tnc-site .country-hero{padding:54px 0}
 body.tnc-site .button-row{display:grid}.tnc-site .button-row>*{width:100%}
 body.tnc-site .table-wrap,body.tnc-site .responsive-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.tnc-site table{min-width:620px}
 body.tnc-site .category-content,body.tnc-site .content-card,body.tnc-site .hotel-card__body,body.tnc-site .resource-card,body.tnc-site .editorial-card{padding:21px}
}
@media (max-width:420px){body.tnc-site .container{width:min(calc(100% - 22px),var(--tnc-content))}body.tnc-site h1{font-size:2.2rem}.tnc-site .page-hero{padding:44px 0}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.tnc-site *,body.tnc-site *::before,body.tnc-site *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
