/*
Theme Name: Noblefolio Apply
Theme URI: https://apply.noblefolio.com
Author: Noblefolio
Author URI: https://apply.noblefolio.com
Description: A fast, modern immigration publishing theme with built-in Canada, Australia and U.S. planning tools.
Version: 5.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noblefolio-apply
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
*/

:root {
  --red: #d92d20;
  --red-dark: #b42318;
  --red2: var(--red-dark);
  --red-soft: #fff1f0;
  --red-bg: var(--red-soft);
  --navy: #0b1220;
  --navy-2: #12243f;
  --navy2: var(--navy-2);
  --blue: #175cd3;
  --blue-soft: #eff8ff;
  --ink: #101828;
  --sub: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --surface: #f7f8fa;
  --surface-2: #f2f4f7;
  --card: #fff;
  --tag: #f2f4f7;
  --gold: #fdb022;
  --green: #079455;
  --orange: #ec4a0a;
  --radius-sm: 10px;
  --r-sm: var(--radius-sm);
  --radius: 16px;
  --r: var(--radius);
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow: 0 14px 36px rgba(16, 24, 40, .10);
  --shadow-lg: 0 28px 70px rgba(16, 24, 40, .18);
  --ease: .2s ease;
  --header-height: 72px;
  --content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.inner {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
}

.site-content {
  min-height: 30vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(23, 92, 211, .45);
  outline-offset: 3px;
}

/* Announcement */
.announcement-bar {
  position: relative;
  z-index: 501;
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
}

.announcement-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.announcement-inner a {
  color: #fff;
  font-weight: 700;
}

.announcement-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, .13);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(228, 231, 236, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--ease), background var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-wrap {
  flex: 0 0 auto;
}

.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--red), #f04438);
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 45, 32, .22);
  font-size: 1rem;
  font-weight: 900;
}

.site-logo-text {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.site-logo-text strong {
  color: var(--red);
  font-weight: 850;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--sub);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: var(--red-soft);
  color: var(--red-dark);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
}

.primary-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  white-space: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button,
.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--sub);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.icon-button:hover,
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--red);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(217, 45, 32, .16);
  transition: background var(--ease), transform var(--ease);
}

.header-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.search-panel {
  position: absolute;
  inset: 100% 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel[hidden] {
  display: none;
}

.search-panel-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(280px, 650px) 40px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.search-panel-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.search-panel-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 1.5rem;
  line-height: 1;
}

/* Hero */
.site-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(217, 45, 32, .22), transparent 29%),
    radial-gradient(circle at 5% 100%, rgba(23, 92, 211, .18), transparent 27%),
    linear-gradient(132deg, #09111f 0%, #10233e 58%, #132c4d 100%);
  color: #fff;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr);
  gap: 70px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 710px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #f97066;
}

.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  font-weight: 880;
  letter-spacing: -.055em;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 24px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 45, 32, .20);
}

.button-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 10px 24px rgba(217, 45, 32, .26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
}

.button-outline {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--sub);
}

.button-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.button-light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.button-light:hover {
  background: #f9fafb;
}

.button-block {
  width: 100%;
}

.hero-search {
  max-width: 620px;
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.hero-search svg {
  width: 20px;
  fill: none;
  stroke: rgba(255, 255, 255, .68);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: .9rem;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.hero-search button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .64);
  font-size: .75rem;
  font-weight: 650;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust b {
  color: #32d583;
}

.pathfinder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.pathfinder-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #f79009, #175cd3);
}

.pathfinder-top {
  padding: 28px 28px 20px;
}

.pathfinder-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pathfinder-top h2 {
  margin-bottom: 7px;
  font-size: 1.3rem;
}

.pathfinder-top p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.pathfinder-links {
  padding: 0 12px 14px;
}

.pathfinder-links a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border-top: 1px solid var(--line);
  border-radius: 12px;
  transition: background var(--ease), transform var(--ease);
}

.pathfinder-links a:hover {
  background: var(--surface);
  transform: translateX(2px);
}

.pathfinder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.12rem;
}

.pathfinder-links strong,
.pathfinder-links small {
  display: block;
}

