/* Atlas, styled from the Concordia website source (Lovable project: src/index.css, tailwind.config.ts,
   Navigation.tsx, Hero.tsx, ByTheNumbers.tsx, InsightsPreview.tsx). Tokens are the site's own HSL values.
   The site is set entirely in Canela: Bold 700 and Medium 500, with Canela Deck Thin for weights 100 to 400,
   which is why its body text reads so light. Radius is 0 everywhere except the small category tags. */

@font-face{font-family:"Canela";src:url("/static/fonts/Canela-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:block}
@font-face{font-family:"Canela";src:url("/static/fonts/Canela-Medium.otf") format("opentype");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"Canela";src:url("/static/fonts/CanelaDeck-Thin.otf") format("opentype");font-weight:100 400;font-style:normal;font-display:block}

:root{
  /* site tokens (hsl from index.css) */
  --background:hsl(0 0% 95%);            /* #F2F2F2 */
  --foreground:hsl(228 45% 24%);         /* #222D59 navy */
  --card:hsl(0 0% 98%);
  --muted:hsl(0 0% 96%);
  --muted-foreground:hsl(228 20% 45%);   /* #5C658A */
  --text-body:hsl(228 20% 40%);          /* #525A7A */
  --border:hsl(0 0% 88%);                /* #E0E0E0 */
  --divider:hsl(0 0% 85%);
  --primary:hsl(228 45% 24%);
  --primary-foreground:hsl(0 0% 95%);
  --tag-bg:hsl(210 40% 95%);
  --destructive:hsl(0 84% 60%);
  --ok:#2F6B4F; --warn:#8A5A12; --bad:#8C2F39; --ok-bg:#E6F1EB; --warn-bg:#F7EEDC; --bad-bg:#F6E6E8;
  --font:"Canela","Fraunces",Georgia,serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --smooth:all .4s cubic-bezier(.25,.46,.45,.94);
  --fast:all .2s ease-out;
  /* type scale from tailwind.config.ts */
  --display:clamp(2.5rem,5vw,4.5rem); --headline:clamp(2rem,4vw,3.5rem); --subhead:clamp(1.25rem,2vw,1.75rem);
  --gutter:3rem;
}
@media (min-width:1024px) and (max-width:1600px){html{font-size:90%}}   /* the site's laptop scaling */
@media (max-width:640px){:root{--gutter:1.5rem}}
*{box-sizing:border-box;border-color:var(--border)}
html{scroll-behavior:smooth}
body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--font);font-weight:400;font-size:1rem;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--font);font-weight:700;margin:0;text-wrap:balance}
h1{font-size:var(--headline);line-height:1.15;letter-spacing:-.01em}
h2{font-size:var(--subhead);line-height:1.3;font-size:clamp(1.5rem,2.6vw,2.25rem)}
h3{font-size:1.125rem;line-height:1.375}
p{margin:0}
.eyebrow{font-size:.75rem;line-height:1.5;letter-spacing:.3em;color:var(--muted-foreground);margin-bottom:1rem}
.lede,.page-head p,.signin p{font-size:1.125rem;line-height:1.7;color:var(--text-body)}
.muted{color:var(--muted-foreground)}
.mono{font-family:var(--mono);font-size:.85rem}
.num{font-variant-numeric:tabular-nums}
.nw{white-space:nowrap}
.small{font-size:.875rem;line-height:1.6}

