/* modelo-30/m30.css - the Modelo 30 pages (guide, hub, company pages).

   Source: tools/templates/m30.css. tools/build-tools.mjs copies it to
   modelo-30/m30.css; edit the template, not the copy. Loaded only by the
   /modelo-30 pages, after /styles.css (tokens, reset, focus, .sr-only).

   1. Shell: a copy of the home page's header and footer rules (index.html,
      inline <style>), so these pages wear the same nav, button and footer
      without touching index.html. Keep the two in step by hand.
   2. Page: the spec in DESIGN-modelo30.md section 6. Namespaced .m30-*.
      Some names differ from the spec (.m30-alias, .m30-cards, .m30-find)
      because styles.css still carries the old .m30-aka/.m30-facts/.m30-search
      rules; every class below that shares a name with an old rule sets each
      property the old rule sets, so the old rules cannot leak in.

   Rules kept: ring first, no --lift (one exception: the search
   suggestions float over the page); --accent is fill/focus only, never
   text; Bricolage only at 24px and up and never in the hub table (one
   exception, from the owner's mockup: the company page's docolect card title,
   22px to 26px); mono only for identifiers and Quadro 8 field numbers; no
   overflow:hidden on anything that holds a focusable element (the map
   holds none); no side-stripe borders. */


/* === 1. SHELL (copied from index.html) ================================== */

html{background:var(--paper);}
body.m30-page{background:var(--paper); font-size:16px; line-height:1.55; color:var(--ink);}

.lp-wrap{max-width:1120px; margin:0 auto; padding:0 24px;}
.lp-btn{
  display:inline-flex; align-items:center; justify-content:center; height:52px; padding:0 26px;
  border-radius:var(--r-pill); background:var(--accent-deep); color:#fff; font:600 18px var(--f-body);
  text-decoration:none; border:0; cursor:pointer; white-space:nowrap;
}
.lp-btn:hover{filter:brightness(1.08);}
.lp-btn__arrow{width:20px; height:20px; margin-left:10px; flex:none; transition:transform .2s;}
.lp-btn:hover .lp-btn__arrow{transform:translateX(3px);}
.lp-nav .lp-btn__arrow{width:16px; height:16px; margin-left:8px;}

.lp-nav{height:76px; display:flex; align-items:center; gap:28px;}
.lp-nav__home{display:block; margin-right:auto;}
.lp-nav__logo{display:block; width:auto; height:26px;}
.lp-nav a.lp-link{font-size:14px; font-weight:600; color:var(--slate); text-decoration:none;}
.lp-nav a.lp-link:hover{color:var(--ink);}
.lp-nav .lp-btn{height:40px; padding:0 18px; font-size:14px;}

.lp-foot{padding:40px 0 48px; font-size:14px; line-height:1.5; color:var(--slate);}
.lp-foot__row{display:flex; flex-wrap:wrap; gap:12px 28px; align-items:center;}
.lp-foot__legal{margin:16px 0 0; font-size:14px; line-height:1.6;}
.lp-foot a{color:var(--slate); text-decoration:none;}
.lp-foot a:hover{color:var(--ink);}
.lp-foot .lp-foot__co{margin-right:auto;}

@media (max-width:760px){
  .lp-wrap{padding:0 16px;}
  .lp-nav{height:64px; gap:16px;}
  .lp-nav a.lp-link{display:none;}
  .lp-nav .lp-btn{display:none;}
  .lp-foot__row{flex-direction:column; align-items:flex-start; gap:10px;}
}


/* === 2. PAGE ============================================================ */