.pathfinder-links strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: .86rem;
}

.pathfinder-links small {
  color: var(--muted);
  font-size: .72rem;
}

.pathfinder-links b {
  color: var(--red);
  font-size: 1.05rem;
}

.topic-strip {
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.topic-strip-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topic-strip-label {
  margin-right: 3px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.topic-strip a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font-size: .75rem;
  font-weight: 700;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.topic-strip a:hover {
  border-color: #fda29b;
  background: var(--red-soft);
  color: var(--red-dark);
}

/* Home sections */
.home-main {
  background: #fff;
}

.home-section {
  padding: 76px 0;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.home-section--soft {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.home-section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.home-section--dark::before {
  content: "";
  position: absolute;
  inset: -100px -100px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(217, 45, 32, .10);
  filter: blur(2px);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading-row--center {
  justify-content: center;
  text-align: center;
}

.section-heading-row h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-heading-row p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .94rem;
}

.section-heading-row--inverse h2 {
  color: #fff;
}

.section-heading-row--inverse p {
  color: rgba(255, 255, 255, .64);
}

.section-link {
  flex: 0 0 auto;
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
}

.section-heading-row--inverse .section-link {
  color: #f97066;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Post cards */
.post-grid {
  display: grid;
  gap: 20px;
}

.post-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.post-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.post-grid--inverse .post-card {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .97);
}

.post-card-media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.post-card-thumb,
.post-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.post-card:hover .post-card-thumb,
.post-card:hover .post-card-media > img {
  transform: scale(1.035);
}

.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(217,45,32,.16), transparent 26%),
    linear-gradient(135deg, #f8fafc, #e9eef5);
}

.post-thumb-placeholder span {
  font-size: 2.5rem;
  filter: drop-shadow(0 8px 12px rgba(16, 24, 40, .10));
}

.post-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.post-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.post-cat:hover {
  background: #fee4e2;
}

.post-title {
  margin-bottom: 9px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.post-title a {
  color: var(--ink);
}

.post-title a:hover {
  color: var(--red);
}

.post-excerpt {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 600;
}

.read-more {
  margin-left: auto;
  color: var(--red);
  font-weight: 850;
}

.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.feature-card:hover {
  border-color: #fda29b;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 1.3rem;
}

.feature-meta {
  margin-bottom: 6px;
  color: var(--red);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.65;
}

.feature-arrow {
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--red);
  font-size: 1.15rem;
  transition: transform var(--ease);
}

.feature-card:hover .feature-arrow {
  transform: translateX(3px);
}

/* Archive and sidebar layouts */
.site-main {
  width: min(100% - 40px, var(--content-width));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
  margin: 0 auto;
  padding: 52px 0 78px;
}

.content-col {
  min-width: 0;
}

.archive-header {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.archive-header h1 {
  margin-bottom: 9px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.archive-header > p,
.archive-description,
.archive-description p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
}

.archive-search {
  max-width: 580px;
  margin-top: 18px;
}

.empty-state {
  padding: 50px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.empty-state-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
}

.sidebar-col {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  margin: 0;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  letter-spacing: -.01em;
}

.widget-body {
  padding: 17px;
}

.widget-intro {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .65);
  font-size: .76rem;
}

.widget-dark {
  border-color: transparent;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
}

.widget-dark .widget-title {
  border-color: rgba(255, 255, 255, .1);
  color: #fff;
}

.widget-accent {
  border-color: #fecdc9;
  background: linear-gradient(145deg, #fff8f7, #fff);
}

.widget-accent h2 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.widget-accent p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .79rem;
}

.widget-icon {
  display: block;
  margin-bottom: 9px;
  font-size: 1.4rem;
}

.quiz-q {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .84);
  font-size: .75rem;
  font-weight: 750;
}

.quiz-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.quiz-opt {
  min-height: 38px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  transition: background var(--ease), border-color var(--ease);
}

.quiz-opt--wide {
  grid-column: span 2;
}

.quiz-opt:hover,
.quiz-opt.active {
  border-color: var(--red);
  background: var(--red);
}

.quiz-result-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.quiz-result-box[hidden],
.quiz-reset[hidden] {
  display: none;
}

.crs-big {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.crs-sub {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: .7rem;
}

.quiz-reset {
  width: 100%;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
  font-weight: 700;
}

.topic-list {
  padding: 7px;
}

.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--sub);
  transition: background var(--ease), color var(--ease);
}

.topic-row:hover {
  background: var(--surface);
  color: var(--red);
}

.topic-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
}