/* header: Navigation.tsx — navy bar, logo h-10, links text-small font-medium at 60% with an animated underline */
.topbar{background:var(--primary);color:var(--primary-foreground);display:flex;align-items:center;justify-content:space-between;gap:2.5rem;padding:1.25rem var(--gutter);position:sticky;top:0;z-index:5}
.topbar .inner{max-width:1400px;margin:0 auto;width:100%;display:flex;align-items:center;gap:2.5rem}
.brand{display:flex;align-items:center;gap:.9rem;text-decoration:none;color:var(--primary-foreground)}
.brand img{height:2.5rem;width:auto;display:block}
.logo{font-family:var(--font);font-weight:500;font-size:1.2rem;border:1px solid hsl(0 0% 95% / .8);padding:.2rem .7rem .3rem}
.product{font-family:var(--font);font-weight:400;font-size:1.2rem;opacity:.85;padding-left:.9rem;border-left:1px solid hsl(0 0% 95% / .3)}
.nav{display:flex;gap:2.5rem;flex:1;justify-content:flex-end}
.nav a{position:relative;color:hsl(0 0% 95% / .6);text-decoration:none;font-size:.875rem;font-weight:500;line-height:1.6;white-space:nowrap;transition:color .3s ease-out}
.nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:1px;background:var(--primary-foreground);transition:width .3s ease-out}
.nav a:hover,.nav a.active{color:var(--primary-foreground)}
.nav a.active{font-weight:700}
.nav a:hover::after,.nav a.active::after{width:100%}
.who{font-size:.875rem;font-weight:500;color:hsl(0 0% 95% / .6);display:flex;gap:1.25rem;align-items:center;white-space:nowrap;margin-left:1.5rem}
.who b{color:var(--primary-foreground);font-weight:500}
.who button{background:none;border:1px solid hsl(0 0% 95% / .4);color:var(--primary-foreground);padding:.45rem .9rem;cursor:pointer;font-size:.8rem;font-weight:500;transition:var(--fast)}
.who button:hover{background:var(--primary-foreground);color:var(--primary)}

/* layout: container 1400px, sections on a 4.5rem / 5.5rem rhythm */
.main{max-width:1400px;margin:0 auto;padding:4.5rem var(--gutter) 7.5rem}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:4rem;flex-wrap:wrap}
.page-head p{margin:1.5rem 0 0;max-width:42rem}
.grid{display:grid;gap:1.5rem}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){.grid.cols-4,.grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}.main{padding:2.5rem var(--gutter) 4rem}.topbar{padding:1rem var(--gutter)}.nav{gap:1.25rem;overflow-x:auto;justify-content:flex-start}.who{margin-left:0}}
.panel{background:var(--card);border:1px solid var(--border);padding:1.5rem}
.panel.soft{background:var(--muted);border-color:transparent}
.panel h3{margin-bottom:1rem;font-size:1.125rem;font-weight:700}
.section{margin-top:5.5rem}
.section > .eyebrow{margin-bottom:1rem}
.section > h2{margin-bottom:2rem}

/* stat tiles: ByTheNumbers.tsx — centered, a 1px rule at 20% on top, big bold number, medium label, small muted note */
.stat{background:none;border:0;border-top:1px solid hsl(228 45% 24% / .2);padding:2rem 0 0;text-align:center}
.stat .value{font-family:var(--font);font-weight:700;font-size:clamp(3rem,4vw,4.5rem);line-height:1;margin:0 0 1rem;font-variant-numeric:tabular-nums;order:-1}
.stat{display:flex;flex-direction:column;align-items:center}
.stat .label{font-size:1.125rem;font-weight:500;color:var(--foreground);margin-bottom:.75rem}
.stat .muted{font-size:.875rem;line-height:1.625;color:var(--muted-foreground);max-width:20rem}
.panel.soft.stat{padding:1.25rem;border:1px solid var(--border);text-align:left;align-items:flex-start}
.panel.soft.stat .value{font-size:2rem;margin:.25rem 0 .25rem}
.bars{display:grid;gap:.85rem}
.bar{display:grid;grid-template-columns:10rem 1fr 3.25rem;align-items:center;gap:1rem;font-size:.875rem;font-weight:500}
.bar .track{height:4px;background:var(--border)}
.bar .fill{height:4px;background:var(--primary)}
.bar .pct{text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums}