.m30-page{--hair:#DDE3E6;}
.m30-page main{display:block; padding-bottom:var(--s2);}
.m30-page main:focus{outline:none;}
/* Long URLs and ids never push the page sideways. */
.m30-page main a, .m30-page main p, .m30-page main li{overflow-wrap:anywhere;}
.m30-ico{width:20px; height:20px; flex:none;}
/* JS visits: show the controls m30.js drives before it runs (no layout shift). */
.m30-js .m30-copy[hidden], .m30-js .m30-cb[hidden]{display:inline-flex !important;}
.m30-js .m30-map[hidden]{display:flex !important;}
.m30-js [data-m30-searchbox][hidden], .m30-js [data-m30-checker][hidden]{display:block !important;}
.m30-js [data-m30-filters][hidden]{display:flex !important;}
/* press feedback on every control */
.lp-btn:active, .m30-btn2:active, .m30-copy:active, .m30-cb:active, .m30-fchip:active, .m30-checker button:active{transform:translateY(1px);}
.m30-more__body p, .m30-fact__p, .m30-stat p, .m30-step p{text-wrap:pretty;}
.m30-skip:focus{position:absolute; left:16px; top:14px; z-index:20; width:auto; height:auto; margin:0; padding:10px 16px; clip:auto; clip-path:none;
  overflow:visible; white-space:nowrap; border-radius:var(--r-ctl); background:var(--paper); box-shadow:var(--ring); color:var(--accent-deep); font-weight:600;}

/* ---- crumbs, hero ---------------------------------------------------- */

.m30-crumbs{padding-top:var(--s3);}
.m30-crumbs ol{display:flex; flex-wrap:wrap; align-items:center; gap:4px var(--s2);
  margin:0; padding:0; list-style:none; font-size:14px; line-height:1.5; color:var(--slate);}
.m30-crumbs li{display:inline-flex; align-items:center; gap:var(--s2); min-width:0;}
.m30-crumbs li + li::before{content:"/"; color:var(--line);}
.m30-crumbs a{color:var(--slate); text-decoration:none;}
.m30-crumbs a:hover{color:var(--accent-deep); text-decoration:underline; text-underline-offset:3px;}
.m30-crumbs [aria-current]{color:var(--ink); font-weight:600; overflow-wrap:anywhere;}

.m30-hero{padding:var(--s7) 0 0;}
.m30-hero > .m30-pill{margin-bottom:var(--s1);}
.m30-h1{font:600 clamp(34px,4.6vw,52px)/1.05 var(--f-display); letter-spacing:-.025em;
  color:var(--ink); margin:var(--s3) 0 0; text-wrap:balance; overflow-wrap:anywhere;}
.m30-lede{font-size:18px; line-height:1.45; color:var(--slate); margin:var(--s4) 0 0; max-width:60ch; text-wrap:pretty;}
.m30-alias{font-size:14px; line-height:1.45; color:var(--slate); margin:var(--s2) 0 0;}
.m30-alias b{font-weight:600; color:var(--ink);}

.m30-h2{font:600 clamp(24px,2.6vw,30px)/1.15 var(--f-display); letter-spacing:-.02em; color:var(--ink);
  margin:0; text-wrap:balance; scroll-margin-top:24px;}
.m30-sec{margin-top:var(--s8);}
.m30-sec__sub{margin:var(--s2) 0 0; font-size:16px; color:var(--slate); max-width:60ch; text-wrap:pretty;}
.m30-nowrap{white-space:nowrap;}
.m30-num{white-space:nowrap;}
.m30-num > span + span{margin-left:.22em;}
.m30-sec__p{margin:var(--s3) 0 0; font-size:18px; line-height:1.5; max-width:60ch; text-wrap:pretty;}

/* ---- stage + app window: the guide's Quadro 8 form mock -------------- */

.m30-stage{margin-top:var(--s7); padding:var(--s7) clamp(12px,4vw,var(--s8)); border-radius:28px; background:var(--wash);}
.m30-win{max-width:800px; margin:0 auto; background:var(--paper); border-radius:16px; box-shadow:var(--ring);}
.m30-win__bar{height:34px; display:flex; align-items:center; gap:6px; padding:0 14px;
  background:var(--canvas); border-bottom:1px solid var(--line); border-radius:16px 16px 0 0;}
.m30-win__bar i{width:9px; height:9px; border-radius:50%; background:var(--line);}
.m30-win__bar span{margin-left:10px; font-size:13px; font-weight:600; color:var(--slate);}

/* ---- company page: Quadro 8 and Ficha tables, side column -------------
   the owner, 5 Nov 2026; spec prototypes/pagina-q8-tabela-a.html (option A,
   "Linhas por campo"); values copied from its styles. Each table sits in a
   grid "table | 300px" (gap 20px, stretched), so both tables have the same
   width and the side column (docolect card, map) the table's height. The
   table: 1px #E1E7EA box, 12px radius, grey header row with uppercase 12px
   labels; rows of field (number badge + name) | value(s) | Copiar | note.
   Quadro 8 values are right-aligned against their buttons, one line per
   value. Corners come from the cells (border-collapse: separate), not from
   overflow:hidden, so no focus ring is cut. 900px and below: the side
   column drops under the table. 640px and below (further down): each row
   stacks as field, value + button, note. */

.m30-co .m30-hero{padding-top:16px;}
/* company pages: intro and alias lines at the size of the CTA card subline (owner, 5 Nov) */
.m30-co .m30-lede, .m30-co .m30-alias{font-size:15px; margin-top:2px;}
.m30-co .m30-lede{margin-top:var(--s3);}
.m30-co .m30-sec, .m30-co .m30-band{margin-top:32px;}
.m30-title{font:600 23px/1.25 var(--f-body); letter-spacing:-.01em; color:var(--ink); margin:0; text-wrap:balance; scroll-margin-top:24px;}

.m30-qt{--qt-line:#E1E7EA; margin-top:32px;}
.m30-qt--q8{margin-top:24px;}
.m30-qt__title{margin-bottom:12px;}
.m30-qt__wrap{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:stretch;}
.m30-qt__box{position:relative; min-width:0; border:1px solid var(--qt-line); border-radius:12px; background:var(--paper);}
.m30-qt__table{width:100%; height:100%; margin:0; border-collapse:separate; border-spacing:0; table-layout:auto; font-size:16px; line-height:1.55;}
.m30-qt__h{padding:12px 16px; text-align:left; white-space:nowrap; background:var(--canvas); border-bottom:1px solid var(--qt-line);
  font:600 12px/1 var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--slate);}
.m30-qt__table thead th:first-child{border-top-left-radius:11px;}
.m30-qt__table thead th:last-child{border-top-right-radius:11px;}
.m30-qt__table tbody > tr > *{padding:14px 16px; text-align:left; vertical-align:top; font-weight:400; border-bottom:1px solid var(--qt-line);}
.m30-qt__table tbody > tr:last-child > *{border-bottom:0;}
.m30-qt__table tbody > tr:last-child > :first-child{border-bottom-left-radius:11px;}
.m30-qt__table tbody > tr:last-child > :last-child{border-bottom-right-radius:11px;}
.m30-qt__table tbody > tr:hover > *{background:#FAFCFD;}
.m30-qt__table .m30-qt__f{width:1%; white-space:nowrap; padding-right:28px;}
.m30-qt__n{display:inline-grid; place-items:center; min-width:30px; height:24px; padding:0 6px; border-radius:6px;
  background:var(--wash); color:var(--accent-deep); font:600 13px var(--f-mono);}
.m30-qt__l{font:600 16px/1.3 var(--f-body); color:var(--ink);}
.m30-qt__n + .m30-qt__l{margin-left:10px;}
.m30-qt__table .m30-qt__v{padding-right:8px;}
.m30-qt__table--q8 .m30-qt__v{width:1%; white-space:nowrap; text-align:right;}
.m30-qt__table--ficha .m30-qt__v{font-size:15px; overflow-wrap:anywhere;}
.m30-qt__table .m30-qt__c{width:1%; padding-left:0; padding-right:24px;}
.m30-qt__lines{display:grid; gap:8px;}
.m30-qt__line{display:flex; align-items:center; gap:12px; min-height:30px;}
.m30-qt__table--q8 .m30-qt__v .m30-qt__line{justify-content:flex-end;}
/* The button's line keeps the "Copiar" width, so "Copiado" grows into the
   cell's padding instead of widening the column. */
.m30-qt__c .m30-qt__line{width:72px;}
.m30-qt__id{font:500 16px/1.55 var(--f-mono); font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap;}
.m30-qt__id > span + span{margin-left:.6em;}   /* 710 637 012 drawn, 710637012 selected and copied */
.m30-qt__none{font-size:15px; line-height:1.4; color:var(--slate); white-space:normal;}
.m30-qt__table .m30-qt__note{padding-top:18px; font-size:14px;}
/* The note column's header holds only the pill, right-aligned. The pill
   floats over the (visually empty) Copiar header when the column is
   narrow, so a long field name never pushes the table out of its box. */
.m30-qt__table .m30-qt__h--note{position:relative; height:41px; padding-top:8px; padding-bottom:8px; text-align:right;}
.m30-qt__pill{display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 10px; border-radius:999px; background:#E8F5EF; color:#16785F;
  font:600 12px var(--f-body); letter-spacing:0; text-transform:none; white-space:nowrap;}
.m30-qt__h--note .m30-qt__pill{position:absolute; right:16px; top:50%; transform:translateY(-50%);}
.m30-qt__hint{font-size:13px; color:#8A5A00; text-decoration:underline; text-decoration-color:rgba(138,90,0,.35); text-underline-offset:3px;}
.m30-qt__link{font-size:13px; color:var(--slate); text-underline-offset:3px;}
.m30-qt__muted, .m30-qt__desc{color:var(--slate); font-size:14px;}
.m30-qt__desc{display:block;}
.m30-qt__sub{display:block; margin-top:2px; font-size:13px; color:var(--slate); font-style:italic;}
.m30-qt__code{font:600 13px var(--f-mono); color:var(--ink);}
.m30-qt__bad{color:var(--late); font-size:14px; font-weight:600;}
.m30-qt__notes{display:grid; gap:8px;}
.m30-qt__side{min-height:1px;}

/* the docolect card beside Quadro 8: logo in the top-left corner, the rest
   centred in the card unless that would reach the logo (the first grid row
   keeps 27px: 18px logo offset + 21px logo + 12px, less the 24px padding) */
.m30-cta{display:grid; grid-template-rows:minmax(27px,1fr) auto 1fr; padding:24px 22px; border-radius:12px; background:var(--wash);}
.m30-cta__logo{display:block; align-self:start; width:84px; height:auto; margin-top:-6px;}
.m30-cta__body{display:flex; flex-direction:column; align-items:flex-start; gap:10px;}
.m30-cta__t{margin:0; font:600 clamp(22px,2vw,26px)/1.15 var(--f-display); letter-spacing:-.02em; color:var(--ink); text-wrap:balance;}
.m30-cta__s{margin:0; font-size:15px; color:var(--slate);}
.m30-cta__b{margin-top:8px;}

/* the map of the registered address: MapLibre + OpenFreeMap positron,
   loaded by m30.js on scroll; the attribution line the tiles require */
.m30-map{display:flex; flex-direction:column; min-width:0; min-height:0; margin:0; border:1px solid var(--qt-line); border-radius:12px;
  overflow:hidden; background:#F4F6F7;}
.m30-map__box{position:relative; display:flex; flex:1 1 auto;}
.m30-map__canvas{flex:1 1 auto; width:100%; min-height:220px; opacity:0; transition:opacity .4s ease;}
.m30-map.is-ready .m30-map__canvas{opacity:1;}
.m30-map__attr{position:absolute; right:6px; bottom:5px; z-index:2; padding:2px 4px; border-radius:3px; pointer-events:none;
  font-size:9px; line-height:1; color:rgba(34,66,81,.6); background:rgba(255,255,255,.7);}
.m30-map__pin{width:18px; height:18px; border-radius:50%; background:var(--accent-deep); border:3px solid #fff;
  box-shadow:0 0 0 6px rgba(0,173,239,.25), 0 2px 6px rgba(0,0,0,.25);}

/* copy button of the company pages: light grey, no border, 24px; the hit
   area reaches 38px tall without touching the next button */
.m30-cb{position:relative; display:inline-flex; align-items:center; gap:5px; height:24px; margin:0; padding:0 9px 0 7px; border:0; border-radius:999px;
  background:#EEF2F4; color:var(--slate); font:600 12px var(--f-body); white-space:nowrap; cursor:pointer; transition:background .15s, color .15s;}
.m30-cb svg{width:13px; height:13px; flex:none;}
.m30-cb::after{content:""; position:absolute; inset:-7px -4px;}
.m30-cb:hover{background:#E1E7EA; color:var(--ink);}
.m30-cb.is-done{background:#E8F5EF; color:#16785F;}

/* copy button: text + icon, aria-label carries the value */
.m30-copy{position:relative; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border:0; margin:0;
  border-radius:var(--r-pill); background:var(--paper); box-shadow:inset 0 0 0 1px var(--line);
  font:600 13px/1 var(--f-body); color:var(--accent-deep); cursor:pointer; white-space:nowrap;
  transition:background .15s ease, box-shadow .15s ease, color .15s ease;}
.m30-copy svg{width:14px; height:14px; flex:none;}
.m30-copy::after{content:""; position:absolute; inset:-6px;}   /* 44px hit area */
.m30-copy:hover{background:var(--wash); box-shadow:inset 0 0 0 1px var(--accent);}
.m30-copy.is-done{background:var(--ok-wash); color:var(--ok); box-shadow:none;}
.m30-copy--icon{width:32px; padding:0; justify-content:center;}

/* pills: word + colour + icon, never colour alone */
.m30-pill{display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 10px;
  border-radius:var(--r-pill); font:600 13px/1 var(--f-body); white-space:nowrap; vertical-align:middle;}
.m30-pill svg{width:12px; height:12px; flex:none;}
.m30-pill--ok{background:var(--ok-wash); color:var(--ok);}
.m30-pill--warn{background:var(--soon-wash); color:var(--soon);}
.m30-pill--bad{background:var(--late-wash); color:var(--late);}
.m30-pill--neutral{background:transparent; color:var(--slate); box-shadow:inset 0 0 0 1px var(--line);}
.m30-pill--brand{background:var(--wash); color:var(--accent-deep);}
.m30-pill--country{background:var(--paper); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line); height:28px; padding:0 12px; font-size:14px; gap:7px;}
.m30-pill--country b{font:600 12px var(--f-mono); color:var(--accent-deep);}

/* inline warning: tinted block, no side stripe */
.m30-flag{display:flex; gap:10px; align-items:flex-start; margin-top:var(--s4); padding:10px 14px;
  border-radius:10px; background:var(--soon-wash); color:var(--soon); font-size:14px; line-height:1.45;}
.m30-flag svg{width:16px; height:16px; flex:none; margin-top:2px;}
.m30-flag a{color:inherit; font-weight:600;}
.m30-flag--page{margin:var(--s5) 0 0; max-width:640px;}

/* ---- three fact cards under the stage --------------------------------- */

.m30-cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--s5); margin-top:var(--s6);}
.m30-fact{display:flex; flex-direction:column; align-items:flex-start; gap:var(--s3); min-width:0; padding:var(--s6);
  border-radius:var(--r-card); background:var(--paper); box-shadow:var(--ring);}
.m30-fact__head{display:flex; align-items:center; gap:10px; font:600 18px/1.3 var(--f-body); margin:0; color:var(--ink);}
.m30-fact__head svg{width:24px; height:24px; color:var(--accent-deep); flex:none;}
.m30-fact__big{font:600 44px/1 var(--f-display); letter-spacing:-.02em; color:var(--ink);}
.m30-fact__mid{font:600 24px/1.15 var(--f-display); letter-spacing:-.015em; color:var(--ink);}
.m30-fact__p{margin:0; font-size:15px; line-height:1.45; color:var(--slate); text-wrap:pretty;}
.m30-fact__act{margin-top:auto; padding-top:var(--s2);}
.m30-btn2{display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 16px; border-radius:var(--r-pill);
  box-shadow:inset 0 0 0 1.5px var(--accent-deep); color:var(--accent-deep); font:600 14px/1.2 var(--f-body); text-decoration:none;}
.m30-btn2 svg{width:16px; height:16px; flex:none;}
.m30-btn2:hover{background:var(--wash);}
.m30-link{display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--accent-deep); text-decoration:none;}
.m30-link svg{width:16px; height:16px; flex:none; transition:transform .2s;}
.m30-link:hover{text-decoration:underline; text-underline-offset:3px;}
.m30-link:hover svg{transform:translateX(2px);}

/* ---- related entities --------------------------------------------------- */

.m30-rel{display:flex; flex-wrap:wrap; gap:var(--s2); margin:var(--s4) 0 0; padding:0; list-style:none;}
.m30-rel > li{min-width:0; max-width:100%;}
.m30-rel > li > *{display:inline-flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; min-height:44px; max-width:100%; padding:10px 16px;
  border-radius:var(--r-pill); background:var(--paper); box-shadow:inset 0 0 0 1px var(--line);
  font-size:15px; font-weight:600; line-height:1.4; color:var(--ink); text-decoration:none;}
.m30-rel small{font-size:14px; font-weight:400; color:var(--slate);}
.m30-rel a{color:var(--accent-deep);}
.m30-rel a:hover{background:var(--wash); box-shadow:inset 0 0 0 1px var(--accent);}
/* "Outras empresas de ...": a card per company, the name (the link, which
   covers the card) over a one-line reason. */
.m30-rel--why{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));}
.m30-rel--why > li{position:relative; display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:var(--r-card);
  background:var(--paper); box-shadow:inset 0 0 0 1px var(--line);}
.m30-rel--why > li > *{display:block; min-height:0; padding:0; border-radius:0; background:none; box-shadow:none;}
.m30-rel--why a::after{content:""; position:absolute; inset:0; border-radius:var(--r-card);}
.m30-rel--why a:hover{background:none; box-shadow:none; text-decoration:underline; text-underline-offset:3px;}
.m30-rel--why > li:hover{background:var(--wash); box-shadow:inset 0 0 0 1px var(--accent);}

/* ---- progressive disclosure ------------------------------------------- */

.m30-more{margin-top:var(--s8); border-top:1px solid var(--hair);}
.m30-more--tight{margin-top:var(--s5);}
.m30-more details{border-bottom:1px solid var(--hair);}
.m30-more summary{display:flex; justify-content:space-between; align-items:center; gap:var(--s4);
  min-height:60px; padding:var(--s3) 0; font:600 18px/1.3 var(--f-body); color:var(--ink); cursor:pointer; list-style:none;}
.m30-more summary::-webkit-details-marker{display:none;}
.m30-more summary:hover{color:var(--accent-deep);}
.m30-more summary svg{width:22px; height:22px; flex:none; color:var(--accent-deep); transition:transform .2s var(--ease-out);}
.m30-more details[open] > summary svg{transform:rotate(180deg);}
.m30-more__body{max-width:var(--w-prose); padding:0 0 var(--s6); font-size:16px; line-height:1.6;}
.m30-more__body > * + *{margin-top:var(--s3);}
.m30-more__body h3{font:600 15px/1.4 var(--f-body); color:var(--slate); margin-top:var(--s5);}
.m30-more__body h3:first-child{margin-top:0;}
.m30-more__body ul, .m30-more__body ol{display:flex; flex-direction:column; gap:var(--s2); margin:0; padding:0; list-style:none;}
.m30-more__body ul > li{position:relative; padding-left:18px;}
.m30-more__body ul > li::before{content:""; position:absolute; left:2px; top:.68em; width:6px; height:6px; border-radius:50%; background:var(--line);}
.m30-more__body ol{counter-reset:m30n;}
.m30-more__body ol > li{position:relative; padding-left:30px; counter-increment:m30n;}
.m30-more__body ol > li::before{content:counter(m30n); position:absolute; left:0; top:1px; width:20px; height:20px; border-radius:50%;
  background:var(--wash); color:var(--accent-deep); font:700 12px/20px var(--f-body); text-align:center;}
.m30-more__body code, .m30-mono{font-family:var(--f-mono); font-size:.94em;}
.m30-kv{display:grid; grid-template-columns:minmax(0,130px) minmax(0,1fr); gap:var(--s2) var(--s4); margin:0; font-size:15px; line-height:1.5;}
.m30-kv dt{font-weight:600; color:var(--slate);}
.m30-kv dd{margin:0; min-width:0; overflow-wrap:anywhere;}
.m30-srcs li{font-size:15px;}
.m30-small{font-size:14px; color:var(--slate);}

.m30-meta{margin:var(--s5) 0 0; font-size:14px; color:var(--slate);}
.m30-links{display:flex; flex-wrap:wrap; gap:var(--s3) var(--s6); margin:var(--s5) 0 0;}

/* ---- closing band ------------------------------------------------------- */

.m30-band{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s5);
  margin-top:var(--s9); padding:var(--s7) clamp(20px,5vw,var(--s8)); border-radius:28px; background:var(--wash);}