.topic-count {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
}

/* Search */
.search-form .search-inner {
  display: flex;
  gap: 7px;
}

.search-field {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  font-size: .84rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 92, 211, .10);
}

.search-submit {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}

.search-submit:hover {
  background: var(--red-dark);
}

/* Pagination */
.pagination .nav-links,
.posts-navigation .nav-links,
.comment-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}

.page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--sub);
  font-size: .78rem;
  font-weight: 800;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

/* Single article */
.single-main,
.page-main {
  padding: 48px 20px 80px;
}

.single-article {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb .sep {
  opacity: .45;
}

.single-header {
  max-width: 800px;
  margin: 0 auto 28px;
}

.single-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  letter-spacing: -.045em;
  line-height: 1.15;
}

.single-deck {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 750;
}

.article-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}

.single-date .meta-updated {
  margin-left: 0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--sub);
  font-size: .7rem;
  font-weight: 700;
  transition: border-color var(--ease), color var(--ease);
}

.share-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.single-featured {
  width: min(100%, 900px);
  overflow: hidden;
  margin: 0 auto 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.single-featured img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
}

.article-layout {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content {
  color: #263244;
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content p {
  margin-bottom: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.entry-content h2 {
  margin: 2.2em 0 .72em;
  padding-top: .15em;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.entry-content h3 {
  margin: 1.8em 0 .65em;
  font-size: 1.25rem;
}

.entry-content h4 {
  margin: 1.5em 0 .55em;
  font-size: 1.05rem;
}

.entry-content a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.35em;
  padding-left: 1.4em;
}

.entry-content li {
  margin-bottom: .5em;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--red);
  color: var(--sub);
  font-size: 1.05rem;
  font-weight: 600;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: .85rem;
}

.entry-content th,
.entry-content td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--surface-2);
  font-weight: 800;
}

.entry-content .alignwide {
  width: min(1040px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-finish p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.article-finish .share-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 13px;
}

.post-navigation {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 48px auto 0;
}

.post-navigation > div:last-child {
  text-align: right;
}

.post-navigation a {
  height: 100%;
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--sub);
  font-size: .82rem;
  font-weight: 750;
  transition: border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.post-navigation a:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--shadow-sm);
}

.post-navigation span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.related-posts {
  max-width: 1100px;
  margin: 70px auto 0;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

/* Page */
.page-article {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-featured {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: var(--radius);
}

.page-featured img {
  width: 100%;
}

.page-links {
  margin-top: 25px;
  font-weight: 750;
}

/* Comments */
.comments-area {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  font-size: 1.35rem;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .comment {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.comment-list .children {
  margin: 16px 0 0 20px;
  padding: 0;
  list-style: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  margin: 5px 0 12px 53px;
  color: var(--muted);
  font-size: .68rem;
}

.comment-content {
  color: var(--sub);
  font-size: .86rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--sub);
  font-size: .76rem;
  font-weight: 750;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.comment-form .submit {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

/* Footer */
.footer-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}

.footer-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -160px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-cta .section-kicker {
  color: #fff;
  opacity: .78;
}

.footer-cta h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
}

.footer-cta p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
}

.site-footer {
  padding: 62px 0 24px;
  background: #080f1b;
  color: rgba(255, 255, 255, .66);
}

.site-footer .site-logo-text {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
}

.footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  font-size: .8rem;
  line-height: 1.75;
}

.footer-column h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: .83rem;
  letter-spacing: .01em;
}

.footer-column > a,
.footer-menu a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
  font-weight: 650;
}

.footer-column > a:hover,
.footer-menu a:hover {
  color: #fff;
}

.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-disclaimer {
  margin-top: 46px;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, .09);
  font-size: .7rem;
  line-height: 1.65;
}

