/* portal.css - styles for the P0/P1 portal sections
   (cross-reference / model index / series / size / tools / glossary / reference
    / industries / HTML sitemap).  Loaded after site.css; reuses its tokens. */

/* ---------- page head band (mirrors .cta family) ---------- */
.ph{background:linear-gradient(120deg,#123c78,#1b4f8f);color:#fff;border-radius:14px;
    padding:clamp(20px,3vw,34px) clamp(20px,3vw,36px);margin:20px 0 4px;}
.ph h1{font-size:clamp(20px,2.7vw,29px);letter-spacing:-.3px;line-height:1.25;}
.ph p{color:#c8dcf3;font-size:clamp(13px,1.5vw,15px);margin-top:9px;max-width:1080px;line-height:1.85;}
.ph .meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.ph .meta i{font-style:normal;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.36);
    border-radius:999px;padding:5px 13px;font-size:12.5px;font-weight:700;}

/* ---------- breadcrumbs (sku.css has its own; portal defines its own) ---------- */
.crumbs{font-size:12.5px;color:var(--muted);padding:16px 0 0;}
.crumbs a{color:var(--muted);}
.crumbs a:hover{color:var(--blue-d);text-decoration:underline;}
.crumbs span{color:var(--txt);font-weight:700;}

/* ---------- data tables ---------- */
.ptw{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);
     border-radius:10px;background:#fff;margin:16px 0;}
table.ptbl{width:100%;border-collapse:collapse;font-size:13.5px;min-width:660px;}
table.ptbl th{background:var(--blue-t);color:var(--blue-dd);text-align:left;font-weight:700;
    padding:11px 14px;border-bottom:1px solid var(--blue-t2);white-space:nowrap;
    font-size:12.5px;letter-spacing:.3px;}
table.ptbl td{padding:10px 14px;border-bottom:1px solid #eef1f5;vertical-align:middle;}
table.ptbl tbody tr:last-child td{border-bottom:none;}
table.ptbl tbody tr:hover{background:#f8fbfe;}
table.ptbl .m{font-weight:700;color:var(--blue-d);}
table.ptbl .dms{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;}
table.ptbl .go{font-weight:700;color:var(--blue-l);white-space:nowrap;}
table.ptbl .go:hover{color:var(--blue-d);}

.bdg{display:inline-block;font-size:11px;font-weight:700;border-radius:6px;padding:2px 8px;
     background:var(--blue-t);color:var(--blue-d);border:1px solid var(--blue-t2);white-space:nowrap;}
.bdg.g{background:#f2f5f7;color:var(--muted);border-color:var(--line);}

/* ---------- cards / grids ---------- */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:14px;margin:16px 0;}
.pcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:block;}
.pcard:hover{border-color:var(--blue-l);box-shadow:0 4px 16px rgba(18,60,120,.07);}
.pcard h3{font-size:15.5px;color:var(--blue-dd);margin:0 0 6px;}
.pcard p{font-size:13px;color:var(--muted);line-height:1.7;margin:0;}
.pcard .n{display:block;margin-top:10px;font-size:12.5px;font-weight:700;color:var(--blue-l);}

/* ---------- A-Z nav ---------- */
.az{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 4px;}
.az a,.az b{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:32px;
    padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px;
    font-weight:700;color:var(--blue-d);}
.az a:hover{border-color:var(--blue-l);color:var(--blue);}
.az b{background:var(--blue);border-color:var(--blue);color:#fff;}

/* ---------- long link lists ---------- */
.ilist{columns:4;column-gap:28px;margin:14px 0;font-size:13px;}
.ilist a{display:block;padding:3.5px 0;color:var(--txt);break-inside:avoid;}
.ilist a:hover{color:var(--blue-l);}
.ilist i{font-style:normal;color:var(--muted-2);font-size:12px;}

/* ---------- prose helpers ---------- */
.prose{font-size:14.5px;line-height:1.9;color:var(--txt);margin:14px 0;}
.prose h2{font-size:20px;color:var(--blue-d);margin:26px 0 10px;}
.prose h3{font-size:16px;color:var(--blue-dd);margin:20px 0 8px;}
.prose p{margin:0 0 12px;}
.prose ul{margin:0 0 14px 20px;}
.prose li{margin-bottom:6px;}
.prose a{color:var(--blue-l);font-weight:600;}
.prose a:hover{text-decoration:underline;}
.cols2{columns:2;column-gap:36px;}
.note{background:var(--blue-t);border-left:3px solid var(--blue);border-radius:0 8px 8px 0;
    padding:13px 16px;font-size:13.5px;line-height:1.8;color:var(--txt);margin:16px 0;}
.note b{color:var(--blue-dd);}

/* ---------- tool forms ---------- */
.tl{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin:18px 0;}
.tl-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(172px,1fr));gap:14px;}
.tl-l{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin:0 0 6px;}
.tl-in{width:100%;border:1px solid var(--line-d);border-radius:8px;padding:10px 12px;font-size:14px;
    font-family:inherit;color:var(--txt);background:#fff;}
.tl-in:focus{outline:none;border-color:var(--blue-l);box-shadow:0 0 0 3px rgba(47,108,180,.12);}
select.tl-in{cursor:pointer;}
.tl-btn{background:var(--blue);border:none;color:#fff;font-weight:700;font-size:14.5px;
    padding:11px 26px;border-radius:8px;cursor:pointer;font-family:inherit;}
.tl-btn:hover{background:var(--blue-d);}
.tl-out{margin-top:16px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:16px 18px;}
.tl-out .k{font-size:12.5px;font-weight:700;color:var(--muted);}
.tl-out .v{font-size:22px;font-weight:700;color:var(--blue-dd);font-variant-numeric:tabular-nums;}
.tl-out .g{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;}
.tl-err{color:#a32d2d;font-size:13px;font-weight:600;margin-top:10px;}

/* ---------- FAQ ---------- */
details.faq{border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:9px;}
details.faq summary{cursor:pointer;padding:13px 16px;font-size:14px;font-weight:700;color:var(--blue-dd);}
details.faq[open] summary{border-bottom:1px solid var(--line);}
details.faq .fb{padding:12px 16px 16px;font-size:13.5px;line-height:1.85;color:var(--txt);}

/* ---------- HTML sitemap ---------- */
.sm{columns:3;column-gap:32px;font-size:13.5px;}
.sm h3{font-size:14px;color:var(--blue-dd);margin:18px 0 8px;break-after:avoid;}
.sm a{display:block;padding:3.5px 0;break-inside:avoid;}

/* ---------- responsive ---------- */
/* The portal footer carries five columns (About / Categories / Brands /
   Tools & Reference / Contact).  Without an explicit track list the fifth
   child wrapped onto a second row and orphaned the Contact column. */
footer.r5 .cols{grid-template-columns:2fr 1.4fr 1.4fr 1.05fr 1.55fr;gap:24px;}
@media(max-width:1200px){
  .ilist{columns:3;}
  .sm{columns:2;}
  footer.r5 .cols{grid-template-columns:2fr 1.4fr 1.4fr;}
  footer.r5 .cols>.contact{grid-column:1 / -1;}
  footer.r5 #footres{grid-column:1 / -1;}
}
@media(max-width:900px){
  .ilist{columns:2;}
  .cols2{columns:1;}
  footer.r5 .cols{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .ilist{columns:1;}
  .sm{columns:1;}
  .ph{border-radius:12px;}
  .pgrid{grid-template-columns:1fr;}
  footer.r5 .cols{grid-template-columns:1fr 1fr;}
  footer.r5 .cols>.about,footer.r5 .cols>.contact{grid-column:1 / -1;}
  footer.r5 #footres{grid-column:1 / -1;}
  table.ptbl{min-width:560px;}
}