.m30-band h2, .m30-band__title{font:600 clamp(24px,2.6vw,30px)/1.15 var(--f-display); letter-spacing:-.02em; margin:0; color:var(--ink); max-width:22ch; text-wrap:balance;}
.m30-band--center{flex-direction:column; justify-content:center; text-align:center; padding:72px 24px;}
.m30-band--center h2, .m30-band--center .m30-band__title{max-width:none;}
.m30-band__sub{margin:var(--s2) 0 0; font-size:17px; line-height:1.45; color:var(--slate);}

/* ---- guide: search, stats, form mock, calendar, steps -------------------- */

/* The A1 search box (rules under "company search" below): the guide's hero
   field and the hub's filter field. */
.m30-find, .m30-find--hub{max-width:560px; margin-top:var(--s6);}

.m30-stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--s5); margin:var(--s8) 0 0; padding:0; list-style:none;}
.m30-stat{padding:var(--s6); border-radius:var(--r-card); background:var(--wash);}
.m30-stat__k{font-size:14px; font-weight:600; color:var(--accent-deep);}
.m30-stat__v{display:block; margin:var(--s2) 0 var(--s3); font:600 44px/1 var(--f-display); letter-spacing:-.02em; color:var(--ink);}
.m30-stat p{margin:0; font-size:15px; line-height:1.45; color:var(--slate); text-wrap:pretty;}