.footer-disclaimer strong {
  color: rgba(255, 255, 255, .86);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: rgba(255, 255, 255, .45);
  font-size: .7rem;
}

.footer-bottom p {
  margin: 0;
}

/* Utility UI */
.read-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #f79009);
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 450;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--red);
}
/* MINI-TOOL STYLES (shortcodes) */
.nf-tool{
  background:var(--card);border:1px solid var(--line);
  border-radius:14px;overflow:hidden;margin:0 0 32px;
}
.nf-tool-header{
  background:linear-gradient(135deg,var(--navy),var(--navy2));
  color:#fff;padding:28px 28px 24px;
}
.nf-tool-badge{
  display:inline-block;background:var(--gold);color:#111;
  font-size:.65rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.8px;padding:3px 9px;border-radius:4px;margin-bottom:10px;
}
.nf-tool-header h2{font-size:1.4rem;font-weight:800;color:#fff;margin-bottom:8px}
.nf-tool-header p{font-size:.9rem;opacity:.8}

/* Calc form */
.nf-calc-form{padding:24px 28px}
.nf-calc-section{margin-bottom:22px}
.nf-calc-section h3{font-size:.9rem;font-weight:700;margin-bottom:14px;color:var(--sub)}
.nf-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.nf-field{display:flex;flex-direction:column;gap:5px}
.nf-field label{font-size:.78rem;font-weight:600;color:var(--muted)}
.nf-field select,.nf-field input{
  padding:9px 11px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);font-size:.86rem;
  background:#fff;transition:border-color var(--ease);
  appearance:auto;
}
.nf-field select:focus,.nf-field input:focus{
  outline:none;border-color:var(--blue);
}
.nf-calc-btn{
  display:block;width:100%;padding:14px;
  background:var(--red);color:#fff;
  border-radius:var(--r);border:none;
  font-size:1rem;font-weight:700;
  transition:background var(--ease),transform var(--ease);
  margin-top:8px;
}
.nf-calc-btn:hover{background:var(--red2);transform:translateY(-1px)}
.nf-calc-reset{
  background:none;border:1px solid var(--line);
  border-radius:var(--r-sm);padding:9px 20px;
  font-size:.85rem;font-weight:600;color:var(--muted);
  transition:all var(--ease);margin-top:14px;
}
.nf-calc-reset:hover{border-color:var(--red);color:var(--red)}

