
:root{--navy:#061a33;--navy2:#0a2b50;--blue:#0b63d8;--blue2:#2f86ee;--teal:#15b8a6;--coral:#ef6b56;--purple:#6d4be8;--ink:#10233f;--muted:#61718a;--line:#dbe5f0;--soft:#f5f8fc;--white:#fff;--container:1180px;--shadow:0 18px 55px rgba(13,42,77,.10);--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.62}a{color:inherit;text-decoration:none}img{max-width:100%}.container{width:min(calc(100% - 40px),var(--container));margin:auto}.skip-link{position:absolute;left:-999px}.skip-link:focus{left:18px;top:18px;background:#fff;padding:10px 14px;z-index:9999}
.site-header{position:relative;z-index:50;background:rgba(255,255,255,.98);border-bottom:1px solid #eef2f7}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand img{display:block;width:176px;height:auto}.primary-nav{display:flex;align-items:center;gap:27px;font-size:.91rem;font-weight:700}.primary-nav>a:not(.header-cta){position:relative}.primary-nav>a:not(.header-cta):hover{color:var(--blue)}.primary-nav a[aria-current=page]{color:var(--blue)}.header-cta{padding:12px 18px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--teal));box-shadow:0 8px 24px rgba(11,99,216,.18)}.nav-toggle{display:none;border:0;background:none;width:44px;height:44px;place-content:center;gap:5px}.nav-toggle span{width:24px;height:2px;background:var(--ink)}
.hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#04152c 0%,#083665 58%,#05192f 100%);color:#fff}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,21,44,.98) 0%,rgba(4,21,44,.87) 42%,rgba(4,21,44,.25) 78%,rgba(4,21,44,.52) 100%),url('/assets/img/editorial/referencia-brasil-cidade-hq-v4.webp') center right/cover no-repeat;opacity:.98}.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.16fr .84fr;gap:72px;align-items:center;padding:88px 0 82px}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#7be3d9;font-size:.76rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.eyebrow:before{content:"";width:26px;height:2px;background:currentColor}.eyebrow-dark{color:#0a8f82}.hero h1{font-family:'DM Sans',sans-serif;font-size:clamp(3rem,5.5vw,5.4rem);line-height:.98;letter-spacing:-.055em;margin:20px 0 22px;max-width:760px}.hero h1 span{color:#61a8ff}.hero-copy{font-size:1.08rem;color:#d4e4f4;max-width:680px}.hero-search{margin-top:28px;display:flex;max-width:690px;background:#fff;border-radius:14px;padding:5px;box-shadow:0 15px 35px rgba(0,0,0,.22)}.hero-search input{flex:1;border:0;padding:15px 16px;font-size:.95rem;outline:none}.hero-search button{border:0;border-radius:10px;padding:0 24px;background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff;font-weight:800}.hero-note{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px;color:#b9cde0;font-size:.79rem}.hero-note span:before{content:'✓';color:#7be3d9;margin-right:7px}.hero-panel{padding:26px;border:1px solid rgba(255,255,255,.16);background:rgba(5,28,54,.68);backdrop-filter:blur(12px);border-radius:26px;box-shadow:0 20px 55px rgba(0,0,0,.22)}.hero-panel-header{margin-bottom:18px}.hero-panel-header small{display:block;color:#9eb7d1;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em}.hero-panel-header strong{font-size:1.18rem}.quick-list{display:grid;gap:10px}.quick-item{display:grid;grid-template-columns:48px 1fr auto;gap:14px;align-items:center;padding:13px;border-radius:15px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}.quick-item:hover{background:rgba(255,255,255,.11)}.quick-icon{display:grid;place-content:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--teal));font-weight:800}.quick-item strong{display:block}.quick-item small{color:#adc2d6}.quick-arrow{color:#7be3d9;font-size:1.25rem}
.section{padding:78px 0}.section-soft{background:var(--soft)}.section-dark{background:var(--navy);color:#fff}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:34px}.section-heading h2,.trust-copy h2{font-family:'DM Sans',sans-serif;font-size:clamp(2rem,3.6vw,3.1rem);line-height:1.04;letter-spacing:-.04em;margin:10px 0}.section-heading p{max-width:760px;color:var(--muted);margin:0}.section-dark .section-heading p{color:#aebfd1}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.category-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 9px 30px rgba(15,42,75,.06);transition:.25s}.category-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.category-media{height:158px;overflow:hidden}.category-media img{width:100%;height:100%;object-fit:cover}.category-body{padding:25px}.category-icon{display:inline-grid;place-content:center;width:42px;height:42px;border-radius:13px;background:#e9f2ff;color:var(--blue);font-weight:900}.category-card:nth-child(2) .category-icon{background:#e7f8f4;color:#068f7f}.category-card:nth-child(3) .category-icon{background:#efeaff;color:var(--purple)}.category-card h3{font-size:1.3rem;margin:15px 0 7px}.category-card p{color:var(--muted);margin:0 0 18px}.category-card strong{color:var(--blue);font-size:.9rem}
.feature-card{display:grid;grid-template-columns:390px 1fr;overflow:hidden;border-radius:26px;background:linear-gradient(115deg,#072342,#0b3a6b);color:#fff;box-shadow:var(--shadow)}.feature-media{min-height:260px}.feature-media img{width:100%;height:100%;object-fit:cover}.feature-body{padding:32px 36px;display:flex;flex-direction:column;justify-content:center}.badge{display:inline-flex;width:max-content;padding:6px 10px;border-radius:999px;background:rgba(21,184,166,.17);color:#7be3d9;font-size:.72rem;font-weight:800;text-transform:uppercase}.feature-body h3{font-size:2rem;line-height:1.06;margin:12px 0 6px}.location{color:#b7cadc;font-size:.9rem}.feature-body p{color:#d2e0ec;max-width:680px}.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin:3px 0 23px}.tag{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.1);font-size:.75rem}.action-row{display:flex;gap:12px;flex-wrap:wrap}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 18px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:800}.button.alt{background:#fff;color:var(--blue)}.button.teal{background:var(--teal)}
.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.guide-card{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);transition:.25s}.section-dark .guide-card{background:#0a2748;border-color:#1b4770;color:#fff}.guide-card:hover{transform:translateY(-4px)}.guide-media{height:176px;overflow:hidden}.guide-media img{width:100%;height:100%;object-fit:cover}.guide-body{padding:22px}.guide-meta{font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#0a8f82}.section-dark .guide-meta{color:#72dfd5}.guide-card h3{font-size:1.15rem;line-height:1.22;margin:9px 0}.guide-card p{color:var(--muted);font-size:.9rem}.section-dark .guide-card p{color:#abc1d5}.guide-card strong{color:var(--blue);font-size:.86rem}.section-dark .guide-card strong{color:#7be3d9}
.trust-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}.trust-copy>p{color:var(--muted)}.check-list{list-style:none;padding:0;display:grid;gap:12px}.check-list li:before{content:'✓';display:inline-grid;place-content:center;width:24px;height:24px;margin-right:10px;border-radius:50%;background:#e5f8f5;color:#048e80;font-weight:900}.trust-panel{padding:30px;border-radius:24px;background:linear-gradient(145deg,#082443,#0e4d7d);color:#fff;box-shadow:var(--shadow)}.trust-panel h3{font-size:1.6rem;margin:8px 0 18px}.trust-stat{display:grid;grid-template-columns:44px 1fr;gap:14px;padding:14px 0;border-top:1px solid rgba(255,255,255,.12)}.trust-stat b{display:grid;place-content:center;width:40px;height:40px;border-radius:12px;background:rgba(21,184,166,.16);color:#7be3d9}.trust-stat strong,.trust-stat span{display:block}.trust-stat span{color:#afc2d4;font-size:.85rem}
.prefooter{padding:0 0 76px}.prefooter-card{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:34px 38px;border-radius:26px;background:linear-gradient(110deg,#0b63d8,#15b8a6);color:#fff}.prefooter-card h2{font-size:1.75rem;margin:4px 0}.prefooter-card p{margin:0;color:#e8fbf8}.prefooter-kicker{font-size:.72rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.site-footer{background:#04162b;color:#b6c5d5;padding:56px 0 28px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:45px}.footer-brand img{width:175px}.footer-brand p{max-width:300px;font-size:.88rem}.footer-title{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;font-weight:800}.footer-links{display:grid;gap:9px;margin-top:15px}.footer-links a:hover{color:#fff}.footer-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:40px;padding-top:22px;border-top:1px solid rgba(255,255,255,.09);font-size:.76rem;color:#8297ac}
.page-hero{background:linear-gradient(130deg,#061a33,#0b3a6b);color:#fff;padding:58px 0}.breadcrumbs{display:flex;gap:7px;flex-wrap:wrap;color:#a9bfd4;font-size:.8rem;margin-bottom:14px}.page-title{font-family:'DM Sans',sans-serif;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.02;letter-spacing:-.045em;margin:0}.page-intro{max-width:800px;color:#c5d7e7;font-size:1.05rem}.page-section{padding:66px 0}.directory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.directory-card{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,42,75,.05)}.directory-card img{width:100%;height:160px;object-fit:cover}.directory-card-body{padding:22px}.directory-card h2,.directory-card h3{margin:0 0 8px;line-height:1.2}.directory-card p{color:var(--muted);font-size:.9rem}.directory-card a.more{color:var(--blue);font-weight:800;font-size:.86rem}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:34px;align-items:start}.article-card{border:1px solid var(--line);border-radius:25px;background:#fff;padding:32px;box-shadow:0 12px 38px rgba(14,41,72,.06)}.article-cover{overflow:hidden;border-radius:18px;margin:0 0 28px}.article-cover img{display:block;width:100%;aspect-ratio:16/8.5;object-fit:cover}.article-card h1{font-family:'DM Sans',sans-serif;font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.04;letter-spacing:-.04em;margin:0 0 12px}.article-meta{display:flex;gap:16px;flex-wrap:wrap;color:#73839b;font-size:.78rem;margin-bottom:22px}.article-lead{font-size:1.12rem;color:#4c617c}.article-card h2{font-size:1.55rem;margin-top:32px}.article-card p,.article-card li{color:#40536d}.article-card a:not(.button){color:var(--blue);text-decoration:underline;text-underline-offset:3px}.reference-box{margin:28px 0;padding:18px 20px;border-left:4px solid var(--teal);border-radius:0 14px 14px 0;background:#eef9f7}.sidebar{display:grid;gap:18px;position:sticky;top:20px}.sidebar-card{border:1px solid var(--line);border-radius:20px;padding:22px;background:#fff}.sidebar-card h3{margin-top:4px}.sidebar-card p,.sidebar-card li{color:var(--muted);font-size:.88rem}.side-links{display:grid;gap:10px}.side-links a{padding:11px 12px;border-radius:10px;background:#f2f7fd;color:var(--blue);font-size:.84rem;font-weight:700}.profile-hero{display:grid;grid-template-columns:1fr 390px;gap:34px;align-items:center}.profile-hero img{border-radius:22px;width:100%;height:260px;object-fit:cover}.profile-hero h1{font-family:'DM Sans',sans-serif;font-size:clamp(2.5rem,5vw,4rem);line-height:1;margin:12px 0}.profile-content{display:grid;grid-template-columns:1fr 320px;gap:30px}.info-card{border:1px solid var(--line);border-radius:20px;padding:25px;background:#fff}.info-card h2,.info-card h3{margin-top:0}.service-links{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.service-links a{padding:15px;border-radius:13px;background:#f4f8fd;border:1px solid #e0eaf4;color:var(--blue);font-weight:800}.form-card{max-width:820px;border:1px solid var(--line);border-radius:22px;padding:30px;background:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-group{display:grid;gap:6px}.form-group.full{grid-column:1/-1}.form-group input,.form-group textarea,.form-group select{width:100%;padding:13px 14px;border:1px solid #cfdbea;border-radius:10px;font:inherit}.search-panel{padding:28px;border:1px solid var(--line);border-radius:22px;background:#fff}.search-box{display:flex;gap:8px}.search-box input{flex:1;padding:13px 14px;border:1px solid #cfdbea;border-radius:10px}.search-results{display:grid;gap:12px;margin-top:24px}.result-card{padding:18px;border:1px solid var(--line);border-radius:14px}.result-card small{color:#0a8f82;font-weight:800}.result-card h3{margin:4px 0}.result-card p{margin:0;color:var(--muted)}
@media(max-width:980px){.nav-toggle{display:grid}.primary-nav{display:none;position:absolute;top:72px;left:20px;right:20px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.primary-nav.is-open{display:grid}.hero-grid,.trust-grid,.content-layout,.profile-content,.profile-hero{grid-template-columns:1fr}.hero-panel{max-width:720px}.category-grid,.guide-grid,.directory-grid{grid-template-columns:repeat(2,1fr)}.feature-card{grid-template-columns:320px 1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.container{width:min(calc(100% - 28px),var(--container))}.header-inner{min-height:70px}.brand img{width:150px}.hero-grid{padding:64px 0}.hero h1{font-size:clamp(2.7rem,13vw,4rem)}.hero-search,.search-box{flex-direction:column}.hero-search button{padding:14px}.category-grid,.guide-grid,.directory-grid{grid-template-columns:1fr}.feature-card{grid-template-columns:1fr}.feature-media{min-height:210px}.feature-body{padding:26px}.section{padding:60px 0}.section-heading{align-items:flex-start;flex-direction:column}.content-layout{gap:22px}.article-card{padding:22px}.sidebar{position:static}.profile-hero img{height:220px}.service-links,.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.prefooter-card{align-items:flex-start;flex-direction:column;padding:28px}.hero-note{gap:10px}.primary-nav{top:64px}}


/* ==================================================================
   REFERÊNCIA BRASIL V2 — refinamento visual inspirado no mockup aprovado
   ================================================================== */
:root{--container:1240px;--radius:18px;--shadow:0 16px 42px rgba(8,35,69,.10)}
body.ref-v2{background:#fff;letter-spacing:-.005em}
.ref-v2 .container{width:min(calc(100% - 48px),var(--container))}
.ref-v2 .site-header{position:sticky;top:0;box-shadow:0 4px 22px rgba(8,32,60,.045)}
.ref-v2 .header-inner{min-height:72px}
.ref-v2 .brand img{width:162px}
.ref-v2 .primary-nav{gap:30px;font-size:.88rem}
.ref-v2 .header-cta{padding:11px 17px;border-radius:11px}

/* HOME — compactar e aproximar o portal do mockup */
.home-page .hero-grid{grid-template-columns:1.05fr .72fr;gap:74px;padding:72px 0 68px;min-height:540px}
.home-page .hero h1{font-size:clamp(3.15rem,5vw,4.85rem);max-width:670px;line-height:.98;margin:17px 0 18px}
.home-page .hero-copy{font-size:1rem;max-width:610px}
.home-page .hero-search{max-width:620px;margin-top:24px}
.home-page .hero-panel{max-width:430px;justify-self:end;padding:20px;border-radius:20px;background:rgba(5,28,54,.78)}
.home-page .quick-item{grid-template-columns:40px 1fr auto;padding:11px 12px;border-radius:12px}
.home-page .quick-icon{width:40px;height:40px;border-radius:10px;font-size:.76rem}
.home-page .section{padding:68px 0}
.home-page .section-heading{margin-bottom:28px}
.home-page .section-heading h2{font-size:clamp(2rem,3.2vw,2.75rem)}
.home-page .category-grid{gap:18px}
.home-page .category-card{display:grid;grid-template-columns:42% 58%;min-height:210px;border-radius:17px;box-shadow:0 10px 30px rgba(10,39,72,.065)}
.home-page .category-media{height:100%;min-height:210px}
.home-page .category-body{padding:22px 22px 20px}
.home-page .category-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-page .category-count{font-size:.68rem;color:#728199;font-weight:800}
.home-page .category-card h3{font-size:1.2rem;margin:13px 0 5px}
.home-page .category-card p{font-size:.84rem;line-height:1.52;margin-bottom:12px}
.home-page .category-card strong{font-size:.79rem}

/* Home business highlight — fixed major visual issue from V1 */
.home-page .listing-grid{display:block}
.home-page .home-business-card{display:grid;grid-template-columns:410px 1fr;grid-template-areas:'media top' 'media content' 'media footer';overflow:hidden;border-radius:22px;background:linear-gradient(115deg,#072342,#0b3e70);color:#fff;box-shadow:0 18px 46px rgba(5,35,68,.16);border:0}
.home-page .home-business-card .listing-media{grid-area:media;min-height:278px;overflow:hidden}
.home-page .home-business-card .listing-media img{display:block;width:100%;height:100%;object-fit:cover}
.home-page .home-business-card .listing-top{grid-area:top;padding:27px 32px 0;align-self:end}
.home-page .home-business-card .badge{background:rgba(21,184,166,.2);color:#8ff0e6}
.home-page .home-business-card .listing-content{grid-area:content;padding:0 32px}
.home-page .home-business-card .listing-content h3{font-size:1.75rem;line-height:1.08;margin:9px 0 5px}
.home-page .home-business-card .listing-content h3 a{color:#fff}
.home-page .home-business-card .listing-location{color:#a9c2d9;font-size:.85rem}
.home-page .home-business-card .listing-content p{color:#d3e1ed;max-width:680px;font-size:.91rem;margin:12px 0}
.home-page .home-business-card .listing-footer{grid-area:footer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 32px 27px}
.home-page .home-business-card .business-link{color:#82e7dc;font-weight:800;font-size:.86rem}
.home-page .home-business-card .business-official{padding:10px 16px;background:#fff;color:#0b63d8}

.home-page .section-dark .guide-grid{grid-template-columns:repeat(4,1fr);gap:16px}
.home-page .section-dark .guide-card{border-radius:16px}
.home-page .section-dark .guide-media{height:148px}
.home-page .section-dark .guide-body{padding:17px 18px 18px}
.home-page .section-dark .guide-card-top{display:block}
.home-page .section-dark .guide-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#214b75;color:#78e0d6;font-size:.62rem;font-weight:900;text-transform:uppercase}
.home-page .section-dark .guide-meta{display:block;margin-top:7px;font-size:.58rem}
.home-page .section-dark .guide-card h3{font-size:1rem;line-height:1.2;margin:8px 0}
.home-page .section-dark .guide-card p{font-size:.8rem;line-height:1.5;margin:0 0 10px}
.home-page .section-dark .guide-card strong{font-size:.76rem}
.home-page .trust-grid{grid-template-columns:1.1fr .72fr;gap:72px}
.home-page .trust-panel{max-width:480px;justify-self:end}

/* CATEGORY DIRECTORY HERO — image + copy, like approved mockup */
.directory-page .directory-hero{background:linear-gradient(180deg,#fff,#f7faff);color:var(--ink);padding:48px 0;border-bottom:1px solid #e9eff6}
.directory-page .directory-hero-grid{display:grid;grid-template-columns:1fr 430px;gap:58px;align-items:center}
.directory-page .directory-hero .breadcrumbs{color:#6f8095}
.directory-page .directory-hero .page-title{font-size:clamp(2.7rem,4.7vw,4rem);color:var(--ink)}
.directory-page .directory-hero .page-intro{color:#566a83;max-width:720px;margin-bottom:0}
.directory-page .directory-hero-media{height:245px;overflow:hidden;border-radius:20px;box-shadow:0 15px 36px rgba(12,45,81,.12)}
.directory-page .directory-hero-media img{width:100%;height:100%;object-fit:cover}
.directory-page .page-section{padding:58px 0 68px}
.directory-page .directory-grid{gap:18px}
.directory-page .directory-card{border-radius:17px;box-shadow:0 9px 28px rgba(13,42,77,.055)}
.directory-page .directory-card img{height:182px}
.directory-page .directory-card-body{padding:20px 21px 22px}
.directory-page .directory-card h2,.directory-page .directory-card h3{font-size:1.16rem;line-height:1.2}
.directory-page .directory-card p{font-size:.86rem;line-height:1.55}
.negocios-directory .feature-card{grid-template-columns:390px 1fr;max-width:1050px;margin:auto;border-radius:20px}
.negocios-directory .feature-media{min-height:270px}
.negocios-directory .feature-body{padding:30px 34px}

/* PROFILE — white hero, compact information, navigation tabs */
.profile-page .profile-page-hero{background:linear-gradient(180deg,#fff,#f6f9fd);color:var(--ink);padding:48px 0;border-bottom:1px solid #e6edf6}
.profile-page .profile-page-hero .breadcrumbs{color:#6f8197}
.profile-page .profile-page-hero .eyebrow{color:#0b8e82}
.profile-page .profile-page-hero .page-intro{color:#536983}
.profile-page .profile-page-hero .tag{background:#e9f1fb;color:#36506e}
.profile-page .profile-hero{grid-template-columns:1fr 410px;gap:58px}
.profile-page .profile-hero img{height:285px;border-radius:20px;box-shadow:0 14px 34px rgba(12,44,79,.13)}
.profile-page .profile-hero h1{font-size:clamp(2.8rem,4.5vw,4rem);color:var(--ink)}
.profile-page .page-section{padding:0 0 68px}
.profile-page .profile-tabs{display:flex;gap:7px;padding-top:18px;padding-bottom:18px;border-bottom:1px solid #e5edf5;margin-bottom:34px;overflow-x:auto}
.profile-page .profile-tabs a{padding:9px 15px;border-radius:999px;background:#f2f6fb;color:#34506d;font-size:.82rem;font-weight:800;white-space:nowrap}
.profile-page .profile-tabs a:hover{background:#e5f6f3;color:#078a7f}
.profile-page .profile-content{grid-template-columns:minmax(0,1fr) 310px;gap:24px}
.profile-page .info-card,.profile-page .sidebar-card{border-radius:17px;padding:23px;box-shadow:0 7px 22px rgba(14,44,79,.035)}
.profile-page .service-links a{padding:13px 14px;border-radius:11px;font-size:.86rem}

/* ARTICLE/SERVICE DETAILS — title + image in the first viewport */
.detail-page .detail-page-hero{background:linear-gradient(180deg,#fff,#f7faff);color:var(--ink);padding:42px 0 46px;border-bottom:1px solid #e7eef6}
.detail-page .detail-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) 430px;gap:52px;align-items:center}
.detail-page .detail-page-hero .breadcrumbs{color:#6c7e94;margin-bottom:17px}
.detail-page .detail-title{font-family:'DM Sans',sans-serif;font-size:clamp(2.35rem,4vw,3.55rem);line-height:1.02;letter-spacing:-.045em;margin:13px 0 15px;color:var(--ink)}
.detail-page .detail-intro{font-size:1rem;color:#576b84;max-width:720px;margin:0}
.detail-page .detail-meta{margin:18px 0 0;color:#78889d}
.detail-page .detail-hero-media{height:300px;border-radius:20px;overflow:hidden;box-shadow:0 14px 34px rgba(12,44,79,.12)}
.detail-page .detail-hero-media img{display:block;width:100%;height:100%;object-fit:cover}
.detail-page .page-section{padding:48px 0 68px}
.detail-page .content-layout{grid-template-columns:minmax(0,1fr) 300px;gap:26px}
.detail-page .article-card{padding:30px 34px;border-radius:18px;box-shadow:0 9px 28px rgba(14,41,72,.045)}
.detail-page .article-card h2{font-size:1.4rem;margin-top:28px}
.detail-page .article-card p,.detail-page .article-card li{font-size:.94rem;line-height:1.7}
.detail-page .sidebar-card{border-radius:16px;padding:20px}

/* Shared refinements */
.ref-v2 .prefooter{padding-bottom:62px}
.ref-v2 .prefooter-card{border-radius:20px;padding:30px 34px}
.ref-v2 .site-footer{padding-top:48px}
.ref-v2 .footer-brand img{width:160px}
.ref-v2 .footer-grid{gap:54px}
.ref-v2 .footer-links{font-size:.86rem}

@media(max-width:1050px){
  .home-page .hero-grid{grid-template-columns:1fr .72fr;gap:38px}
  .home-page .category-card{grid-template-columns:1fr}.home-page .category-media{height:145px;min-height:0}
  .home-page .section-dark .guide-grid{grid-template-columns:repeat(2,1fr)}
  .directory-page .directory-hero-grid,.detail-page .detail-hero-grid{grid-template-columns:1fr 340px;gap:30px}
  .profile-page .profile-hero{grid-template-columns:1fr 350px;gap:35px}
}
@media(max-width:820px){
  .ref-v2 .container{width:min(calc(100% - 30px),var(--container))}
  .home-page .hero-grid,.directory-page .directory-hero-grid,.detail-page .detail-hero-grid,.profile-page .profile-hero{grid-template-columns:1fr}
  .home-page .hero-panel{justify-self:stretch;max-width:none}
  .home-page .home-business-card{grid-template-columns:1fr;grid-template-areas:'media' 'top' 'content' 'footer'}
  .home-page .home-business-card .listing-media{height:240px;min-height:0}
  .directory-page .directory-hero-media,.detail-page .detail-hero-media{height:240px}
  .profile-page .profile-hero img{height:250px}
  .profile-page .profile-content,.detail-page .content-layout{grid-template-columns:1fr}
  .profile-page .sidebar,.detail-page .sidebar{position:static}
}
@media(max-width:680px){
  .ref-v2 .brand img{width:142px}
  .home-page .hero-grid{padding:54px 0}.home-page .hero h1{font-size:clamp(2.7rem,12vw,3.7rem)}
  .home-page .category-card{grid-template-columns:1fr}.home-page .category-media{height:180px}
  .home-page .section-dark .guide-grid{grid-template-columns:1fr}
  .home-page .home-business-card .listing-top{padding:22px 22px 0}.home-page .home-business-card .listing-content{padding:0 22px}.home-page .home-business-card .listing-footer{padding:0 22px 22px;align-items:flex-start;flex-direction:column}
  .directory-page .directory-hero,.profile-page .profile-page-hero,.detail-page .detail-page-hero{padding:34px 0}
  .directory-page .directory-hero-media,.detail-page .detail-hero-media{height:210px}
  .detail-page .article-card{padding:23px 21px}
  .profile-page .profile-tabs{margin-bottom:24px}
}

/* Referência Brasil V4 — identidade editorial azul/turquesa */
.ref-v4 .page-hero,.ref-v4 .directory-hero{background:linear-gradient(120deg,#0d2346,#164a72);color:#fff}
.ref-v4 .page-hero h1{color:#fff}
.ref-page-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 37%;gap:48px;align-items:center;min-height:320px}
.ref-page-hero-grid>img{width:100%;height:245px;object-fit:cover;border-radius:21px;box-shadow:0 12px 32px rgba(0,0,0,.13)}
.ref-page-hero-grid h1{font-size:clamp(2.4rem,4.4vw,3.75rem);line-height:1.12;letter-spacing:-.035em;margin:15px 0}
.ref-page-hero-grid p{color:#d9e8f4;font-size:1.03rem;max-width:710px}
.ref-page-hero-grid .breadcrumbs,.ref-page-hero-grid .breadcrumbs a{color:#e4effa}
.ref-page-hero-grid .eyebrow{color:#82dfd0}
.ref-company-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:stretch}
.ref-company-card{min-width:0;border:1px solid #dae5f0;overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 6px 20px rgba(23,50,76,.065);display:flex;flex-direction:column}
.ref-company-photo img{height:148px;object-fit:cover;width:100%;display:block}
.ref-company-info{padding:18px;display:flex;flex-direction:column;flex:1}
.ref-kicker{color:#007d79;text-transform:uppercase;font-size:.65rem;letter-spacing:.065em;font-weight:850;display:block;margin-bottom:7px}
.ref-company-card h3{font-size:1.09rem;line-height:1.15;letter-spacing:-.02em;margin:3px 0 11px;min-height:2.4em}
.ref-company-card h3 a{color:#0d2b46}
.ref-company-card p{color:#53677b;font-size:.79rem;line-height:1.55;flex:1;margin:0 0 12px}
.ref-company-card small{font-size:.72rem;color:#506780;margin-bottom:12px}
.ref-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;border-top:1px solid #e3ebf1;padding-top:13px}
.ref-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border:0;border-radius:9px;background:linear-gradient(125deg,#174a82,#169d9c);color:#fff!important;font-weight:800;font-size:.77rem;white-space:nowrap}
.ref-outline{display:inline-flex;align-items:center;justify-content:center;padding:9px 10px;border:1px solid #bcd5e7;border-radius:9px;color:#164d82!important;background:#fff;font-weight:800;font-size:.75rem;white-space:nowrap}
.ref-article-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ref-article-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-radius:16px;border:1px solid #dce7f0;background:#fff;box-shadow:0 6px 24px rgba(12,44,75,.06)}
.ref-article-card img{display:block;width:100%;height:148px;object-fit:cover}
.ref-article-content{padding:16px;display:flex;flex-direction:column;flex:1}
.ref-article-card h3{font-size:1rem;line-height:1.28;margin:3px 0 8px;letter-spacing:-.01em}
.ref-article-card h3 a{color:#0d2949}
.ref-article-card p{font-size:.8rem;color:#586c80;line-height:1.55;flex:1;margin:0 0 12px}
.ref-article-bottom{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid #e7edf2;padding-top:10px;font-size:.7rem}
.ref-article-bottom span{color:#62778a}.ref-article-bottom a{font-weight:800;color:#117d7a}
.ref-news{background:#f1f8fa}
.ref-split-title,.ref-group-header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:24px}
.ref-section-intro{max-width:780px;margin-bottom:26px}.ref-section-intro h2,.ref-group-header h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:8px 0}
.ref-section-intro p,.ref-group-header p{color:#586c7c}.ref-group:nth-child(even){background:#f4f8fc}
.ref-legacy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ref-legacy-grid .directory-card{height:100%}.ref-legacy-grid .directory-card img{height:160px;object-fit:cover;width:100%}
.ref-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.ref-profile-grid .info-card{margin-bottom:19px;padding:27px}.ref-profile-grid .info-card h2{margin:0 0 14px;font-size:1.5rem}
.ref-profile-grid .info-card p{line-height:1.75;color:#4b6177}
.ref-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px}
.ref-link-grid a,.ref-side-links a{display:block;border:1px solid #dce8f2;background:#f3f8fc;border-radius:10px;padding:12px;color:#174f7c;font-size:.8rem;font-weight:750;line-height:1.45}
.ref-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.ref-longread{border:1px solid #e0e9f0;border-radius:20px;background:#fff;padding:36px;box-shadow:0 5px 25px rgba(12,44,75,.04)}
.ref-longread h2{color:#0d2949;font-size:1.48rem;margin:33px 0 13px}.ref-longread h3{font-size:1.12rem;color:#164b70;margin:16px 0 9px}
.ref-longread p{line-height:1.86;color:#41596f;margin:0 0 17px}.ref-longread .ref-lead{font-size:1.15rem;color:#213b54;font-weight:650}
.ref-checklist{list-style:none;padding:0!important}.ref-checklist li{margin:10px 0;padding:8px 10px 8px 33px;background:#f0f8f6;border-radius:8px;position:relative;color:#284c55}.ref-checklist li:before{content:'✓';position:absolute;left:12px;color:#0d907d;font-weight:800}
.ref-faq{background:#edf5fb;border-left:3px solid #17a3a0;padding:15px 22px;border-radius:10px;margin:20px 0}.ref-faq h2{margin:6px 0 10px}.ref-source{font-size:.84rem}.ref-small-meta{display:flex;gap:16px;flex-wrap:wrap;color:#d4e8ef;font-size:.75rem;margin-top:18px}
.ref-article-aside{display:grid;gap:17px;align-content:start}.ref-article-aside .sidebar-card{padding:23px;border-radius:16px;border:1px solid #dce6f0;box-shadow:0 5px 25px rgba(12,44,75,.045)}
.ref-article-aside h3{font-size:1.13rem;margin:10px 0}.ref-article-aside p{font-size:.85rem;line-height:1.6;color:#52697e}
.ref-side-links{display:grid;gap:9px}.ref-small-meta span{color:#e6f4fa}.ref-disclaimer{margin-top:22px;color:#748494;font-size:.74rem}
.ref-existing-extension{padding-top:18px;border-top:1px solid #e5ecf2;margin-top:22px}
@media (min-width:1150px){.ref-company-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:1150px){.ref-company-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-article-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:850px){.ref-page-hero-grid,.ref-profile-grid,.ref-article-layout{grid-template-columns:1fr}.ref-page-hero-grid>img{height:260px}.ref-company-grid,.ref-article-grid,.ref-legacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-split-title,.ref-group-header{align-items:start;flex-direction:column}}
@media (max-width:560px){.ref-company-grid,.ref-article-grid,.ref-legacy-grid,.ref-link-grid{grid-template-columns:1fr}.ref-page-hero-grid h1{font-size:2.15rem}.ref-page-hero-grid>img{height:200px}.ref-longread{padding:21px}.ref-company-photo img{height:200px}.ref-article-card img{height:180px}.ref-actions{justify-content:flex-start}.ref-section-intro h2{font-size:1.8rem}}

.ref-editorial-links{display:flex;flex-wrap:wrap;gap:9px}.ref-editorial-links a{display:inline-flex;border:1px solid #bdd6e5;color:#16517c;background:#f1f8fa;border-radius:999px;padding:11px 16px;font-size:.79rem;font-weight:760}.ref-editorial-links a:hover{border-color:#169a92;background:#e9f8f5}.ref-group{scroll-margin-top:88px}


/* ==========================================================
   REFERÊNCIA BRASIL V5 — SISTEMA VISUAL UNIFICADO
   Refinamento geral: ergonomia, layouts, leituras e mobile.
   ========================================================== */
:root{--container:1200px;--ink:#102a44;--muted:#536982;--line:#dce7f0;--shadow:0 12px 32px rgba(12,42,75,.075)}
.ref-v5{font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
.ref-v5 .container{width:min(calc(100% - 52px),var(--container))}
.ref-v5 a:focus-visible,.ref-v5 button:focus-visible,.ref-v5 input:focus-visible{outline:3px solid #13b7ab;outline-offset:3px}
.ref-v5 .site-header{position:relative;box-shadow:0 1px 0 rgba(15,38,65,.05)}
.ref-v5 .header-inner{min-height:76px}
.ref-v5 .brand img{width:174px}
.ref-v5 .primary-nav{gap:26px;font-size:.88rem}
.ref-v5 .header-cta{border-radius:11px;padding:11px 17px}
.ref-v5 h1,.ref-v5 h2,.ref-v5 h3{font-family:'DM Sans',Inter,Arial,sans-serif;text-wrap:balance}
.ref-v5 .section{padding:76px 0}
.ref-v5 .section-heading{margin-bottom:30px}
.ref-v5 .section-heading h2,.ref-v5 .ref-section-intro h2,.ref-v5 .ref-group-header h2{font-size:clamp(1.85rem,3.15vw,2.75rem);line-height:1.13;letter-spacing:-.035em;margin:10px 0 9px}
.ref-v5 .section-heading p,.ref-v5 .ref-section-intro p,.ref-v5 .ref-group-header p{font-size:1rem;line-height:1.65;max-width:760px}
.ref-v5 .eyebrow{font-size:.74rem;letter-spacing:.08em}
.ref-v5 .eyebrow:before{width:23px}
/* Shared inner-page hero replaces the oversized Serviços image. */
.ref-v5 .page-hero{padding:52px 0!important;background:linear-gradient(115deg,#112c4a,#164f77)!important;color:#fff!important}
.ref-v5 .ref-page-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:center;gap:58px;min-height:260px}
.ref-v5 .ref-page-hero-grid>img{width:100%;height:260px;object-fit:cover;border-radius:20px;box-shadow:0 15px 30px rgba(0,0,0,.1)}
.ref-v5 .ref-page-hero-grid h1,.ref-v5 .page-title{font-size:clamp(2.5rem,4.1vw,3.65rem);line-height:1.09;letter-spacing:-.045em;max-width:740px;margin:14px 0 16px;color:#fff!important}
.ref-v5 .ref-page-hero-grid p,.ref-v5 .page-intro{color:#d9e7f5!important;font-size:1.04rem;line-height:1.68;margin:0;max-width:660px}
.ref-v5 .ref-page-hero-grid .breadcrumbs,.ref-v5 .ref-page-hero-grid .breadcrumbs a{color:#dae9f6}
.ref-v5 .ref-page-hero-grid .eyebrow{color:#80e0d5}
.ref-v5 .breadcrumbs{margin-bottom:16px;font-size:.82rem}
.ref-v5 .page-section{padding:70px 0}
/* Homepage section rhythms and matching category/business/news components. */
.ref-v5-home .hero-grid{padding:78px 0;gap:55px}
.ref-v5-home .hero h1{font-size:clamp(3rem,5vw,4.65rem);line-height:1.04;max-width:730px}
.ref-v5-home .hero-copy{font-size:1.06rem;line-height:1.7}
.ref-v5-home .hero-panel{border-radius:20px}
.ref-v5-home .category-grid{gap:22px}
.ref-v5-home .category-card{border-radius:18px;display:flex;flex-direction:column}
.ref-v5-home .category-card .category-media{height:182px}
.ref-v5-home .category-body{padding:22px 24px 24px;flex:1;display:flex;flex-direction:column}
.ref-v5-home .category-card p{font-size:.94rem;line-height:1.6;flex:1}
.ref-v5-home .category-card h3{font-size:1.33rem}
/* Equal visibility, readable body text and aligned footers for the FIVE firms. */
.ref-v5 .ref-company-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;align-items:stretch}
.ref-v5 .ref-company-grid>.ref-company-card{grid-column:span 2}
.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 4){grid-column:2 / span 2}
.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 5){grid-column:4 / span 2}
.ref-v5 .ref-company-card{border-radius:19px;box-shadow:0 12px 30px rgba(14,42,71,.06);transition:transform .2s,box-shadow .2s}
.ref-v5 .ref-company-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(14,42,71,.1)}
.ref-v5 .ref-company-photo{display:block;overflow:hidden}
.ref-v5 .ref-company-photo img{height:auto;aspect-ratio:16/9;min-height:188px;object-fit:cover;display:block;transition:transform .3s}
.ref-v5 .ref-company-card:hover img{transform:scale(1.025)}
.ref-v5 .ref-company-info{padding:22px 23px 23px}
.ref-v5 .ref-kicker{font-size:.7rem;letter-spacing:.07em;margin-bottom:8px;color:#087f79}
.ref-v5 .ref-company-card h3{font-size:1.37rem;line-height:1.22;margin:2px 0 11px;min-height:0}
.ref-v5 .ref-company-card p{font-size:.93rem;line-height:1.67;margin:0 0 14px;color:#495f75}
.ref-v5 .ref-company-card small{font-size:.84rem;color:#526c7e;margin-bottom:15px}
.ref-v5 .ref-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:17px;margin-top:auto}
.ref-v5 .ref-btn,.ref-v5 .ref-outline{font-size:.84rem;border-radius:10px;min-height:42px;padding:10px 11px;text-align:center;white-space:normal;line-height:1.25}
.ref-v5 .ref-btn:hover{filter:brightness(1.09)}
.ref-v5 .ref-outline:hover{border-color:#138f92;background:#effaf8}
/* Article cards: three across in each FIVE-item section, second row centered; home retains four. */
.ref-v5 .ref-article-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;align-items:stretch}
.ref-v5 .ref-article-grid>.ref-article-card{grid-column:span 2}
.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 4){grid-column:2 / span 2}
.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 5){grid-column:4 / span 2}
.ref-v5-home .ref-article-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}
.ref-v5-home .ref-article-grid>.ref-article-card{grid-column:auto}
.ref-v5 .ref-article-card{border-radius:17px;box-shadow:0 8px 27px rgba(14,42,72,.055);transition:transform .2s,box-shadow .2s}
.ref-v5 .ref-article-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(14,42,72,.1)}
.ref-v5 .ref-article-card>a,.ref-v5 .ref-article-image{display:block;overflow:hidden}
.ref-v5 .ref-article-card img{height:auto;aspect-ratio:16/9;min-height:155px;width:100%;object-fit:cover;display:block;transition:transform .3s}
.ref-v5 .ref-article-card:hover img{transform:scale(1.025)}
.ref-v5 .ref-article-content{padding:21px 21px 19px;gap:0}
.ref-v5 .ref-article-card h3{font-size:1.16rem;line-height:1.32;margin:2px 0 12px;min-height:0}
.ref-v5 .ref-article-card p{font-size:.92rem;line-height:1.63;color:#536a7f;margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ref-v5 .ref-article-bottom{padding-top:14px;gap:11px;font-size:.78rem;margin-top:auto;flex-wrap:wrap}
.ref-v5 .ref-article-bottom span{color:#60748b}
.ref-v5 .ref-article-bottom a{color:#087b76;white-space:nowrap}
.ref-v5 .ref-news{background:#eef7f8}
.ref-v5 .ref-news .section-heading{margin-bottom:28px}
.ref-v5 .section-dark .ref-article-card h3 a{color:#102a44}
/* Every service card has identical hierarchy and a footer pinned to the bottom. */
.ref-v5 .ref-legacy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.ref-v5 .ref-legacy-grid .directory-card{display:flex;flex-direction:column;height:100%;border-radius:18px;transition:transform .2s;overflow:hidden}
.ref-v5 .ref-legacy-grid .directory-card:hover{transform:translateY(-3px)}
.ref-v5 .ref-legacy-grid .directory-card>img{height:auto;aspect-ratio:16/9;min-height:175px;object-fit:cover;width:100%;display:block}
.ref-v5 .ref-legacy-grid .directory-card-body{padding:22px 23px 23px;flex:1;display:flex;flex-direction:column}
.ref-v5 .ref-legacy-grid .directory-card h2,.ref-v5 .ref-legacy-grid .directory-card h3{font-size:1.22rem;line-height:1.3;letter-spacing:-.025em;margin:4px 0 11px}
.ref-v5 .ref-legacy-grid .directory-card p{font-size:.94rem;line-height:1.66;color:#536a7e;margin:0 0 15px;flex:1}
.ref-v5 .ref-legacy-grid .directory-card .more{display:inline-flex;font-size:.9rem;color:#087b76;font-weight:800;margin-top:auto}
/* Section navigator and five equally styled article groups. */
.ref-v5 .ref-contents-navigator{padding:57px 0 32px}
.ref-v5 .ref-editorial-links{gap:11px}
.ref-v5 .ref-editorial-links a{font-size:.88rem;padding:11px 16px;border-radius:11px}
.ref-v5 .ref-group{padding:65px 0!important;scroll-margin-top:22px}
.ref-v5 .ref-group:nth-of-type(odd){background:#f4f8fc}
.ref-v5 .ref-group-header{margin-bottom:27px;align-items:end}
.ref-v5 .ref-group-header p{margin:0}
.ref-v5 .ref-independent-grid{grid-template-columns:minmax(0,370px)}
.ref-v5 .ref-independent-grid .directory-card>img{min-height:185px}
/* Comfortable paragraphs, clear headings, TOC and consistent profile information. */
.ref-v5-detail .page-hero{padding:49px 0!important}
.ref-v5-detail .ref-page-hero-grid{min-height:276px}
.ref-v5-detail .ref-page-hero-grid h1{font-size:clamp(2.45rem,4vw,3.55rem)}
.ref-v5-detail .ref-small-meta{font-size:.85rem;margin-top:19px;gap:14px}
.ref-v5-detail .ref-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:30px;align-items:start}
.ref-v5-detail .ref-longread{padding:43px 47px;border-radius:21px;box-shadow:0 9px 33px rgba(14,42,75,.045)}
.ref-v5-detail .ref-longread p,.ref-v5-detail .ref-longread li{font-size:1.04rem;line-height:1.82;color:#41586d}
.ref-v5-detail .ref-longread h2{font-size:1.53rem;line-height:1.3;letter-spacing:-.023em;margin:39px 0 14px;scroll-margin-top:30px}
.ref-v5-detail .ref-longread h3{font-size:1.2rem;line-height:1.4;margin:25px 0 12px}
.ref-v5-detail .ref-longread>p:first-child{font-size:1.08rem;color:#29455e}
.ref-v5-detail .ref-longread .ref-checklist li{font-size:.99rem;line-height:1.52;margin:10px 0;padding:11px 12px 11px 37px}
.ref-v5-detail .ref-faq{margin:29px 0;padding:20px 24px}
.ref-v5-detail .ref-faq h2{margin:4px 0 16px}
.ref-v5-detail .ref-article-aside{display:grid;gap:18px;position:sticky;top:22px}
.ref-v5-detail .ref-article-aside .sidebar-card{padding:24px;border-radius:17px}
.ref-v5-detail .ref-article-aside .sidebar-card h3{font-size:1.15rem;line-height:1.28}
.ref-v5-detail .ref-article-aside .sidebar-card p{font-size:.92rem;line-height:1.65}
.ref-v5-detail .ref-side-links a,.ref-v5-profile .ref-link-grid a{font-size:.89rem;line-height:1.5;padding:13px}
.ref-v5-detail .ref-toc-card{background:#f3f9fa;border-color:#d4eae9}
.ref-v5-detail .ref-toc-eyebrow{color:#087e7b;font-size:.71rem;letter-spacing:.07em;font-weight:850;text-transform:uppercase;margin-bottom:6px}
.ref-v5-detail .ref-toc-title{font-size:1.18rem;display:block;color:#102b46;margin-bottom:12px}
.ref-v5-detail .ref-toc-list{margin:0;padding:0;list-style:none;display:grid;gap:0}
.ref-v5-detail .ref-toc-list li{border-top:1px solid #dceaea}
.ref-v5-detail .ref-toc-list li a{display:block;padding:10px 0;color:#27536c;font-size:.84rem;line-height:1.38;font-weight:650}
.ref-v5-detail .ref-toc-list li a:hover{color:#007f78}
.ref-v5-profile .ref-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:30px;align-items:start}
.ref-v5-profile .ref-profile-grid .info-card,.ref-v5-profile .ref-profile-grid .sidebar-card{padding:32px;border-radius:18px;border:1px solid #deebf2}
.ref-v5-profile .ref-profile-grid .info-card{margin-bottom:20px}
.ref-v5-profile .ref-profile-grid .info-card h2{font-size:1.55rem;line-height:1.25;margin:0 0 13px}
.ref-v5-profile .ref-profile-grid .info-card p{font-size:1rem;line-height:1.78}
.ref-v5-profile .ref-link-grid{gap:12px}
.ref-v5-profile .ref-profile-grid aside{position:sticky;top:22px}
/* A single consistent CTA/footer for every template. */
.ref-v5 .prefooter{padding:0 0 70px}
.ref-v5 .prefooter-card{padding:34px 40px;border-radius:20px;gap:28px;background:linear-gradient(110deg,#0a63cf,#13a99e)}
.ref-v5 .prefooter-card h2{font-size:clamp(1.5rem,2.2vw,1.9rem);line-height:1.2;margin:7px 0}
.ref-v5 .prefooter-card p{font-size:.94rem}
.ref-v5 .site-footer{padding:52px 0 27px;background:#071b30}
.ref-v5 .footer-grid{gap:44px;grid-template-columns:1.45fr repeat(3,1fr)}
.ref-v5 .footer-brand img{width:169px}
.ref-v5 .footer-brand p,.ref-v5 .footer-links{font-size:.89rem;line-height:1.6}
.ref-v5 .footer-bottom{margin-top:36px}
@media(max-width:1120px){
 .ref-v5 .ref-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ref-v5 .ref-company-grid>.ref-company-card,.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 4),.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 5){grid-column:auto}
 .ref-v5 .ref-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ref-v5 .ref-article-grid>.ref-article-card,.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 4),.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 5){grid-column:auto}
 .ref-v5-home .ref-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ref-v5 .ref-legacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ref-v5 .ref-independent-grid{grid-template-columns:minmax(0,370px)}
 .ref-v5-detail .ref-article-layout,.ref-v5-profile .ref-profile-grid{grid-template-columns:minmax(0,1fr) 275px;gap:22px}
 .ref-v5-detail .ref-longread{padding:34px}
 .ref-v5 .ref-page-hero-grid{gap:34px}
}
@media(max-width:820px){
 .ref-v5 .container{width:min(calc(100% - 36px),var(--container))}
 .ref-v5 .header-inner{min-height:70px}
 .ref-v5 .primary-nav{top:68px;left:18px;right:18px;gap:0}
 .ref-v5 .primary-nav a{padding:11px}
 .ref-v5 .ref-page-hero-grid{grid-template-columns:1fr;gap:25px;min-height:0}
 .ref-v5 .ref-page-hero-grid>img{height:270px}
 .ref-v5 .page-hero{padding:39px 0!important}
 .ref-v5-detail .ref-article-layout,.ref-v5-profile .ref-profile-grid{grid-template-columns:1fr}
 .ref-v5-detail .ref-article-aside,.ref-v5-profile .ref-profile-grid aside{position:static}
 .ref-v5 .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
 .ref-v5 .section{padding:60px 0}
 .ref-v5 .ref-group{padding:55px 0!important}
 .ref-v5 .ref-contents-navigator{padding:50px 0 25px}
 .ref-v5-home .hero-grid{grid-template-columns:1fr;padding:65px 0}
 .ref-v5-home .hero-panel{max-width:none}
 .ref-v5-home .category-grid{grid-template-columns:1fr 1fr}
 .ref-v5-home .category-card:last-child{grid-column:span 2}
}
@media(max-width:580px){
 .ref-v5 .container{width:min(calc(100% - 30px),var(--container))}
 .ref-v5 .brand img{width:149px}
 .ref-v5 .page-hero{padding:33px 0!important}
 .ref-v5 .ref-page-hero-grid h1{font-size:clamp(2.05rem,9vw,2.65rem);line-height:1.12}
 .ref-v5 .ref-page-hero-grid>img{height:210px;border-radius:15px}
 .ref-v5 .section,.ref-v5 .page-section{padding:48px 0}
 .ref-v5 .section-heading,.ref-v5 .ref-group-header,.ref-v5 .ref-split-title{flex-direction:column;align-items:flex-start;gap:12px}
 .ref-v5 .ref-company-grid,.ref-v5 .ref-article-grid,.ref-v5 .ref-legacy-grid,.ref-v5 .ref-independent-grid,.ref-v5-home .ref-article-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .ref-v5 .ref-company-grid>.ref-company-card,.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 4),.ref-v5 .ref-company-grid>.ref-company-card:nth-child(5n + 5),.ref-v5 .ref-article-grid>.ref-article-card,.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 4),.ref-v5 .ref-group .ref-article-grid>.ref-article-card:nth-child(5n + 5){grid-column:auto}
 .ref-v5 .ref-company-photo img{min-height:0;aspect-ratio:16/9}
 .ref-v5 .ref-company-info,.ref-v5 .ref-article-content,.ref-v5 .ref-legacy-grid .directory-card-body{padding:21px}
 .ref-v5 .ref-company-card h3{font-size:1.25rem}
 .ref-v5 .ref-actions{gap:10px}
 .ref-v5 .ref-btn,.ref-v5 .ref-outline{font-size:.82rem}
 .ref-v5 .ref-article-card img{min-height:0;aspect-ratio:16/9}
 .ref-v5 .ref-page-hero-grid .eyebrow{margin-top:6px}
 .ref-v5-detail .ref-longread{padding:24px 21px}
 .ref-v5-detail .ref-longread h2{font-size:1.38rem;margin:30px 0 10px}
 .ref-v5-detail .ref-longread p,.ref-v5-detail .ref-longread li{font-size:.99rem}
 .ref-v5-profile .ref-profile-grid .info-card,.ref-v5-profile .ref-profile-grid .sidebar-card{padding:24px}
 .ref-v5-profile .ref-link-grid{grid-template-columns:1fr}
 .ref-v5-home .category-grid{grid-template-columns:1fr}
 .ref-v5-home .category-card:last-child{grid-column:auto}
 .ref-v5-home .category-card .category-media{height:170px}
 .ref-v5-home .hero h1{font-size:clamp(2.8rem,10vw,3.8rem)}
 .ref-v5-home .hero-search{display:grid;gap:5px}
 .ref-v5-home .hero-search button{min-height:43px}
 .ref-v5 .footer-grid{grid-template-columns:1fr 1fr;gap:28px 15px}
 .ref-v5 .footer-grid>div:first-child{grid-column:span 2}
 .ref-v5 .footer-bottom{flex-direction:column;gap:5px}
 .ref-v5 .prefooter-card{padding:25px;flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.ref-v5 *{scroll-behavior:auto!important;transition:none!important}}

/* V5: legacy V2 article and service URLs now share the same layout as new articles. */
.ref-v5-detail .ref-page-hero-grid .ref-small-meta,.ref-v5-detail .ref-page-hero-grid .ref-small-meta span{color:#cce0ed}
.ref-v5-detail .ref-longread .ref-editorial-deepening{margin-top:34px;padding-top:8px;border-top:1px solid #dfebf0}
.ref-v5-detail .ref-longread .reference-box{font-size:.94rem;line-height:1.7;margin-top:30px}
.ref-v5-detail .ref-article-aside .side-links{gap:10px}
.ref-v5-detail .ref-article-aside .side-links a{font-size:.9rem;line-height:1.48;padding:13px}
.ref-v5-detail .ref-article-aside .sidebar-card{border:1px solid #dce6f0;background:#fff}
.ref-v5-detail .ref-article-aside .ref-toc-card{background:#f3f9fa;border-color:#d4eae9}
.ref-v5-detail .ref-longread h2[id]{scroll-margin-top:30px}