.m30-form__group{padding:var(--s5) var(--s6) var(--s6);}
.m30-form__group + .m30-form__group{border-top:1px solid var(--hair);}
.m30-form__gh{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:var(--s1) var(--s3); margin:0 0 var(--s3);
  font-size:14px; font-weight:600; color:var(--ink);}
.m30-form__gh span{font-weight:400; color:var(--slate);}
.m30-form__gh a{font-weight:600; text-decoration:none;}
.m30-form__row{display:grid; gap:var(--s3); grid-template-columns:repeat(var(--n),minmax(0,1fr)); margin:0; padding:0; list-style:none;}
.m30-box{display:flex; flex-direction:column; gap:6px; min-width:0; min-height:104px; padding:10px 12px; border-radius:var(--r-ctl);
  box-shadow:inset 0 0 0 1px var(--line);}
.m30-box__n{align-self:flex-start; padding:1px 6px; border-radius:var(--r-chip); background:var(--wash);
  color:var(--accent-deep); font:700 12px/1.4 var(--f-body);}
.m30-box__l{font-size:13px; font-weight:600; line-height:1.3; color:var(--slate);}
.m30-box__v{margin-top:auto; font:600 17px/1.3 var(--f-mono); letter-spacing:.01em; color:var(--ink); overflow-wrap:anywhere;}
.m30-box__v > span + span{margin-left:.3em;}
.m30-box__v--empty{height:20px; border-bottom:1.5px dashed var(--line);}
.m30-box--fill{background:var(--field);}

.m30-bul{display:flex; flex-direction:column; gap:var(--s2); margin:var(--s5) 0 0; padding:0; list-style:none; max-width:var(--w-prose);}
.m30-bul li{display:flex; gap:10px; align-items:flex-start; font-size:16px;}
.m30-bul svg{width:18px; height:18px; flex:none; margin-top:3px; color:var(--accent-deep);}

.m30-cal{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--s3); margin:var(--s5) 0 0; padding:0; list-style:none;}
.m30-tile{display:flex; flex-direction:column; gap:4px; min-width:0; min-height:150px; padding:var(--s4); border-radius:var(--r-card);
  background:var(--paper); box-shadow:var(--ring);}
.m30-tile__paid{font-size:13px; font-weight:600; color:var(--slate);}
.m30-tile__date{margin-top:var(--s2); font:600 30px/1.05 var(--f-display); letter-spacing:-.02em; color:var(--ink);}
.m30-tile__dow{font-size:14px; color:var(--slate);}
.m30-tile__note{font-size:13px; line-height:1.4; color:var(--ink);}
.m30-tile__pills{display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:var(--s2);}
.m30-tile .m30-pill{height:auto; min-height:24px; padding:4px 10px; border-radius:12px; line-height:1.2; white-space:normal;}
.m30-tile--moved{background:var(--wash); box-shadow:none;}
.m30-tile--moved .m30-pill--brand, .m30-tile--next .m30-pill--brand{background:var(--paper);}
.m30-tile--moved.m30-tile--next{box-shadow:inset 0 0 0 2px var(--accent-deep);}
.m30-tile--next{box-shadow:inset 0 0 0 2px var(--accent-deep);}
.m30-calnote{margin:var(--s4) 0 0; font-size:14px; color:var(--slate);}
.m30-calnote + .m30-calnote{margin-top:2px;}

.m30-steps{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--s6); margin:var(--s5) 0 0; padding:0; list-style:none;}
.m30-step__n{display:block; font:600 44px/1 var(--f-display); letter-spacing:-.02em; color:var(--accent-deep);}
.m30-step__t{margin:var(--s3) 0 var(--s1); font:600 18px/1.3 var(--f-body); color:var(--ink);}
.m30-step p{margin:0; font-size:15px; line-height:1.45; color:var(--slate);}

/* ---- hub ----------------------------------------------------------------- */

