/* ==========================================================================
   Download ASDD List — CEO Meghalaya
   Plain CSS, no framework. Matches the approved design:
   warm paper background, pale blue hero, white tool card, rust accents.
   ========================================================================== */

/* ==========================================================================
   FONTS — self-hosted, latin + latin-ext subsets
   Served from this origin so the page makes no third-party request and the
   Content-Security-Policy can keep font-src locked to 'self'.
   Poppins and Inter are under the SIL Open Font License 1.1 (fonts/OFL.txt).
   ========================================================================== */

/* Inter — variable weight 400-700, covers body text, labels and buttons */
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins — display face, only the three weights this page actually uses */
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --paper:        #f5f2ea;   /* page background */
  --hero:         #d8ecfd;   /* hero panel */
  --card:         #ffffff;
  --panel:        #f5f5f0;   /* generated-link strip */

  --ink:          #101a22;   /* display headline */
  --navy:         #0e4c6a;   /* section headings, tab titles */
  --body:         #2a4553;   /* running text */
  --muted:        #93a0a8;   /* field labels */

  --rust:         #c0451a;   /* eyebrows, primary button */
  --rust-dark:    #a3380f;
  --green:        #2f6b4f;   /* active tab */
  --green-tint:   #f7f9f2;

  --line:         #e3e2da;   /* card + strip edges */
  --input-line:   #d8dcdf;
  --danger:       #a4262c;

  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.wrap{
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; margin:-1px;
  padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:99;
  background: var(--navy); color:#fff; padding:.7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0; text-decoration:none;
}
.skip-link:focus{ left:0; }