/* Result */
.nf-tool-result{padding:28px}
.nf-score-display{text-align:center;margin-bottom:20px}
.nf-score-number{font-size:3.5rem;font-weight:800;color:var(--red);line-height:1}
.nf-score-label{font-size:.82rem;color:var(--muted);margin-top:6px}
.nf-score-bands{
  border-radius:var(--r);padding:16px 20px;margin-bottom:16px;
  font-size:.87rem;line-height:1.6;
}
.band-green{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.band-yellow{background:#fefce8;border:1px solid #fde68a;color:#92400e}
.band-orange{background:#fff7ed;border:1px solid #fed7aa;color:#c2410c}
.band-red{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.nf-score-note{font-size:.75rem;color:var(--muted);line-height:1.6}
.nf-score-note a{color:var(--blue);text-decoration:underline}

/* Australia calculator */
.nf-tool-header--australia{
  background:linear-gradient(135deg,#032b45 0%,#075985 58%,#0e7490 100%);
}
.nf-tool-intro{
  margin:0;padding:15px 28px;background:#effaff;border-bottom:1px solid #bae6fd;
  color:#0c4a6e;font-size:.82rem;line-height:1.65;
}
.nf-field--full{grid-column:1/-1}
.nf-field-help{margin:8px 0 0;color:var(--muted);font-size:.74rem}
.nf-points-breakdown{
  margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);
}
.nf-points-breakdown h3{font-size:.92rem;margin:0 0 12px;color:var(--ink)}
.nf-points-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.nf-points-grid>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.nf-points-grid span{font-size:.77rem;color:var(--muted)}
.nf-points-grid strong{font-size:.82rem;color:var(--ink)}

/* Province Explorer */
.nf-prov-filter{
  padding:18px 28px;background:var(--surface);border-bottom:1px solid var(--line);
  display:flex;flex-direction:column;gap:8px;
}
.nf-prov-filter label{font-size:.85rem;font-weight:600;color:var(--sub)}
.nf-prov-filter input[type=range]{width:100%;accent-color:var(--red);height:6px}
.nf-prov-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px;padding:20px 24px 24px;
}
.nf-prov-card{
  background:#fff;border:2px solid var(--line);
  border-radius:var(--r);padding:16px;
  transition:all var(--ease);
}
.nf-prov-card.eligible{border-color:var(--green);background:#f0fdf4}
.nf-prov-card.ineligible{opacity:.5}
.nf-prov-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.nf-prov-flag{font-size:1.6rem;flex-shrink:0}
.nf-prov-head strong{font-size:.95rem;font-weight:700;display:block}
.nf-prov-code{font-size:.7rem;color:var(--muted);font-weight:600}
.nf-prov-badge{
  margin-left:auto;flex-shrink:0;
  font-size:.68rem;font-weight:800;padding:3px 8px;border-radius:18px;
}
.badge-yes{background:#dcfce7;color:var(--green)}
.badge-no{background:#fee2e2;color:var(--red)}
.nf-prov-stats{display:flex;gap:0;margin-bottom:10px;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}
.nf-prov-stat{
  flex:1;padding:8px 6px;text-align:center;
  border-right:1px solid var(--line);
}
.nf-prov-stat:last-child{border-right:none}
.nf-prov-stat span{display:block;font-size:1rem;font-weight:800;color:var(--ink)}
.nf-prov-stat em{display:block;font-size:.62rem;color:var(--muted);font-style:normal;margin-top:2px}
.nf-prov-note{font-size:.78rem;color:var(--sub);line-height:1.5;margin-bottom:10px}
.nf-prov-jobs{display:flex;gap:5px;flex-wrap:wrap}
.nf-prov-tag{
  font-size:.68rem;font-weight:600;padding:2px 8px;
  background:var(--tag);color:var(--muted);
  border-radius:18px;border:1px solid var(--line);
}

/* Eligibility Checker */
.nf-elig-steps{
  padding:14px 28px 0;
  display:flex;align-items:center;gap:12px;
}
.nf-step-bar{
  flex:1;height:6px;background:var(--line);border-radius:3px;overflow:hidden;
}
.nf-step-fill{
  height:100%;background:var(--red);border-radius:3px;
  transition:width .3s ease;
}
.nf-step-label{font-size:.75rem;color:var(--muted);font-weight:600;flex-shrink:0}
.nf-elig-form{padding:20px 28px}
.nf-elig-step{margin-bottom:8px}
.nf-elig-q{font-size:1rem;font-weight:700;margin-bottom:16px;color:var(--ink);line-height:1.4}
.nf-elig-opts{display:flex;flex-direction:column;gap:8px}
.nf-elig-opt{
  text-align:left;padding:13px 16px;
  border:1.5px solid var(--line);border-radius:var(--r-sm);
  font-size:.88rem;font-weight:500;color:var(--ink);
  background:#fff;transition:all var(--ease);
}
.nf-elig-opt:hover{border-color:var(--red);background:var(--red-bg);color:var(--red);font-weight:600}

/* Eligibility results */
.nf-elig-pathways{padding:24px 28px}
.nf-elig-pathways h3{font-size:1.2rem;font-weight:800;margin-bottom:18px}
.nf-path-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);padding:16px;margin-bottom:12px;
}
.nf-path-head{
  display:flex;align-items:center;gap:10px;margin-bottom:8px;
}
.nf-path-head span:first-child{font-size:1.3rem;flex-shrink:0}
.nf-path-head strong{font-size:.93rem;font-weight:700;flex:1}
.nf-path-chance{
  flex-shrink:0;font-size:.65rem;font-weight:800;
  padding:3px 8px;border-radius:18px;text-transform:uppercase;letter-spacing:.4px;
}
.strong{background:#dcfce7;color:var(--green)}
.possible{background:#fef9c3;color:#854d0e}
.nf-path-card p{font-size:.82rem;color:var(--sub);line-height:1.6}
.nf-path-disclaimer{
  font-size:.72rem;color:var(--muted);line-height:1.6;
  margin-top:16px;padding-top:16px;border-top:1px solid var(--line);
}

/* Tool refinements */
.nf-tool {
  box-shadow: var(--shadow-sm);
}

.entry-content .nf-tool a {
  text-decoration: none;
}

.nf-tool button,
.nf-tool select,
.nf-tool input {
  font-family: inherit;
}

/* Responsive */
@media (max-width: 1080px) {
  .primary-nav a {
    padding-inline: 8px;
    font-size: .78rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 390px;
    gap: 40px;
  }

  .site-main {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 25px;
  }

  .post-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    gap: 14px;
  }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    margin: 0;
    padding: 12px 20px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 4px 12px;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    padding: 12px 13px;
    font-size: .9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .pathfinder-card {
    max-width: 700px;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .widget-search {
    grid-column: 1 / -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .inner,
  .site-main {
    width: min(100% - 28px, var(--content-width));
  }

  .announcement-inner {
    min-height: 38px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .announcement-inner a {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .search-panel-inner {
    min-height: 84px;
    grid-template-columns: 1fr 38px;
    gap: 10px;
  }

  .search-panel-label {
    display: none;
  }

  .hero-grid {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 200px;
  }

  .hero-search {
    grid-template-columns: 22px 1fr;
    padding: 12px 14px;
  }

  .hero-search button {
    grid-column: 1 / -1;
  }

  .hero-trust {
    flex-direction: column;
    gap: 7px;
  }

  .pathfinder-top {
    padding: 23px 20px 16px;
  }

  .pathfinder-links a {
    padding-inline: 10px;
  }

  .home-section {
    padding: 56px 0;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .post-grid--three,
  .post-grid--two,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .archive-header {
    padding: 24px 20px;
  }

  .sidebar-col {
    grid-template-columns: 1fr;
  }

  .widget-search {
    grid-column: auto;
  }

  .single-main,
  .page-main {
    padding: 34px 14px 58px;
  }

  .single-featured {
    margin-bottom: 28px;
    border-radius: var(--radius);
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation > div:last-child {
    text-align: left;
  }

  .page-article {
    padding: 24px 18px;
  }

  .footer-cta-inner {
    min-height: 260px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .nf-field-row {
    grid-template-columns: 1fr;
  }

  .nf-calc-form,
  .nf-elig-form,
  .nf-prov-filter,
  .nf-tool-intro,
  .nf-tool-header,
  .nf-tool-result,
  .nf-elig-pathways,
  .nf-elig-steps {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nf-points-grid {
    grid-template-columns: 1fr;
  }

  .nf-prov-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
}

@media (max-width: 460px) {
  .site-logo-mark {
    width: 35px;
    height: 35px;
  }

  .site-logo-text {
    font-size: .96rem;
  }

  .icon-button,
  .nav-toggle {
    width: 39px;
    height: 39px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    flex-basis: auto;
  }

  .pathfinder-links a {
    grid-template-columns: 40px 1fr;
  }

  .pathfinder-links b {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

  .search-form .search-inner {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .announcement-bar,
  .site-header,
  .topic-strip,
  .footer-cta,
  .site-footer,
  .back-top,
  .read-bar,
  .share-button,
  .related-posts,
  .comments-area {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .single-main,
  .page-main {
    padding: 0;
  }

  .single-article,
  .article-layout,
  .page-article {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }
}

/* U.S. pathway finder */
.nf-tool-header--usa {
  background: linear-gradient(135deg, #111827 0%, #173b72 55%, #9f2636 100%);
}

.nf-tool-intro--usa {
  background: #f5f8ff;
  border-bottom-color: #c7d7fe;
  color: #243b64;
}

.nf-calc-btn--usa {
  background: #173b72;
}

.nf-calc-btn--usa:hover {
  background: #102d59;
}

.nf-us-result-head {
  margin-bottom: 20px;
}

.nf-us-result-head .nf-tool-badge {
  background: #dbeafe;
  color: #1e3a8a;
}

.nf-us-result-head h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.nf-us-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.nf-us-pathways {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.nf-us-path-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .05);
}

.nf-us-path-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.nf-us-path-type {
  display: block;
  margin-bottom: 4px;
  color: #315a96;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nf-us-path-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.nf-us-relevance {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #244c88;
  font-size: .64rem;
  font-weight: 800;
}

.nf-us-why,
.nf-us-next {
  margin: 0 0 9px;
  color: var(--sub);
  font-size: .8rem;
  line-height: 1.6;
}

.nf-us-next strong {
  color: var(--ink);
}

.nf-us-official-link {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: #174ea6;
  font-size: .78rem;
  font-weight: 800;
}

.nf-us-official-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Contextual article-to-tool recommendation.
   This is a clearly labelled site feature, not an advertisement. */
.nf-context-tool {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 40px 0;
  padding: 22px;
  border: 1px solid #cfd7e6;
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.nf-context-tool--australia {
  border-left-color: #0e7490;
  background: #f4fbfd;
}

.nf-context-tool--usa {
  border-left-color: #9f2636;
  background: #faf8f8;
}

.nf-context-tool--canada {
  border-left-color: #d92d20;
  background: #fffafa;
}

.nf-context-tool-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 15px;
  background: #fff;
  font-size: 1.65rem;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .06);
}

.nf-context-tool-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 6px;
}

.nf-context-tool-label,
.nf-context-tool-optional {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nf-context-tool-label {
  color: var(--sub);
}

.nf-context-tool-optional {
  padding: 3px 7px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.entry-content .nf-context-tool h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.entry-content .nf-context-tool p {
  margin: 0 0 6px;
  color: var(--sub);
  font-size: .79rem;
  line-height: 1.55;
}

.nf-context-tool small {
  display: block;
  color: var(--muted);
  font-size: .66rem;
}

.entry-content .nf-context-tool-button {
  min-width: 194px;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

@media (max-width: 760px) {
  .nf-context-tool {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    margin: 32px 0;
    padding: 18px;
  }

  .nf-context-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.45rem;
  }

  .nf-context-tool-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nf-us-path-top {
    display: block;
  }

  .nf-us-relevance {
    display: inline-block;
    margin-top: 9px;
  }
}


.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-cta-actions .button {
  min-width: 138px;
  justify-content: center;
}

@media (max-width: 760px) {
  .footer-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-cta-actions .button {
    flex: 1 1 145px;
  }
}


/* Permanent topic hubs */
.nf-topic-hub {
  display: grid;
  gap: 32px;
}

.nf-topic-hub-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 88% 12%, rgba(196, 30, 58, .12), transparent 32%),
    linear-gradient(145deg, #fff 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}

.nf-topic-hub-intro h2 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.nf-topic-hub-intro > p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.nf-topic-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.nf-topic-hub-search {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.nf-topic-hub-search > div {
  display: grid;
  gap: 3px;
}

.nf-topic-hub-search strong {
  color: var(--ink);
  font-size: .98rem;
}

.nf-topic-hub-search span {
  color: var(--muted);
  font-size: .84rem;
}

.nf-topic-hub-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.nf-topic-hub-search input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.nf-topic-hub-search input:focus {
  outline: 2px solid transparent;
}

.nf-topic-hub-search form:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, .12);
}

.nf-topic-hub-search button {
  border: 0;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}

.nf-topic-hub-heading {
  margin: 4px 0 -12px;
}

.nf-topic-hub-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.nf-topic-hub-note strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nf-topic-hub-search {
    grid-template-columns: 1fr;
  }

  .nf-topic-hub-actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nf-topic-hub-search form {
    grid-template-columns: 1fr;
  }

  .nf-topic-hub-search button {
    min-height: 44px;
  }
}


/* Simple article ending and unknown-route recovery */
.not-found-shell {
  max-width: 820px;
  margin-inline: auto;
}

.not-found-card {
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.not-found-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.not-found-card > p {
  max-width: 650px;
  color: var(--muted);
}

.not-found-card .search-form {
  margin-top: 24px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.nf-privacy-policy > :first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .article-finish {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-finish .share-button {
    width: 100%;
    justify-content: center;
  }

  .not-found-actions .button {
    width: 100%;
  }
}