.m30-hubhero{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:var(--s7); align-items:end; padding-top:var(--s7);}
.m30-hubhero .m30-hero{padding-top:0;}
.m30-checker{padding:var(--s5) var(--s6) var(--s5); border-radius:var(--r-card); background:var(--paper); box-shadow:var(--ring);}
.m30-checker h2{font:600 18px/1.3 var(--f-body); margin:0; color:var(--ink); scroll-margin-top:24px;}
.m30-checker > p{margin:var(--s1) 0 var(--s3); font-size:14px; line-height:1.45; color:var(--slate);}
.m30-checker__row{display:flex; gap:var(--s2);}
.m30-checker input{flex:1; min-width:0; height:44px; margin:0; padding:0 14px; border:0; border-radius:var(--r-ctl);
  background:var(--paper); box-shadow:inset 0 0 0 1.5px var(--slate); font:600 16px var(--f-mono); color:var(--ink);}
.m30-checker input::placeholder{color:var(--slate); opacity:.75;}
.m30-checker button{height:44px; padding:0 16px; border:0; border-radius:var(--r-ctl); background:var(--accent-deep); color:#fff;
  font:600 15px var(--f-body); cursor:pointer;}
.m30-checker button:hover{filter:brightness(1.08);}
.m30-checker__out{margin:var(--s3) 0 0; font-size:14px; line-height:1.45;}
.m30-checker__out:empty{display:none;}
.m30-checker__out.is-ok, .m30-checker__out.is-bad{display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:10px;}
.m30-checker__out.is-ok{background:var(--ok-wash); color:var(--ok);}
.m30-checker__out.is-bad{background:var(--late-wash); color:var(--late);}
.m30-checker__out svg{width:16px; height:16px; flex:none; margin-top:2px;}
.m30-checker__out a{color:inherit; font-weight:600;}
.m30-checker__vies{margin:var(--s3) 0 0; font-size:13px; color:var(--slate);}
.m30-checker__vies a{color:var(--slate);}

.m30-filters{display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2); margin:var(--s8) 0 var(--s4);}
.m30-fchip{display:inline-flex; align-items:center; gap:6px; height:36px; margin:0; padding:0 14px; border:0; border-radius:var(--r-pill); background:var(--paper);
  box-shadow:inset 0 0 0 1px var(--line); font:600 14px/1 var(--f-body); color:var(--slate); cursor:pointer;}
.m30-fchip span{font-weight:400;}
.m30-fchip:hover{color:var(--ink); box-shadow:inset 0 0 0 1px var(--slate);}
.m30-fchip[aria-pressed="true"]{background:var(--wash); color:var(--accent-deep); box-shadow:0 0 0 1.5px var(--accent);}
.m30-fchip--sel{position:relative; padding-right:34px;}
.m30-fchip--sel select{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font:inherit;}
.m30-fchip--sel svg{position:absolute; right:12px; top:10px; width:16px; height:16px; pointer-events:none;}
.m30-fchip--sel:focus-within{outline:2.5px solid var(--accent-deep); outline-offset:2px;}
.m30-fchip--sel.is-on{background:var(--wash); color:var(--accent-deep); box-shadow:0 0 0 1.5px var(--accent);}
:root:not(.m30-js) .m30-listhead{margin-top:var(--s8);}
.m30-listhead{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:var(--s2) var(--s4); font-size:14px; color:var(--slate);}
.m30-count{margin:0; font-size:14px; line-height:1.45; color:var(--slate);}
.m30-count b{font-weight:600; color:var(--ink);}
.m30-dl{display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--accent-deep); text-decoration:none; white-space:nowrap;}
.m30-dl svg{width:16px; height:16px;}
.m30-dl:hover{text-decoration:underline; text-underline-offset:3px;}
.m30-empty{margin:var(--s5) 0 0; padding:var(--s6); border-radius:var(--r-card); background:var(--canvas); color:var(--slate); text-align:center; font-size:16px;}

.m30-rows{width:100%; margin-top:var(--s3); border-collapse:separate; border-spacing:0 6px; font-size:15px; line-height:1.35;}
.m30-rows thead th{padding:0 12px 2px; font:600 12.5px/1.3 var(--f-body); color:var(--slate); text-align:left; white-space:nowrap;}
.m30-rows td, .m30-rows tbody th{padding:12px; background:var(--paper); vertical-align:middle; text-align:left; font-weight:400;
  box-shadow:inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);}
.m30-rows tbody tr > :first-child{border-radius:10px 0 0 10px; box-shadow:inset 1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);}
.m30-rows tbody tr > :last-child{border-radius:0 10px 10px 0; box-shadow:inset -1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);}
.m30-rows tbody tr:hover > *{background:var(--field);}
.m30-ent{display:flex; align-items:center; gap:12px; min-width:0;}
.m30-ini{display:inline-grid; place-items:center; flex:none; width:32px; height:32px; border-radius:8px; background:var(--wash);
  color:var(--accent-deep); font:700 11.5px var(--f-body); letter-spacing:.02em;}
.m30-ent__t{min-width:0;}
.m30-name{display:block; font-size:15px; font-weight:600; color:var(--ink); text-decoration:none; overflow-wrap:anywhere;}
a.m30-name{color:var(--accent-deep);}
a.m30-name:hover{text-decoration:underline; text-underline-offset:3px;}
.m30-ent small{display:block; margin-top:1px; font-size:12.5px; line-height:1.35; color:var(--slate); overflow-wrap:anywhere;}
.m30-ctry{display:block; color:var(--ink);}
.m30-ctry small{display:block; font:500 12.5px var(--f-mono); color:var(--slate);}
.m30-nifs{display:flex; flex-direction:column; gap:4px;}
.m30-nifl{display:inline-flex; align-items:center; gap:8px;}
.m30-nif, .m30-fid{font:500 15px/1.3 var(--f-mono); letter-spacing:.01em; color:var(--ink); white-space:nowrap;}
.m30-nif > span + span{margin-left:.3em;}
.m30-fid{white-space:normal; overflow-wrap:anywhere;}
.m30-none{color:var(--slate); font-size:14px; font-style:normal;}
.m30-st{white-space:nowrap;}
.m30-st .m30-pill + .m30-pill{margin-left:4px;}
.m30-go{width:40px; color:var(--accent-deep);}
.m30-go svg{width:18px; height:18px;}
.m30-rows tr.m30-group > th{padding:var(--s5) 0 var(--s1); background:none; box-shadow:none; border-radius:0;
  font:600 14px/1.3 var(--f-body); color:var(--slate);}
.m30-rows tr.m30-group:hover > th{background:none;}
@media (hover:hover) and (pointer:fine){
  .m30-rows .m30-copy--icon{opacity:.55;}
  .m30-rows tr:hover .m30-copy--icon, .m30-rows tr:focus-within .m30-copy--icon, .m30-rows .m30-copy--icon.is-done{opacity:1;}
}

/* data tables inside details (legal days of the deadlines) */
.m30-dl-list{display:flex; flex-direction:column; gap:var(--s2);}
.m30-ent small.m30-ent__d{margin-top:2px; max-width:52ch;}

/* ---- company search: the A1 box (owner, 5 Nov) --------------------------
   Spec: prototypes/pesquisa-a1.html; values copied from it. The wrapper
   (.m30-sbox: the form, or the hub's div) carries the state m30.js sets:
   has-text (from the first character), is-focus, is-open (suggestions).
   48px pill, 1.5px --line border, dark blue border on focus and no glow.
   "Pesquisar" (37px) sits 5.5px from the outline on top, bottom and right:
   (48 - 3 - 37) / 2 + 1.5 = 5.5, and padding-right 4 + 1.5 border = 5.5.
   It slides out on focus or text. The clear x (28px) only fades in place;
   with it the padding-right is 8.5, so it sits 10px from the outline like
   above and below: (48 - 28) / 2 = 10. The suggestions float, so they get
   a shadow (the one exception to "ring first").
   The one change from the prototype: the pill clips what spills past its
   outline (overflow:clip). The collapsed button's label used to stick out
   on the right and widened a 390px page; the 2px clip margin keeps the
   focus rings inside it whole. */