/* Visible keyboard focus on everything interactive */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible{
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

svg{
  width: 1.05em; height: 1.05em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------- top bar --- */
.topbar{ padding: 1.5rem 0 0; }

/* ---------------------------------------------------------------- hero --- */
.hero{
  background: var(--hero);
  border-radius: var(--r-lg);
  padding: 3.25rem clamp(1.5rem, 5vw, 4.5rem);
  margin-top: 1.5rem;
}
.hero h1{
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.hero-highlight{
  display: inline-block;
  background: rgba(192, 69, 26, 0.12);
  color: var(--rust-dark);
  border: 2px solid rgba(192, 69, 26, 0.45);
  border-radius: 0.6rem;
  padding: 0.08em 0.42em 0.12em;
  box-shadow: inset 0 0 0 1px rgba(192, 69, 26, 0.08);
  font-weight: 900;
}

.intro{
  max-width: 68ch;
  margin: 2.25rem auto 0;
  text-align: center;
  color: var(--body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
}
.intro-date{
  margin: .9rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------- card --- */
.card{
  background: var(--card);
  border-radius: var(--r-lg);
  margin-top: 2.75rem;
  overflow: hidden;
}

/* ---------------------------------------------------------------- tabs --- */
.tabs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.tab{
  display: block;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.tab:hover{ border-color: #c6cdd2; }
.tab.is-active{
  border-color: var(--green);
  background: var(--green-tint);
}
.tab-title{
  display:block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.tab-sub{
  display:block;
  margin-top:.2rem;
  font-size: .875rem;
  color: #5f7581;
}

/* --------------------------------------------------------------- panel --- */
.panel{ padding: 1.75rem; }
.panel[hidden]{ display:none; }

.panel-head{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.eyebrow{
  margin: 0 0 .3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust);
}
.panel-title{
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
  line-height: 1.3;
  color: var(--navy);
}
.panel-note{
  margin: 0 0 1.5rem;
  max-width: 70ch;
  color: #5f7581;
  font-size: .9375rem;
}
.panel-note code{
  font-size: .875em;
  background: var(--panel);
  padding: .1rem .35rem;
  border-radius: 4px;
}

/* -------------------------------------------------------------- fields --- */
.field-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.field-grid--narrow{ grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.field--action{ align-self: end; }

.field label{
  display:block;
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

select, .field input[type="text"]{
  width: 100%;
  height: 46px;
  padding: 0 .85rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--navy);
  background: var(--card);
  border: 1px solid var(--input-line);
  border-radius: var(--r-sm);
}
select{
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4c6a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
}
input::placeholder{ color: #a9b4bb; }
select:disabled, input:disabled{ background: #f4f5f6; color:#9aa5ab; cursor: not-allowed; }
select:focus, input:focus{ border-color: var(--navy); }

.is-invalid{ border-color: var(--danger) !important; }
.err{
  margin: .4rem 0 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--danger);
}

/* ------------------------------------------------------------- captcha --- */
.captcha-row{ display:flex; gap:.5rem; }
.captcha-q{
  display:grid; place-items:center;
  min-width: 88px; height:46px;
  padding: 0 .75rem;
  border: 1px dashed #b9c2b4;
  border-radius: var(--r-sm);
  background: var(--green-tint);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  user-select: none;
}
.captcha-row input{ flex: 1 1 auto; min-width: 0; }
.icon-btn{
  display:grid; place-items:center;
  width:46px; height:46px; flex:0 0 46px;
  background: var(--card);
  border:1px solid var(--input-line);
  border-radius: var(--r-sm);
  color: var(--navy);
  cursor:pointer;
}
.icon-btn:hover{ background: var(--panel); }
.icon-btn svg{ width:1.15rem; height:1.15rem; }

/* -------------------------------------------------------------- result --- */
.result{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--panel);
  border-radius: var(--r-md);
}
.result-text{ flex: 1 1 320px; min-width: 0; }
.result-msg{ margin: 0; color: var(--navy); font-size: .9375rem; }
.result-url{
  margin: .35rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  line-height: 1.5;
  color: #4a626f;
  word-break: break-all;
}
.result-actions{ display:flex; gap:.65rem; flex-wrap:wrap; }

/* ------------------------------------------------------------- buttons --- */
.btn-primary, .btn-outline, .btn-ghost{
  display:inline-flex; align-items:center; gap:.5rem;
  height:46px; padding: 0 1.15rem;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary{ background: var(--rust); border:1px solid var(--rust); color:#fff; }
.btn-primary:hover{ background: var(--rust-dark); border-color: var(--rust-dark); }

.btn-outline{ background: var(--card); border:1px solid var(--input-line); color: var(--navy); }
.btn-outline:hover{ background:#fff; border-color: var(--navy); }

.btn-ghost{ background: var(--card); border:1px solid var(--line); color: var(--navy); }
.btn-ghost:hover{ background:#fff; border-color: var(--navy); }

.btn-primary:disabled, .btn-outline:disabled{ opacity:.45; cursor:not-allowed; }
.btn-primary:disabled:hover{ background: var(--rust); border-color: var(--rust); }
.btn-outline:disabled:hover{ border-color: var(--input-line); }

/* -------------------------------------------------------------- alerts --- */
.alert-region:empty{ display:none; }
.alert-region{ padding: 0 1.75rem; margin-top: 1.5rem; }
.alert{
  display:flex; gap:.6rem;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  border-left: 4px solid;
  font-size: .9375rem;
}
.alert--info{ background:#eef6fd; border-color: var(--navy); color:#20455a; }
.alert--warn{ background:#fdf6e8; border-color:#c98a12; color:#6d4d07; }
.alert--error{ background:#fcefef; border-color: var(--danger); color:#7a1c21; }
.alert--ok{ background:#eef7f1; border-color: var(--green); color:#1f4b37; }

/* ------------------------------------------------------------ loading --- */
.is-loading select, .is-loading input{ opacity:.6; }

/* ----------------------------------------------------------- help grid --- */
.help-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}
.help-card{
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.help-card h3{
  margin:0 0 .5rem;
  font-family: var(--display);
  font-weight:700;
  font-size:1rem;
  color: var(--navy);
}
.help-card p{ margin:0; font-size:.9375rem; color:#5f7581; }

/* -------------------------------------------------------------- footer --- */
.site-footer{
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.site-footer p{ margin:0; font-size:.875rem; color:#6b7f8a; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px){
  .tabs{ grid-template-columns: 1fr; }
  .field-grid{ grid-template-columns: repeat(2, 1fr); }
  .panel-head{ flex-direction: column; }
}
@media (max-width: 560px){
  .wrap{ width: min(1120px, 100% - 2rem); }
  .hero{ padding: 2rem 1.25rem; }
  .field-grid, .field-grid--narrow{ grid-template-columns: 1fr; }
  .tabs, .panel{ padding: 1.25rem; }
  .alert-region{ padding-inline: 1.25rem; }
  .result{ flex-direction: column; align-items: stretch; }
  .result-actions .btn-primary, .result-actions .btn-outline{ flex:1 1 auto; justify-content:center; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print{
  .topbar, .tabs, .result-actions, .site-footer, .help-grid{ display:none !important; }
  body{ background:#fff; }
}