/* forms: the site's portal inputs — 1px border, no radius, uppercase tracked labels, faint focus ring */
.form{display:grid;gap:1.25rem 1.5rem;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));align-items:end}
.form.inline{grid-template-columns:repeat(auto-fit,minmax(11rem,max-content))}
.field{display:grid;gap:.375rem}
.field label{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-foreground);font-weight:500}
.field input,.field select,.field textarea{border:1px solid var(--border);background:var(--background);padding:.625rem 1rem;border-radius:0;min-width:0;width:100%;font-size:.875rem;font-weight:500;color:var(--foreground);transition:var(--fast)}
.field input::placeholder{color:var(--muted-foreground);font-weight:400}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;box-shadow:0 0 0 1px hsl(228 45% 24% / .3)}
.field.wide{grid-column:1/-1}
.check{display:flex;align-items:center;gap:.6rem;font-size:.875rem;font-weight:500;color:var(--text-body);padding-bottom:.6rem}
.actions{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.btn{border:1px solid var(--foreground);background:transparent;color:var(--foreground);padding:.875rem 2rem;cursor:pointer;border-radius:0;font-size:.875rem;font-weight:500;line-height:1.6;white-space:nowrap;transition:all .3s ease}
.btn:hover{background:var(--foreground);color:var(--background)}
.btn.primary{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary);letter-spacing:.025em;padding:.75rem 2rem}
.btn.primary:hover{background:hsl(228 45% 24% / .9)}
.btn.small{padding:.5rem 1.1rem;font-size:.8rem}
.btn.danger{border-color:var(--destructive);color:var(--destructive)}
.btn.danger:hover{background:var(--destructive);color:#fff}
.btn:disabled{opacity:.6;cursor:default}
.btn.link{border:0;background:none;padding:0;color:var(--muted-foreground);font-size:.75rem;letter-spacing:.1em;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;transition:color .3s}
.btn.link:hover{color:var(--foreground);background:none}
.arrow::after{content:"→";display:inline-block;transition:transform .3s}
.arrow:hover::after{transform:translateX(4px)}
.seg{display:inline-flex;border-bottom:1px solid var(--border)}
.seg button{border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--muted-foreground);padding:0 1.25rem .6rem;cursor:pointer;font-size:.875rem;font-weight:500;letter-spacing:.025em;transition:var(--fast)}
.seg button:hover{color:var(--foreground)}
.seg button.active{color:var(--foreground);border-bottom-color:var(--primary)}

/* tables */
.tablewrap{overflow-x:auto;background:var(--card);border:1px solid var(--border)}
table{border-collapse:collapse;width:100%;font-size:.9375rem}
th{text-align:left;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-foreground);font-weight:500;padding:1rem 1.25rem;border-bottom:1px solid var(--border);white-space:nowrap;background:var(--card)}
td{padding:1rem 1.25rem;border-bottom:1px solid var(--border);vertical-align:top;line-height:1.6;font-weight:400}
tr:last-child td{border-bottom:0}
td.r,th.r{text-align:right;font-variant-numeric:tabular-nums}
tr.row{cursor:pointer;transition:background .2s}
tr.row:hover td{background:var(--muted)}
td b{font-weight:700}
td .sub{display:block;color:var(--muted-foreground);font-size:.8rem;line-height:1.6;margin-top:.15rem}
.pager{display:flex;justify-content:space-between;align-items:center;margin:1.25rem 0 1rem;color:var(--muted-foreground);font-size:.875rem;font-weight:500}
.empty{padding:3.5rem;text-align:center;color:var(--muted-foreground);background:var(--card);border:1px solid var(--border);font-size:1.125rem}
/* category tags: InsightsPreview.tsx — the one rounded element on the site */
.pill{display:inline-block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;padding:.25rem .75rem;border-radius:9999px;background:var(--tag-bg);color:var(--muted-foreground);line-height:1.5;font-weight:500}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.bad{background:var(--bad-bg);color:var(--bad)}
.pill.navy{background:var(--primary);color:var(--primary-foreground)}

/* detail drawer */
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(38rem,100%);background:var(--background);border-left:1px solid var(--border);box-shadow:0 8px 30px -5px hsl(228 45% 24% / .3);overflow-y:auto;padding:2.5rem 2.5rem 3rem;z-index:6}
.drawer .close{position:absolute;top:1.25rem;right:1.5rem;border:0;background:none;font-size:1.5rem;cursor:pointer;color:var(--muted-foreground);transition:var(--fast)}
.drawer .close:hover{color:var(--foreground)}
.drawer h2{margin:.5rem 0 .4rem;padding-right:2.75rem;font-size:1.75rem;line-height:1.3}
.drawer .kv{display:grid;grid-template-columns:10rem 1fr;gap:.65rem 1rem;font-size:.9375rem;margin-top:1.5rem}
.drawer .kv dt{color:var(--muted-foreground);font-size:.8rem;font-weight:500;padding-top:.15rem}
.drawer .kv dd{margin:0;overflow-wrap:anywhere;line-height:1.6}
.drawer .kv dd.long{max-height:9em;overflow:auto;padding-right:.4rem}
.drawer .group{font-size:.75rem;letter-spacing:.3em;text-transform:uppercase;color:var(--muted-foreground);margin:2rem 0 .25rem;border-bottom:1px solid var(--border);padding-bottom:.5rem}