.m30-page{--line-soft:#E1E7EA; --mark:#FFF1B8; --shadow:rgba(20,48,61,.14); --ease-a1:cubic-bezier(.2,.8,.2,1);}
.m30-sbox{position:relative; font:16px/1.5 var(--f-body); font-variant-numeric:normal; color:var(--ink);}
.m30-sbox__box{display:flex; align-items:center; gap:10px; height:48px; padding:0 4px 0 16px; border-radius:999px; background:var(--paper);
  border:1.5px solid var(--line); transition:border-color .18s, box-shadow .22s var(--ease-a1);
  overflow:clip; overflow-clip-margin:2px;}
.m30-sbox__box:focus-within{border-color:var(--accent-deep);}
.m30-sbox.has-text .m30-sbox__box{padding-right:8.5px;}
.m30-sbox__ico{width:18px; height:18px; flex:none; color:var(--slate);}
.m30-sbox input{width:100%; min-width:0; height:auto; margin:0; padding:1px 2px; font:inherit; color:var(--ink); background:transparent;
  border:0; border-radius:0; outline:0; box-shadow:none; -webkit-appearance:none; appearance:none;}
.m30-sbox input:focus-visible{outline:0;}
.m30-sbox input::placeholder{color:var(--slate); opacity:1;}
.m30-sbox input::-webkit-search-cancel-button, .m30-sbox input::-webkit-search-decoration{-webkit-appearance:none;}

.m30-sbox__go{flex:none; height:37px; margin:0; padding:0 16px; border:0; border-radius:999px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  background:var(--line-soft); color:var(--accent-deep); font:600 14px var(--f-body);
  transition:opacity .2s var(--ease-a1), transform .28s var(--ease-a1), background .15s, color .15s, width .3s var(--ease-a1), padding .3s var(--ease-a1);}
.m30-sbox__go:hover{background:var(--accent-deep); color:var(--paper);}
.m30-sbox.is-focus .m30-sbox__go, .m30-sbox.has-text .m30-sbox__go{opacity:0; transform:translateX(10px) scale(.9); pointer-events:none;
  width:0; padding:0; margin-left:-10px; visibility:hidden;
  transition:opacity .2s var(--ease-a1), transform .28s var(--ease-a1), background .15s, color .15s, width .3s var(--ease-a1), padding .3s var(--ease-a1), visibility 0s linear .3s;}

.m30-sbox__x{flex:none; width:28px; height:28px; margin:0; padding:0; border:0; border-radius:999px; display:grid; place-items:center; cursor:pointer;
  background:var(--canvas); color:var(--slate); opacity:0; pointer-events:none;
  transition:opacity .18s var(--ease-a1), background .15s, color .15s;}
.m30-sbox__x svg{width:14px; height:14px;}
.m30-sbox__x:hover{background:var(--wash); color:var(--accent-deep);}
.m30-sbox.has-text .m30-sbox__x{opacity:1; pointer-events:auto;}
/* Hidden, the x takes no room: the button sits as close to the right edge
   as to the top and bottom. */
.m30-sbox:not(.has-text) .m30-sbox__x{width:0; padding:0; margin-left:-10px; overflow:hidden; visibility:hidden;}

.m30-sug{position:absolute; z-index:30; left:0; right:0; top:calc(100% + 8px); margin:0; padding:6px; text-align:left;
  background:var(--paper); border:1px solid var(--line-soft); border-radius:16px;
  box-shadow:0 18px 40px -12px var(--shadow), 0 2px 6px -2px var(--shadow); overflow:hidden;
  opacity:0; transform:translateY(-6px) scale(.985); transform-origin:top center; pointer-events:none; visibility:hidden;
  transition:opacity .16s var(--ease-a1), transform .22s var(--ease-a1), visibility 0s linear .22s;}
.m30-sbox.is-open .m30-sug{opacity:1; transform:none; pointer-events:auto; visibility:visible;
  transition:opacity .16s var(--ease-a1), transform .22s var(--ease-a1);}
.m30-sug__o{display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px 10px; border-radius:11px;
  cursor:pointer; opacity:0; transform:translateY(4px); transition:background .12s;}
.m30-sbox.is-open .m30-sug__o{animation:m30-sug-in .28s var(--ease-a1) forwards; animation-delay:calc(var(--i) * 28ms);}
@keyframes m30-sug-in{to{opacity:1; transform:none;}}
.m30-sug__o[aria-selected="true"], .m30-sug__o:hover{background:var(--wash);}
.m30-sug__f{font-size:20px; line-height:1; text-align:center;}
.m30-sug__m{min-width:0;}
.m30-sug__n{display:block; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m30-sug__s{display:block; font-size:13px; color:var(--slate); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m30-sug__s b{font:500 12px var(--f-mono); color:var(--ink);}
.m30-sug mark{background:var(--mark); color:inherit; border-radius:3px; padding:0 1px;}
.m30-sug__b{font:600 11px/1 var(--f-body); letter-spacing:.04em; padding:5px 8px; border-radius:999px; white-space:nowrap;}
.m30-sug__b--page{background:var(--ok-wash); color:var(--ok);}
.m30-sug__b--list{background:var(--canvas); color:var(--slate);}
.m30-sug__e{padding:18px 12px; color:var(--slate); font-size:14px;}

@media (prefers-reduced-motion:reduce){
  .m30-sbox, .m30-sbox *{animation-duration:.01ms !important; animation-delay:0ms !important; transition-duration:.01ms !important;}
}

/* ---- Ficha da empresa: the invoice names, as tags -------------------- */

.m30-tags{display:flex; flex-wrap:wrap; gap:6px;}
.m30-tag{display:inline-block; max-width:100%; padding:2px 8px; border-radius:6px; background:var(--canvas);
  font:500 14px/1.5 var(--f-mono); color:var(--ink); overflow-wrap:anywhere;}
.m30-tag var{margin:0 1px 0 3px; font:italic 400 13px var(--f-body); color:var(--slate);}


/* === 3. RESPONSIVE ====================================================== */

@media (max-width:980px){
  .m30-hubhero{grid-template-columns:minmax(0,1fr);}
  .m30-cal{grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* Hub table: rows become stacked cards before the columns get cramped. */
@media (max-width:900px){
  .m30-rows, .m30-rows tbody{display:block;}
  .m30-rows thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;}
  .m30-rows tbody tr{display:grid; grid-template-columns:minmax(0,1fr) 24px; grid-template-areas:"ent go" "nif nif" "fid fid" "ctry ctry" "st st";
    column-gap:var(--s2); margin-bottom:var(--s2); padding:14px 16px; border-radius:12px; background:var(--paper); box-shadow:inset 0 0 0 1px var(--line);}
  .m30-rows tbody tr:hover{background:var(--field);}
  .m30-rows tbody tr > *, .m30-rows tbody tr > :first-child, .m30-rows tbody tr > :last-child{display:block; padding:0; background:none; box-shadow:none; border-radius:0;}
  .m30-rows tbody tr:hover > *{background:none;}
  .m30-rows .m30-c-ent{grid-area:ent;}
  .m30-rows .m30-go{grid-area:go; width:auto; align-self:center;}
  .m30-rows td[data-label]{display:flex; align-items:baseline; gap:10px; padding:6px 0 0 44px;}
  .m30-rows td[data-label]::before{content:attr(data-label); flex:none; width:82px; font-size:12px; color:var(--slate);}
  .m30-rows td.m30-c-nif{grid-area:nif; padding-top:10px;}
  .m30-rows td.m30-c-fid{grid-area:fid;}
  .m30-rows td.m30-c-ctry{grid-area:ctry;}
  .m30-rows td.m30-st{grid-area:st; padding:10px 0 0 44px; white-space:normal;}
  .m30-rows td.m30-st:empty{display:none;}
  .m30-rows .m30-ctry{display:flex; gap:6px; align-items:baseline;}
  .m30-rows .m30-ctry small{display:inline;}
  .m30-rows tr.m30-group{display:block; padding:0; margin:0; background:none; box-shadow:none;}
  .m30-rows tr.m30-group > th{display:block; padding:var(--s5) 0 var(--s2);}
}

/* Company page tables, 1100px and below: the side column (card, map)
   drops under its table; the map is a square up to 360px. (The mockup
   drops it at 900px, but from 901 to 1100px Quadro 8 does not fit beside
   a 300px column: it ran out of its box by up to 142px.) */
@media (max-width:1100px){
  .m30-qt__wrap{grid-template-columns:minmax(0,1fr);}
  .m30-qt__side{display:none;}
  .m30-qt__table{height:auto;}
  .m30-map{max-width:360px;}
  .m30-map__canvas{flex:none; aspect-ratio:1/1;}
  .m30-cta{grid-template-rows:auto auto; row-gap:12px;}
}

/* ... 900px and below: the column headers may wrap and the cells tighten;
   760px and below: field names may wrap too, sharing the room with the
   notes. So the four columns fit down to the 640px phone layout. */
@media (max-width:900px){
  .m30-qt__h{white-space:normal; line-height:1.25;}
  .m30-qt__table .m30-qt__f{padding-right:16px;}
  .m30-qt__table .m30-qt__c{padding-right:12px;}
}
@media (max-width:760px){
  .m30-qt__table .m30-qt__f{width:auto; white-space:normal;}
}

/* ... and 640px and below: no sideways scroll. Each row stacks: the field,
   then the value with its Copiar button, then the note. The column headers
   stay for screen readers, and the explicit ARIA roles keep the table
   semantics when display changes. */
@media (max-width:640px){
  .m30-qt__table, .m30-qt__table tbody{display:block; width:auto;}
  .m30-qt__table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;}
  .m30-qt__table tbody > tr{display:grid; grid-template-columns:minmax(0,max-content) minmax(72px,1fr); grid-template-areas:"f f" "v c" "n n"; column-gap:12px;
    padding:12px 16px; border-bottom:1px solid var(--qt-line);}
  .m30-qt__table--ficha tbody > tr{grid-template-columns:minmax(0,1fr) auto;}
  .m30-qt__table tbody > tr:last-child{border-bottom:0;}
  .m30-qt__table tbody > tr > *, .m30-qt__table tbody > tr:hover > *{display:block; width:auto; padding:4px 0; border:0; border-radius:0; background:none;}
  .m30-qt__table .m30-qt__f{grid-area:f; width:auto; padding:4px 0;}
  .m30-qt__table .m30-qt__v{grid-area:v; width:auto; padding:4px 0; text-align:left; white-space:normal;}
  .m30-qt__table--q8 .m30-qt__v .m30-qt__line{justify-content:flex-start;}
  .m30-qt__table .m30-qt__c{grid-area:c; width:auto; padding:4px 0;}
  .m30-qt__table .m30-qt__note{grid-area:n; padding:4px 0;}
  .m30-qt__table .m30-qt__note:empty{display:none;}
  .m30-qt__id{white-space:normal; overflow-wrap:anywhere;}
}

@media (max-width:760px){
  .m30-hero{padding-top:var(--s6);}
  .m30-hubhero{padding-top:var(--s6); gap:var(--s6);}
  .m30-sec{margin-top:var(--s7);}
  .m30-stage{margin-top:var(--s6); padding:12px; border-radius:20px;}
  .m30-win{border-radius:12px;}
  .m30-win__bar{border-radius:12px 12px 0 0; height:28px;}
  .m30-cards{grid-template-columns:minmax(0,1fr); gap:var(--s3);}
  .m30-fact{padding:var(--s5);}
  .m30-more{margin-top:var(--s7);}
  .m30-more summary{font-size:17px;}
  .m30-band{margin-top:var(--s8); padding:var(--s6) var(--s5); border-radius:20px;}
  .m30-band--center{padding:48px 20px;}
  .m30-band .lp-btn{width:100%;}
  .m30-stats{grid-template-columns:minmax(0,1fr); gap:var(--s3); margin-top:var(--s7);}
  .m30-stat{display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"k k" "v p"; column-gap:var(--s4); align-items:center; padding:var(--s5);}
  .m30-stat__k{grid-area:k;}
  .m30-stat__v{grid-area:v; margin:var(--s2) 0 0; font-size:36px;}
  .m30-stat p{grid-area:p; margin-top:var(--s2);}
  .m30-form__group{padding:var(--s4);}
  .m30-form__row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .m30-form__row--who{grid-template-columns:minmax(0,1fr);}
  .m30-box{min-height:0;}
  .m30-form__row--who .m30-box{min-height:0;}
  .m30-cal{grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s2);}
  .m30-tile{min-height:120px; padding:var(--s3) 14px;}
  .m30-tile__date{font-size:26px;}
  .m30-steps{grid-template-columns:minmax(0,1fr); gap:var(--s5);}
  .m30-step{display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:var(--s3);}
  .m30-step__n{grid-row:span 2; font-size:36px;}
  .m30-step__t{margin-top:2px;}
  .m30-filters{margin-top:var(--s7);}
  .m30-fchip{height:44px; padding:0 16px;}
  .m30-fchip--sel{padding-right:38px;}
  .m30-fchip--sel svg{top:14px;}
  .m30-btn2{min-height:44px;}
  .m30-nifs{gap:10px;}
  .m30-kv{grid-template-columns:minmax(0,1fr); gap:2px;}
  .m30-kv dd{margin-bottom:var(--s2);}
}

@media (max-width:400px){
  .m30-rows td[data-label]{padding-left:0;}
  .m30-rows td.m30-st{padding-left:0;}
  .m30-checker__row{flex-direction:column;}
  .m30-checker input{flex:none; width:100%;}
  .m30-checker button{width:100%;}
}

@media (prefers-reduced-motion:reduce){
  .m30-more summary svg, .m30-link svg, .lp-btn__arrow, .m30-copy, .m30-cb, .m30-map__canvas{transition:none;}
}

/* Company page: search above the title; country (emoji flag + name) at the right of the title row */
.m30-hero .m30-nfind{max-width:560px; margin:0 0 28px;}
.m30-titlerow{display:flex; align-items:center; justify-content:space-between; gap:12px 20px; flex-wrap:wrap;}
.m30-titlerow .m30-h1{margin:0;}
.m30-country{display:inline-flex; align-items:center; gap:8px; flex:none; font-size:17px; font-weight:500; color:var(--slate);}
.m30-country__flag{font-size:26px; line-height:1;}

/* === hub, company-page style (owner, 5 Nov 2026; prototypes/hub-entidades.html)
   The A1 search above the title, one Quadro-8-style table with grey copy
   buttons in their own column, the checker beside the CTA card. */
.m30-hub .m30-find--hub{max-width:none; margin-top:4px;}
.m30-hbar{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:28px;}
.m30-hub .m30-filters{margin:0; gap:10px;}
.m30-fseg{display:inline-flex; gap:2px; padding:3px; border-radius:999px; background:#EEF2F4;}
.m30-hub .m30-fseg .m30-fchip{height:34px; padding:0 14px; background:transparent; box-shadow:none; color:var(--slate); font-size:14px; font-weight:600;}
.m30-hub .m30-fseg .m30-fchip span{font-weight:600; color:#8A98A2;}
.m30-hub .m30-fseg .m30-fchip:hover{color:var(--ink); box-shadow:none;}
.m30-hub .m30-fseg .m30-fchip[aria-pressed="true"]{background:var(--paper); color:var(--accent-deep); box-shadow:inset 0 0 0 1px var(--line);}
.m30-hub .m30-fseg .m30-fchip[aria-pressed="true"] span{color:var(--accent-deep);}
.m30-hub .m30-fchip--sel{height:40px; background:#EEF2F4; box-shadow:none; color:var(--slate); font-size:14px; font-weight:600;}
.m30-hub .m30-fchip--sel:hover{box-shadow:none; color:var(--ink);}
.m30-hub .m30-fchip--sel.is-on{background:var(--paper); color:var(--accent-deep); box-shadow:inset 0 0 0 1px var(--line);}
.m30-hub .m30-fchip--sel svg{top:12px;}
.m30-hbar .m30-count{margin-left:auto;}
.m30-hbar .m30-dl{font-size:14px;}

.m30-hubbox{margin-top:16px; border:1px solid #E1E7EA; border-radius:12px; background:var(--paper);}
.m30-hubt{width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:15px; line-height:1.4;}
.m30-hubt thead th{height:41px; padding:8px 12px; background:var(--canvas); border-bottom:1px solid #E1E7EA; text-align:left;
  font:600 12px/1.2 var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--slate); white-space:nowrap;}
.m30-hubt thead th:first-child{padding-left:20px; border-top-left-radius:11px;}
.m30-hubt thead th:last-child{border-top-right-radius:11px;}
.m30-hubt thead th:nth-child(2){width:118px;}
.m30-hubt thead th:nth-child(3){width:128px;}
.m30-hubt thead th:nth-child(4){width:96px;}
.m30-hubt thead th:nth-child(5){width:178px;}
.m30-hubt thead th:nth-child(6){width:214px;}
.m30-hubt thead th:nth-child(7){width:40px;}
.m30-hubt thead .m30-hubt__vh{text-transform:none; letter-spacing:0;}
.m30-hubt thead .m30-pill{height:24px; font-size:12px;}
.m30-hubt tbody th, .m30-hubt tbody td{padding:12px; border-bottom:1px solid #E1E7EA; text-align:left; vertical-align:top; font-weight:400;}
.m30-hubt tbody th{padding-left:20px;}
.m30-hubt tbody tr[data-q]:hover > *{background:#FAFCFD;}
.m30-hubt tbody:last-of-type tr:last-child > *{border-bottom:0;}
.m30-hubt tr.m30-group th{padding:18px 20px 8px; background:none; font:600 13px/1 var(--f-body); color:var(--slate);}
.m30-hubt .m30-name{display:block; font-weight:600; color:var(--ink); text-decoration:none;}
.m30-hubt a.m30-name:hover{color:var(--accent-deep); text-decoration:underline; text-underline-offset:3px;}
.m30-hubt .m30-hal{display:block; margin-top:1px; font-size:13px; color:var(--slate);}
.m30-hubt .m30-ent__d{display:block; margin-top:2px; font-size:13px; line-height:1.4; color:var(--slate);}
.m30-hctry{display:block; color:var(--ink);}
.m30-hcode{display:block; margin-top:2px; font:500 13px var(--f-mono); color:var(--slate);}
.m30-hubt .m30-nif, .m30-hubt .m30-fid{font:500 15px/24px var(--f-mono); color:var(--ink); white-space:nowrap; font-variant-numeric:tabular-nums;}
.m30-hubt .m30-nif span + span{margin-left:.35em;}
.m30-hl{display:flex; align-items:center; min-height:24px;}
.m30-hl + .m30-hl{margin-top:6px;}
.m30-hubt td.m30-hc-cp{padding-left:0;}
.m30-hubt .m30-none{font-size:13px; color:#8A98A2;}
.m30-hubt td .m30-pill{height:24px; margin:0 4px 4px 0; font-size:12px;}
.m30-hubt td.m30-hc-go{padding:12px 16px 12px 0;}
.m30-hc-go a{display:block; color:var(--accent-deep);}
.m30-hc-go svg{display:block; width:18px; height:18px; margin-top:3px;}
.m30-hub .m30-empty{margin:0; padding:24px 20px; color:var(--slate);}

.m30-hubtwo{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-top:32px; align-items:stretch;}
.m30-hubtwo .m30-hubbox{margin-top:0;}
.m30-hub .m30-checker{padding:0; box-shadow:none; border-radius:12px;}
.m30-hubh{display:flex; align-items:center; min-height:41px; padding:8px 16px; background:var(--canvas); border-bottom:1px solid #E1E7EA; border-radius:11px 11px 0 0;}
.m30-hub .m30-checker h2{margin:0; font:600 12px/1.2 var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--slate);}
.m30-hub .m30-checker form{padding:20px 20px 0;}
.m30-hub .m30-checker input{height:44px; border:1px solid var(--line); border-radius:10px; background:var(--paper); box-shadow:none;
  font:500 17px var(--f-mono); letter-spacing:.04em; color:var(--ink);}
.m30-hub .m30-checker input:focus{outline:none; border-color:var(--accent-deep);}
.m30-hub .m30-checker button{border-radius:10px; background:#DCE3E7; color:var(--ink); font-weight:600; transition:background .15s, color .15s;}
.m30-hub .m30-checker button:hover{background:var(--accent-deep); color:#fff; filter:none;}
.m30-hub .m30-checker__out{margin:12px 0 0;}
.m30-hub .m30-checker__note{margin:0; padding:12px 20px 20px; font-size:14px; line-height:1.45; color:var(--slate);}
.m30-hub .m30-checker__note a{color:var(--slate);}

@media (max-width:900px){
  .m30-hubtwo{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:760px){
  .m30-hbar .m30-count{margin-left:0;}
  .m30-hubt{table-layout:auto;}
  .m30-hubt thead{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);}
  .m30-hubt, .m30-hubt tbody, .m30-hubt tr.m30-group, .m30-hubt tr.m30-group th{display:block;}
  .m30-hubt tr.m30-group[hidden]{display:none;}
  .m30-hubt tbody tr[data-q]{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:14px 16px; border-bottom:1px solid #E1E7EA;}
  .m30-hubt tbody tr[data-q][hidden]{display:none;}
  .m30-hubt tbody tr[data-q] > *{padding:0; border:0; background:none;}
  .m30-hubt tbody tr[data-q]:hover > *{background:none;}
  .m30-hc-ent, .m30-hc-ctry, .m30-hc-fid, .m30-hc-st{grid-column:1 / -1;}
  .m30-hc-ctry{display:flex; gap:8px; align-items:baseline;}
  .m30-hcode{margin:0;}
  .m30-hc-nif{grid-column:1;}
  .m30-hubt td.m30-hc-cp{grid-column:2; padding:0;}
  .m30-hubt td.m30-hc-go, .m30-hubt td.m30-hc-st:empty{display:none;}
}