/* misc */
.toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%);background:var(--primary);color:var(--primary-foreground);padding:.8rem 1.25rem;font-size:.875rem;font-weight:500;z-index:9;box-shadow:0 8px 30px -5px hsl(228 45% 24% / .3)}
.toast.bad{background:var(--bad)}
.signin{max-width:28rem;margin:6rem auto 0}
.signin h1{margin-bottom:1rem;font-size:var(--display);line-height:1.1;letter-spacing:-.02em}
.signin p{margin:0 0 2rem}
.signin .error{color:var(--destructive);margin-top:-1rem;font-size:.875rem}
.signin .hint{margin-top:1.25rem}
.log{font-family:var(--mono);font-size:.8rem;background:var(--muted);padding:1rem 1.25rem;max-height:17rem;overflow:auto;white-space:pre-wrap;margin:0;line-height:1.6}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}
@media (max-width:760px){.pair{grid-template-columns:1fr}.bar{grid-template-columns:7rem 1fr 3rem}}
/* cards: InsightsPreview.tsx — bordered, generous padding, navy wipe on hover */
.card{position:relative;background:var(--background);border:1px solid var(--border);padding:1.5rem;min-height:13.75rem;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;transition:all .5s cubic-bezier(.25,.46,.45,.94)}
.card:hover{transform:scale(1.03);box-shadow:0 8px 30px -5px hsl(228 45% 24% / .3)}
.card .title{font-family:var(--font);font-weight:700;font-size:1.125rem;line-height:1.375;margin-top:.25rem}
.keybox{font-family:var(--mono);font-size:.85rem;background:var(--muted);padding:.9rem 1rem;word-break:break-all;margin:.75rem 0;line-height:1.6}
kbd{font-family:var(--mono);font-size:.75rem;background:var(--muted);padding:1px 5px}
.hint{font-size:.8rem;color:var(--muted-foreground);margin-top:.6rem;line-height:1.6}
progress{width:100%;height:4px;accent-color:var(--primary)}
.list-cards{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}
[hidden]{display:none!important}
/* narrower desktops: tighten the header before anything gets clipped */
@media (max-width:1180px){.nav{gap:1.5rem}.who{margin-left:.75rem;gap:.75rem}.who span{white-space:nowrap}}
@media (max-width:1300px){.topbar .inner{gap:1.5rem}.nav{gap:1.5rem}.who{margin-left:.5rem}}
@media (max-width:1040px){.topbar .inner{flex-wrap:wrap;gap:.75rem 1.5rem}.nav{order:3;flex-basis:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:.25rem}.who{margin-left:auto}}

/* search: filter rail on the left, results on the right (the Grata arrangement) */
.search-layout{display:grid;grid-template-columns:19rem minmax(0,1fr);gap:2.5rem;align-items:start}
.rail{background:var(--card);border:1px solid var(--border);padding:1.5rem;position:sticky;top:6.5rem;display:grid;gap:1.5rem;max-height:calc(100vh - 8rem);overflow-y:auto}
.rail-section{display:grid;gap:.9rem}
.rail-section .eyebrow{margin-bottom:0}
.rail .field textarea{resize:vertical;min-height:4.5rem;line-height:1.5}
.rail .hint{margin-top:-.25rem}
.rail-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;position:sticky;bottom:-1.5rem;background:var(--card);margin:0 -1.5rem -1.5rem;padding:1rem 1.5rem 1.5rem;border-top:1px solid var(--border)}
.rail-actions .btn{width:100%;padding-left:0;padding-right:0;text-align:center}
.results{min-width:0}
.results .tablewrap{margin:0}
.pager{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:0 0 1rem;color:var(--foreground);font-size:.875rem;font-weight:500}
.results .tablewrap + .pager{margin:1rem 0 0}
.pages{display:inline-flex;gap:.5rem}
.page-btn{width:2.5rem;padding:.5rem 0;text-align:center;font-size:1rem;line-height:1}
.page-btn:disabled{opacity:.35}
/* one height for every control */
.field input,.field select,.field textarea,.btn,.seg button{min-height:2.75rem}
.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23222D59' stroke-width='1.5'/></svg>");background-repeat:no-repeat;background-position:right .9rem center;padding-right:2.25rem}
.btn.small{min-height:2.25rem}
.actions .btn{min-width:7rem;text-align:center}
.actions .btn.link,.who button,.page-btn{min-width:0}
/* widths */
@media (max-width:1100px){.search-layout{grid-template-columns:16rem minmax(0,1fr);gap:1.5rem}}
@media (max-width:860px){.search-layout{grid-template-columns:1fr}.rail{position:static;max-height:none}.rail-actions{position:static}}
@media (max-width:640px){
  .page-head{margin-bottom:2rem}.page-head h1{font-size:2.25rem}
  .form.inline{grid-template-columns:1fr}.actions .btn{min-width:0;flex:1}
  table{font-size:.875rem}th,td{padding:.75rem .85rem}
  .drawer{width:100%;padding:1.5rem 1.25rem 2rem}.drawer .kv{grid-template-columns:7rem 1fr}
  .stat .value{font-size:2.5rem}
}
@media (min-width:1800px){.main{max-width:1600px}.search-layout{grid-template-columns:21rem minmax(0,1fr)}}

/* phones: the header stacks, so it must not float over the page; hide the role text to keep one line */
@media (max-width:640px){.topbar{position:static}.who span{display:none}.who{margin-left:auto;gap:.5rem}.nav{padding-bottom:.5rem}.nav a{font-size:.85rem}}

/* narrow screens: filters fold behind a button, results come first */
.filters-toggle{display:none}
@media (max-width:860px){
  .filters-toggle{display:inline-flex;align-items:center}
  .rail{display:none}
  .rail.open{display:grid}
  .search-layout{gap:1rem}
}

/* keyword chips */
.chips{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;border:1px solid var(--border);background:var(--background);padding:.4rem .5rem;min-height:2.75rem;cursor:text}
.chips:focus-within{box-shadow:0 0 0 1px hsl(228 45% 24% / .3)}
.chip{display:inline-flex;align-items:center;gap:.35rem;background:var(--primary);color:var(--primary-foreground);font-size:.8rem;font-weight:500;padding:.25rem .35rem .25rem .6rem;line-height:1.4}
.chip-x{border:0;background:none;color:inherit;font-size:1rem;line-height:1;cursor:pointer;padding:0 .15rem;opacity:.8}
.chip-x:hover{opacity:1}
.chip-in{border:0;background:none;flex:1;min-width:8rem;padding:.3rem .25rem;font-size:.875rem;font-weight:500;outline:none;min-height:0}
.rail .btn.link{justify-self:start}
input::-webkit-calendar-picker-indicator{display:none!important}

/* chip box: one rectangle only */
.field .chip-in{border:0;background:none;box-shadow:none;min-height:0;padding:.3rem .25rem;width:auto}
.field .chip-in:focus{box-shadow:none;outline:none}
/* button rows inside forms never stack into a narrow cell */
.form .actions{grid-column:1/-1;display:flex;gap:.75rem}
.form .actions .btn{flex:0 0 auto;min-width:9rem}
.form.inline{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1rem 1.25rem}
.form.inline .field{flex:1 1 12rem;min-width:10rem}
.form.inline .actions{flex:0 0 auto;grid-column:auto}
.page-head .form.inline{margin:0}
@media (max-width:640px){.form .actions .btn{flex:1 1 0;min-width:0}}
/* file picker styled like the rest */
.filepick{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.filepick input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.filepick label.btn{margin:0;cursor:pointer}
.filepick input:focus-visible + label.btn{outline:2px solid var(--primary);outline-offset:2px}
/* edit-account drawer: more air between sections */
.drawer .group{margin-top:2.5rem}
.drawer .actions{margin-top:.25rem}
.drawer .group + p{margin-top:.5rem}

/* page-head forms: field and button share a row */
#snap{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:flex-end;gap:1rem 1.25rem;margin:0 0 1rem}
#snap .field{flex:1 1 14rem;max-width:22rem;margin:0}
#snap .actions{flex:0 0 auto}
@media (max-width:640px){#snap .field{max-width:none}}
.page-head .actions:has(#snap){flex:1 1 100%}
