/*
Theme Name: DrayTek USA
Theme URI: https://www.draytekusa.com
Author: ABP Technology
Description: Clean, security-forward theme for DrayTek USA (migrated from Drupal). Navy + DrayTek red, product-first layouts, tabs for product pages.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: draytek-usa
*/

:root{
  --ink:#0A1428; --ink-2:#13213F; --ink-3:#1E2F55;
  --red:#E4002B; --red-600:#C20025; --red-50:#FFF1F3;
  --sky:#3D7BFF; --sky-50:#EEF4FF;
  --bg:#FFFFFF; --mist:#F4F6FA; --line:#E3E8F0;
  --text:#1B2433; --muted:#5B6779;
  --radius:14px; --radius-sm:8px;
  --shadow:0 1px 2px rgba(10,20,40,.06),0 8px 24px rgba(10,20,40,.08);
  --shadow-lg:0 24px 60px rgba(10,20,40,.18);
  --wrap:1200px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-head:"Manrope","Inter",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 var(--font);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--red-600);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--ink);line-height:1.2;letter-spacing:-.01em;margin:1.4em 0 .5em}
h1{font-size:clamp(2rem,4vw,3rem);font-weight:800}
h2{font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:800}
h3{font-size:1.25rem;font-weight:700}
p{margin:0 0 1em}
table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.95rem;display:block;overflow-x:auto}
th,td{border:1px solid var(--line);padding:.55em .75em;text-align:left;vertical-align:top}
th,thead td{background:var(--mist);font-weight:700;color:var(--ink)}
tr:nth-child(even) td{background:#FAFBFD}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;left:8px;top:8px;z-index:999;background:#fff;padding:8px 12px;clip:auto;width:auto;height:auto}

/* ---------- buttons ---------- */
.dt-btn{display:inline-flex;align-items:center;gap:.5em;padding:.8em 1.35em;border-radius:999px;font-weight:700;font-size:.95rem;border:2px solid transparent;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s;text-decoration:none!important}
.dt-btn--primary{background:var(--red);color:#fff}
.dt-btn--primary:hover{background:var(--red-600);box-shadow:0 8px 20px rgba(228,0,43,.3);transform:translateY(-1px)}
.dt-btn--ghost{border-color:rgba(255,255,255,.4);color:#fff}
.dt-btn--ghost:hover{background:rgba(255,255,255,.1)}
.dt-btn--outline{border-color:var(--line);color:var(--ink);background:#fff}
.dt-btn--outline:hover{border-color:var(--ink)}

/* ---------- top bar + header ---------- */
.topbar{background:var(--ink);color:#C9D3E6;font-size:.82rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px;flex-wrap:wrap}
.topbar a{color:#fff;font-weight:600}
.topbar__links{display:flex;gap:18px;flex-wrap:wrap}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.6) blur(12px);border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}
.site-header .wrap{display:flex;align-items:center;gap:24px;min-height:72px}
.brand img{height:34px;width:auto;display:block}
.brand__usa{font:800 .7rem var(--font-head);letter-spacing:.14em;color:var(--muted);margin-left:6px}
.nav{margin-left:auto}
.nav ul{list-style:none;margin:0;padding:0}
.nav > ul{display:flex;gap:4px;align-items:center}
.nav > ul > li{position:relative}
.nav > ul > li > a{display:block;padding:.6em .9em;border-radius:999px;color:var(--ink);font-weight:600;font-size:.95rem}
.nav > ul > li > a:hover,.nav > ul > li.current-menu-item > a,.nav > ul > li.current-menu-ancestor > a{background:var(--mist);text-decoration:none}
.nav > ul > li.menu-item-has-children > a::after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);opacity:.6}
.nav .sub-menu{position:absolute;left:0;top:100%;min-width:250px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:10px;opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s}
.nav li:hover > .sub-menu,.nav li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.nav .sub-menu a{display:block;padding:.45em .7em;border-radius:var(--radius-sm);color:var(--text);font-size:.92rem}
.nav .sub-menu a:hover{background:var(--mist);text-decoration:none;color:var(--red-600)}
/* Products = mega menu (4 columns) */
.nav > ul > li.dt-mega{position:static}
.nav > ul > li.dt-mega > .sub-menu{left:50%;transform:translate(-50%,6px);width:min(1080px,calc(100vw - 32px));display:grid;grid-template-columns:repeat(4,1fr);gap:8px 20px;padding:22px}
.nav > ul > li.dt-mega:hover > .sub-menu,.nav > ul > li.dt-mega:focus-within > .sub-menu{transform:translate(-50%,0)}
.nav > ul > li.dt-mega > .sub-menu > li > a{font:800 .8rem var(--font-head);letter-spacing:.08em;text-transform:uppercase;color:var(--red-600);border-bottom:1px solid var(--line);border-radius:0;margin-bottom:6px}
/* visibility:inherit, not visible: a visible list inside the hidden mega panel still catches the mouse and opens the menu */
.nav > ul > li.dt-mega .sub-menu .sub-menu{position:static;opacity:1;visibility:inherit;transform:none;box-shadow:none;border:0;padding:0;min-width:0}
.nav-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 10px;cursor:pointer}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);margin:4px 0}
.header-cta{white-space:nowrap}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:radial-gradient(1100px 500px at 85% -10%,rgba(61,123,255,.35),transparent 60%),radial-gradient(700px 400px at 10% 110%,rgba(228,0,43,.28),transparent 60%),linear-gradient(160deg,var(--ink) 0%,var(--ink-2) 60%,var(--ink-3) 100%);color:#fff}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(180deg,#000 0%,transparent 90%)}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center;padding-top:72px;padding-bottom:80px}
.hero__eyebrow{display:inline-flex;gap:8px;align-items:center;font:700 .78rem var(--font-head);letter-spacing:.14em;text-transform:uppercase;color:#FF8A9E;background:rgba(228,0,43,.14);border:1px solid rgba(228,0,43,.35);padding:.4em .9em;border-radius:999px}
.hero h1{color:#fff;margin:.5em 0 .35em;font-size:clamp(2.2rem,5vw,3.6rem)}
.hero h1 em{font-style:normal;background:linear-gradient(90deg,#FF5A76,#FF9AA9);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{font-size:1.15rem;color:#C9D3E6;max-width:34em}
.hero__ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:1.6em}
.hero__media{position:relative;aspect-ratio:4/3;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);box-shadow:var(--shadow-lg)}
.hero__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s}
.hero__media img.is-on{opacity:1}
.hero__stats{display:flex;gap:28px;margin-top:2em;flex-wrap:wrap}
.hero__stats b{display:block;font:800 1.5rem var(--font-head);color:#fff}
.hero__stats span{font-size:.82rem;color:#9FB0CC}

/* ---------- sections ---------- */
.section{padding:72px 0}
.section--mist{background:var(--mist)}
.section__head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.section__head h2{margin:0}
.kicker{font:800 .75rem var(--font-head);letter-spacing:.16em;text-transform:uppercase;color:var(--red-600)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s;color:var(--text)}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);text-decoration:none}
.card__icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--red-50);margin-bottom:14px}
.card__icon img{width:30px;height:30px;object-fit:contain}
.card h3{margin:0 0 .35em}
.card p{color:var(--muted);font-size:.95rem;flex:1}
.card__more{font-weight:700;color:var(--red-600);font-size:.9rem}
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

/* ---------- page layout ---------- */
.page-hero{background:linear-gradient(160deg,var(--ink),var(--ink-2));color:#fff;padding:44px 0 40px}
.page-hero h1{color:#fff;margin:.2em 0 0}
.crumbs{font-size:.85rem;color:#9FB0CC}
.crumbs a{color:#C9D3E6}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;padding:48px 16px 72px}   /* 16px sides: "0" here wiped .wrap's side padding, so page text touched the screen edge on phones */
.layout--full{grid-template-columns:minmax(0,1fr)}
.entry > :first-child{margin-top:0}
.entry ul{padding-left:1.2em}
.entry li{margin:.25em 0}
.entry img{border-radius:var(--radius-sm)}
.sidebar .widget{background:var(--mist);border-radius:var(--radius);padding:20px;margin-bottom:20px}
.sidebar h3{margin:0 0 .6em;font-size:1rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.sidebar ul{list-style:none;margin:0;padding:0}
.sidebar li a{display:block;padding:.4em .2em;border-bottom:1px solid var(--line);color:var(--text);font-size:.93rem}
.sidebar li.current a,.sidebar li a:hover{color:var(--red-600);text-decoration:none}
.sidebar .cta-box{background:var(--ink);color:#C9D3E6}
.sidebar .cta-box h3{color:#fff}

/* ---------- product pages ---------- */
.dt-type-product .dt-gallery{float:left;width:46%;margin:0 4% 24px 0}
.dt-type-product .entry > .field--name-body,.dt-type-product .entry .field--name-body{overflow:hidden}
.dt-type-product .entry h1:first-of-type{display:none}
.dt-type-product .entry h2:first-of-type{margin-top:0;color:var(--red-600);font-size:1.3rem}
.dt-gallery{position:relative;background:linear-gradient(180deg,#fff,var(--mist));border:1px solid var(--line);border-radius:var(--radius);padding:20px;aspect-ratio:4/3;display:grid;place-items:center}
.dt-gallery img{grid-area:1/1;max-height:100%;object-fit:contain;opacity:0;transition:opacity .4s}
.dt-gallery img.is-on{opacity:1}
.dt-gallery__dots{position:absolute;bottom:10px;left:0;right:0;display:flex;gap:6px;justify-content:center}
.dt-gallery__dots button{width:8px;height:8px;border-radius:50%;border:0;background:#C5CDDA;cursor:pointer;padding:0}
.dt-gallery__dots button.is-on{background:var(--red)}
.dt-tabs{clear:both;margin-top:28px}
.dt-tabs__bar{position:sticky;top:73px;z-index:5;display:flex;gap:4px;overflow-x:auto;background:#fff;border-bottom:1px solid var(--line);padding-top:6px}
.admin-bar .dt-tabs__bar{top:105px}
.dt-tabs__bar button{border:0;background:none;padding:.8em 1.1em;font:700 .95rem var(--font);color:var(--muted);border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap}
.dt-tabs__bar button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--red)}
.dt-tab{padding-top:24px}
.dt-tabs.is-ready .dt-tab[hidden]{display:none}

/* ---------- forms ---------- */
.dt-form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);margin:24px 0}
.dt-form__title{margin-top:0}
.dt-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-bottom:18px}
.dt-form__field--wide{grid-column:1/-1}
.dt-form label{display:block;font-weight:600;font-size:.88rem;margin-bottom:4px;color:var(--ink)}
.dt-form input,.dt-form textarea{width:100%;padding:.75em .9em;border:1px solid #CBD3DF;border-radius:10px;font:inherit;background:#fff}
.dt-form input:focus,.dt-form textarea:focus{outline:3px solid rgba(61,123,255,.25);border-color:var(--sky)}
.dt-form__hp{position:absolute;left:-9999px}
.dt-form__err{color:var(--red-600);font-weight:600}
.dt-form--ok{border-color:#9AD9B0;background:#F2FBF5}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:#9FB0CC;font-size:.92rem}
.site-footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:36px;padding-top:56px;padding-bottom:40px}
.site-footer h4{color:#fff;margin:0 0 1em;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:.35em 0}
.site-footer a{color:#C9D3E6}
.site-footer a:hover{color:#fff}
.footer-logo img{height:30px;filter:brightness(0) invert(1);opacity:.95}
.social{display:flex;gap:10px;margin-top:14px}
.social a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08)}
.social a:hover{background:var(--red)}
.social svg{width:16px;height:16px;fill:#fff}
.copyright{border-top:1px solid rgba(255,255,255,.08);padding:18px 0;font-size:.82rem}
.copyright .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:0;padding-bottom:0;grid-template-columns:none}


/* ---------- category listings (Drupal grid markup + new draytek.com cards) ---------- */
.gva-view-grid-inner{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;list-style:none;margin:0;padding:0}
.gva-view-grid-inner > *{min-width:0}
.post-block{height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:transform .18s,box-shadow .18s}
.post-block:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.post-image{background:linear-gradient(180deg,#fff,var(--mist));aspect-ratio:4/3;display:grid;place-items:center;padding:14px}
.post-image img{max-height:100%;width:auto;object-fit:contain;border-radius:0}
.post-content{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.post-title a{font-weight:800;color:var(--ink);font-size:1.05rem}
.post-desc h1{display:none}
.post-desc h2{font-size:.92rem;font-weight:500;color:var(--muted);margin:.3em 0 .8em}
.post-desc p:empty{display:none}
.post-action{margin-top:auto}
.btn-inline{font-weight:700;color:var(--red-600);font-size:.9rem}
.item-columns.dt-new .post-title a::after{content:"New";margin-left:.5em;padding:.1em .5em;border-radius:99px;background:var(--red);color:#fff;font-size:.68rem;vertical-align:middle;letter-spacing:.04em}

/* ---------- product pages built from draytek.com ---------- */
.dt-keys{list-style:none;padding:0!important;margin:1em 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dt-keys li{background:var(--mist);border-radius:10px;padding:.55em .8em;font-weight:600;font-size:.92rem;margin:0}
.dt-cta{display:flex;gap:10px;flex-wrap:wrap}
.dt-dtcom .row{display:flex;flex-wrap:wrap;gap:20px 4%;margin:0}
.dt-dtcom [class*="col-"]{flex:1 1 100%;min-width:0}
.dt-dtcom .col-md-6,.dt-dtcom .col-lg-6{flex-basis:48%}
.dt-dtcom .col-lg-3,.dt-dtcom .col-md-3{flex-basis:22%}
.dt-dtcom .col-lg-4,.dt-dtcom .col-md-4{flex-basis:30%}
.dt-dtcom section{margin:28px 0}
.dt-dtcom img{max-width:100%;height:auto}
.dt-dtcom .col-md-6 img{max-width:56px;float:left;margin:0 14px 6px 0}
.dt-dtcom .number-box{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.dt-dtcom .number-box > *{background:var(--ink);color:#C9D3E6;border-radius:var(--radius);padding:18px;text-align:center}
.dt-dtcom .number-box h4{color:#fff;margin:0 0 .2em;font-size:1.25rem}
.dt-dtcom .u-text-center{text-align:center}
.dt-spec-wrap{overflow-x:auto}
.dt-spec{width:100%;border-collapse:collapse;font-size:.92rem}
.dt-spec th,.dt-spec td{text-align:left;vertical-align:top;padding:.55em .8em;border-bottom:1px solid var(--line)}
.dt-spec tr > th:first-child{width:38%;color:var(--muted);font-weight:600}
.dt-spec__head th{background:var(--ink);color:#fff!important}
.dt-spec__sec th{background:var(--mist);color:var(--ink)!important;font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem}
@media (max-width:900px){.gva-view-grid-inner{grid-template-columns:repeat(2,1fr)}.dt-dtcom .number-box{grid-template-columns:1fr 1fr}.dt-dtcom .col-md-6,.dt-dtcom .col-lg-6,.dt-dtcom .col-lg-3{flex-basis:100%}}
@media (max-width:600px){.gva-view-grid-inner{grid-template-columns:1fr}.dt-keys{grid-template-columns:1fr}}

/* ---------- lightbox ---------- */
.dt-lightbox{position:fixed;inset:0;background:rgba(5,10,20,.85);display:grid;place-items:center;z-index:1000;padding:16px}
.dt-lightbox iframe{width:min(960px,100%);aspect-ratio:16/9;border:0;border-radius:12px}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .layout{grid-template-columns:minmax(0,1fr)}
  .site-footer .wrap{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .nav-toggle{display:block}
  .header-cta{display:none}
  .nav{position:fixed;inset:72px 0 0 0;background:#fff;overflow-y:auto;padding:16px;transform:translateX(100%);transition:transform .25s;margin:0}
  .nav.is-open{transform:none}
  .nav > ul{flex-direction:column;align-items:stretch}
  .nav .sub-menu,.nav > ul > li.dt-mega > .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 14px;display:none;width:auto;grid-template-columns:1fr}
  .nav li.is-open > .sub-menu{display:block}
  .hero .wrap{grid-template-columns:1fr;padding-top:48px;padding-bottom:56px}
  .strip{grid-template-columns:1fr}
  .dt-type-product .dt-gallery{float:none;width:100%;margin:0 0 20px}
}
@media (max-width:600px){
  .cards{grid-template-columns:1fr}
  .dt-form__grid{grid-template-columns:1fr}
  .site-footer .wrap{grid-template-columns:1fr}
  .section{padding:52px 0}
  .topbar__hide-sm{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Logo as on draytekusa.com (2026-10-13): never let the menu squeeze it out, 200x49 */
.site-header .brand{flex:0 0 auto}
.brand img{height:49px;width:auto}

/* Menu tile pages (2026-10-13): Products, each product category, Key Features - see menu-tiles.php */
.dt-tiles-hero{background:var(--mist);border-bottom:1px solid var(--line);padding:36px 0 30px}
.dt-tiles-hero .wrap{display:block}
.dt-tiles-hero h1{margin:.2em 0 .25em;font-family:var(--font-head);color:var(--ink)}
.dt-tiles-hero__intro{margin:0;max-width:760px;color:var(--muted);font-size:1.05rem}
.dt-crumbs{font-size:.88rem;color:var(--muted)}
.dt-crumbs a{color:var(--muted)}
.dt-crumbs a:hover{color:var(--red-600)}
.dt-crumbs span[aria-hidden]{margin:0 .4em;opacity:.6}
.dt-tiles{padding:40px 0 64px}
.dt-tiles .wrap{display:block}
.dt-tiles__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.dt-tile{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;color:var(--text);transition:box-shadow .2s,transform .2s,border-color .2s}
.dt-tile:hover{text-decoration:none;box-shadow:var(--shadow-lg);transform:translateY(-3px);border-color:transparent}
.dt-tile__img{display:flex;align-items:center;justify-content:center;height:210px;padding:18px;background:#fff;border-bottom:1px solid var(--line)}
.dt-tile__img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.dt-tile__img--icon{background:var(--ink)}   /* the old site's feature icons are light artwork made for a dark background */
.dt-tile__img--icon img{max-height:96px}
.dt-tile__body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px;flex:1}
.dt-tile__title{font:800 1.15rem var(--font-head);color:var(--ink)}
.dt-tile__desc{color:var(--muted);font-size:.95rem;line-height:1.5}
.dt-tile__list{display:flex;flex-wrap:wrap;gap:6px}
.dt-tile__list span{font-size:.8rem;background:var(--mist);border-radius:999px;padding:.25em .7em;color:var(--text)}
.dt-tile__more{margin-top:auto;padding-top:6px;font-weight:700;font-size:.9rem;color:var(--red-600)}
@media (max-width:900px){.dt-tiles__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.dt-tiles__grid{grid-template-columns:1fr}.dt-tile__img{height:180px}}

/* Products page (2026-10-13): the 4 categories as a 2x2 grid of wide tiles, photo left */
.dt-tiles__grid--groups{grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr;gap:28px}
.dt-tiles__grid--groups .dt-tile{flex-direction:row}
.dt-tiles__grid--groups .dt-tile__img{flex:0 0 42%;height:auto;min-height:260px;padding:24px;border-bottom:0;border-right:1px solid var(--line)}
.dt-tiles__grid--groups .dt-tile__body{padding:24px 26px}
.dt-tiles__grid--groups .dt-tile__title{font-size:1.4rem}
@media (max-width:1000px){.dt-tiles__grid--groups{grid-template-columns:1fr}}
@media (max-width:600px){.dt-tiles__grid--groups .dt-tile{flex-direction:column}.dt-tiles__grid--groups .dt-tile__img{flex:none;height:200px;min-height:0;border-right:0;border-bottom:1px solid var(--line)}}

/* Product pages (2026-10-13): content from draytek.com in tabs - Overview / Specs / Accessories / Resources */
.dt-product__top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:44px;align-items:center;margin:0 0 8px}
.dt-product .dt-gallery{float:none;width:auto;margin:0}
.dt-product__tagline{font:800 1.55rem/1.3 var(--font-head);color:var(--ink);margin:0 0 20px}
.dt-product__cta{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.dt-product__source{margin:0;font-size:.85rem;color:var(--muted)}
.dt-product .container{max-width:none;width:auto;padding:0;margin:0}
.dt-product .dt-dtcom .col-md-6 img{max-width:100%;float:none;margin:0}
.dt-product .dt-dtcom img[src$=".svg"]{max-width:64px}
.dt-product .dt-dtcom h2,.dt-product .dt-dtcom h3,.dt-product .dt-dtcom h4{color:var(--ink)}
.dt-product .number-box h4{color:var(--red-600)}
.dt-product .dt-extra{border-top:1px solid var(--line);padding-top:8px}
/* Specs and Models tables */
.dt-specs__title{font-size:1.25rem;margin:8px 0 12px}
.dt-table-wrap{overflow-x:auto;margin:0 0 32px;border:1px solid var(--line);border-radius:var(--radius)}
.dt-product table{width:100%;border-collapse:collapse;font-size:.92rem;margin:0}
.dt-product td,.dt-product th{border-bottom:1px solid var(--line);padding:.6em .9em;vertical-align:top;text-align:left}
.dt-product tr:last-child td{border-bottom:0}
.dt-tab--specs #spec-table td:first-child{width:40%;color:var(--muted)}
.dt-product td.category,.dt-product td.category[style]{background:var(--mist) !important;cursor:default !important}
.dt-product .spec-category-title h5{margin:0;font:800 .82rem var(--font-head);letter-spacing:.08em;text-transform:uppercase;color:var(--red-600)}
.dt-product td.model_name{font-weight:700;color:var(--ink);white-space:nowrap}
.dt-product tr:first-child td{font-weight:700;color:var(--ink);background:var(--mist)}
.dt-yes{color:#1f9d55;font-weight:800}
.dt-no{color:var(--muted)}
/* Accessories (draytek.com product cards) */
.dt-tab--accessories .row{gap:20px}
.dt-tab--accessories [class*="col-"]{flex:0 0 calc(33.333% - 14px)}
.dt-tab--accessories .products-item a{display:block;height:100%;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:var(--text);text-align:center;transition:box-shadow .2s,transform .2s}
.dt-tab--accessories .products-item a:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px);text-decoration:none}
.dt-tab--accessories .products-item .top{height:auto !important;padding:18px;border-bottom:1px solid var(--line)}
.dt-tab--accessories .products-item img{max-height:150px !important;width:auto}
.dt-tab--accessories .products-item .bottom{padding:14px 16px 18px}
.dt-tab--accessories .products-item h4{margin:0 0 .3em;font-size:1.05rem}
.dt-tab--accessories .products-item p{margin:0;color:var(--muted);font-size:.9rem}
/* Resources (firmware, live demo, manuals, datasheet) */
.dt-tab--resources .row{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 28px}
.dt-tab--resources h3{margin:0 0 4px;font-size:1.1rem}
.dt-tab--resources a{display:block;padding:.7em 1em;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;color:var(--ink);font-weight:600}
.dt-tab--resources a::before{content:"\2193";display:inline-block;width:1.4em;color:var(--red-600);font-weight:800}
.dt-tab--resources a[href*="livedemo"]::before{content:"\2197"}
.dt-tab--resources a:hover{border-color:var(--red);text-decoration:none}
.dt-tab--resources [hidden]{display:none}
@media (max-width:900px){.dt-product__top{grid-template-columns:1fr;gap:24px}.dt-tab--accessories [class*="col-"]{flex-basis:calc(50% - 10px)}}
@media (max-width:600px){.dt-tab--accessories [class*="col-"]{flex-basis:100%}.dt-product__tagline{font-size:1.3rem}}

/* Product pages: draytek.com's Bootstrap-style columns, rebuilt without Bootstrap (the generic .dt-dtcom grid made columns
   wider than the page). Carousels (Owl) have no script here, so their slides show as a grid and the cloned slides are hidden. */
.dt-product .dt-tab{min-width:0;overflow-x:hidden}
.dt-product .dt-dtcom .row{display:flex;flex-wrap:wrap;gap:28px;margin:0 0 24px;width:auto;max-width:100%}
.dt-product .dt-dtcom .row[style*="column"]{flex-direction:column;gap:0}
.dt-product .dt-dtcom [class*="col-"]{flex:1 1 260px;min-width:0;max-width:100%;width:auto;padding:0}
.dt-product .dt-dtcom .row[style*="column"] > *{flex:none;width:100%}
.dt-product .dt-dtcom .col-12,.dt-product .dt-dtcom .col-lg-12,.dt-product .dt-dtcom .col-md-12{flex-basis:100%}
.dt-product .dt-dtcom img{max-width:100% !important;height:auto !important}
.dt-product .dt-dtcom section{max-width:100%}
.dt-product .number-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}
.dt-product .owl-stage-outer{overflow:visible}
.dt-product .owl-stage{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;width:auto !important;transform:none !important}
.dt-product .owl-item{width:auto !important;margin:0 !important}
.dt-product .owl-item.cloned{display:none}
.dt-product .d-none{display:none !important}   /* draytek.com (Bootstrap) hidden elements */
/* Models (comparison) tables keep their width and scroll sideways on small screens; the 2-column spec table fits as is */
.dt-table-wrap table:not(#spec-table){min-width:900px}
.dt-table-wrap table:not(#spec-table) td{min-width:90px}
.dt-table-wrap{-webkit-overflow-scrolling:touch}
/* The closed mobile menu waits just off the right edge (translateX(100%)) and widened every page on phones, so the page
   could be dragged sideways. clip (not hidden) keeps the sticky header working. */
html,body{overflow-x:clip}
/* Product top section (2026-10-14): one full-width band in the gallery's gray (--mist); the transparent product photos
   blend into it (no box, no border). Pulled up to meet the page hero; the band is widened with box-shadow + clip-path,
   so it cannot cause sideways scrolling. */
.dt-product__top{position:relative;margin:-48px 0 8px;padding:44px 0 48px;background:var(--mist);box-shadow:0 0 0 100vmax var(--mist);clip-path:inset(0 -100vmax)}
.dt-product .dt-gallery{background:transparent;border:0;border-radius:0;padding:0}
.dt-product__tagline{margin:0 0 36px}
/* room for the gallery dots under the photo, so they never sit on a tall product (e.g. VigorAP 906) */
.dt-product .dt-gallery{padding-bottom:30px}
.dt-product .dt-gallery__dots{bottom:4px}
/* Overview images: never taller than 460px, so diagrams and product shots do not take over the page */
.dt-product .dt-tab--overview img{max-height:460px;width:auto}
/* Product introduction in the top pane (2026-10-14): moved from the start of the Overview */
.dt-product__tagline:has(+ .dt-product__intro){margin-bottom:14px}
.dt-product__intro{margin:0 0 32px;color:var(--text);font-size:.98rem;line-height:1.6}
.dt-product__intro p{margin:0 0 .7em}
.dt-product__intro p:last-child{margin-bottom:0}
.dt-product__intro .dt-product__intro-title{font:800 1.05rem/1.35 var(--font-head);color:var(--red-600);margin-bottom:.35em}

/* Product key-figure tiles (number-box): text vertically centered in the dark tile (the generic col- rule had zeroed the padding) */
.dt-product .dt-dtcom .number-box > [class*="col-"]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px 16px;margin:0}
.dt-product .dt-dtcom .number-box h4{margin:0 0 .25em;line-height:1.2}
.dt-product .dt-dtcom .number-box p{margin:0;line-height:1.4}

/* Product pages as native blocks (2026-10-13): the 21 product posts are WordPress blocks, editable in the block editor.
   Classes come from each block's "Additional CSS class(es)" field: dt-product, dt-product__top, dt-gallery, dt-tabs,
   dt-tab (+ its first heading dt-tab__title = the tab's label), dt-section, dt-figures/dt-figure, dt-highlight,
   dt-grid dt-grid--N, dt-card, dt-slides, dt-inbox, dt-center, is-icon. The block editor loads this file too. */
.dt-product .wp-block-group,.dt-product .wp-block-columns,.dt-product .wp-block-image{box-sizing:border-box}
.dt-product .wp-block-image{margin:0 0 1em}
.dt-product .wp-block-image img{max-width:100%;height:auto}
.dt-product .wp-block-columns{gap:32px;margin:0 0 28px;align-items:center !important}
.dt-tab h2,.dt-tab h3,.dt-tab h4,.dt-tab h5{color:var(--ink)}
.dt-tab .wp-block-heading{margin:0 0 .5em}
.dt-tab .wp-block-list{margin:0 0 1em;padding-left:1.3em}
.dt-tabs.is-ready .dt-tab > .dt-tab__title{display:none}
.dt-tab__title{font-size:1.4rem;margin:0 0 16px}
.dt-section{margin:0 0 44px}
.dt-center,.dt-center > .wp-block-heading{text-align:center}
.dt-center .wp-block-image,.dt-figure,.dt-card{text-align:center}
.dt-tab--overview .wp-block-image img{max-height:460px;width:auto}
/* top: gallery (rotating images, dots added by dt.js) + summary */
.dt-gallery > figure{grid-area:1/1;margin:0;opacity:0;transition:opacity .4s;display:grid;place-items:center;max-height:100%}
.dt-gallery > figure.is-on{opacity:1}
.dt-gallery > figure img{max-height:100%;max-width:100%;object-fit:contain;opacity:1}
.dt-product__cta.wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.dt-product .wp-block-button__link{display:inline-flex;align-items:center;padding:.8em 1.35em;border-radius:999px;font-weight:700;font-size:.95rem;line-height:1.2;border:2px solid transparent;background:var(--red);color:#fff;text-decoration:none;transition:transform .15s,background .15s,border-color .15s}
.dt-product .wp-block-button__link:hover{background:var(--red-600);color:#fff;box-shadow:0 8px 20px rgba(228,0,43,.3);transform:translateY(-1px);text-decoration:none}
.dt-product .is-style-outline > .wp-block-button__link{background:#fff;border-color:var(--line);color:var(--ink);padding:.8em 1.35em}
.dt-product .is-style-outline > .wp-block-button__link:hover{background:#fff;color:var(--ink);border-color:var(--ink);box-shadow:none}
.dt-tab .wp-block-buttons{display:flex;justify-content:center;margin:0 0 20px}
/* key figures: dark tiles */
.dt-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin:0 0 16px}
.dt-figure{background:var(--ink);color:#C9D3E6;border-radius:var(--radius);padding:20px 16px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.dt-figure .wp-block-heading{color:var(--red-600);margin:0 0 .25em;font-size:1.25rem;line-height:1.2}
.dt-figure p{margin:0;line-height:1.4}
/* key features: icon + title + text */
.dt-highlight{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;align-content:start;margin:0 0 24px}
.dt-highlight > .is-icon{grid-row:1 / span 9;margin:0}
.dt-highlight .wp-block-heading{margin:0 0 .3em;font-size:1rem}
.dt-highlight p{margin:0;color:var(--text)}
.dt-product .is-icon img,.dt-tab--overview .is-icon img{width:48px;height:48px;max-height:48px;object-fit:contain}
/* card grids (accessories, related products, modes) */
.dt-grid{display:grid;gap:20px;margin:0 0 28px}
.dt-grid--1{grid-template-columns:1fr}.dt-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dt-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.dt-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.dt-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 16px;height:100%;transition:box-shadow .2s,transform .2s}
.dt-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.dt-card .wp-block-image img{max-height:150px;width:auto}
.dt-card .wp-block-heading{font-size:1.05rem;margin:.4em 0 .3em}
.dt-card .wp-block-heading a{color:var(--ink)}
.dt-card p{margin:0;color:var(--muted);font-size:.9rem}
.dt-card .wp-block-list{text-align:left}
/* slides (were carousels on draytek.com): shown one under another */
.dt-slides{display:grid;gap:28px}
.dt-slide .wp-block-columns{margin:0}
/* in the box */
.dt-inbox.wp-block-list{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:24px}
.dt-inbox li{display:flex;flex-direction:column;align-items:center;gap:8px;width:120px;text-align:center;font-size:.9rem}
.dt-inbox img{max-height:80px;width:auto}
/* resources: one link per line */
.dt-tab--resources p{margin:0 0 8px}
.dt-tab--resources .wp-block-heading{margin:24px 0 8px;font-size:1.1rem}
@media (max-width:900px){.dt-grid--3,.dt-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:781px){.dt-product .wp-block-columns{flex-wrap:wrap !important}.dt-product .wp-block-column{flex-basis:100% !important}}
@media (max-width:600px){.dt-grid--2,.dt-grid--3,.dt-grid--4{grid-template-columns:1fr}}
.dt-product .wp-block-columns:has(> .wp-block-column > .dt-card){align-items:stretch !important}

/* Key Features tab (2026-10-13): one tile per feature (group.dt-feature inside group.dt-features), styled like the
   home page cards - white card, soft shadow, lifts on hover, icon in a rounded red-tint square */
.dt-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 28px}
.dt-feature{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s;color:var(--text);min-width:0}
.dt-feature:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.dt-product .dt-feature > .is-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--red-50);margin:0 0 14px;flex:none}
.dt-product .dt-feature > .is-icon img{width:30px;height:30px;max-height:30px;object-fit:contain}
.dt-feature .wp-block-heading{font:800 1.05rem/1.3 var(--font-head);color:var(--ink);margin:0 0 .4em}
.dt-feature .wp-block-heading small{font:500 .8rem var(--font);color:var(--muted)}
.dt-feature p{color:var(--muted);font-size:.95rem;line-height:1.55;margin:0 0 .5em}
.dt-feature p:last-child{margin-bottom:0}
.dt-feature p a{font-weight:700;color:var(--red-600)}
@media (max-width:900px){.dt-features{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.dt-features{grid-template-columns:1fr}}
.dt-tabs__bar{scrollbar-width:none}.dt-tabs__bar::-webkit-scrollbar{display:none}
@media (max-width:600px){.dt-tabs__bar button{padding:.8em .8em}}

/* Where to Buy (2026-10-13): online store partner tiles, styled like the home page cards */
.dt-partners__title{margin:28px 0 18px}
.dt-partners{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 32px}
.dt-partner{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 20px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s}
.dt-partner:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.dt-partner .dt-partner__logo{height:90px;width:100%;display:grid;place-items:center;margin:0 0 16px}
.dt-partner .dt-partner__logo img{max-height:90px;max-width:220px;width:auto;height:auto;object-fit:contain}
.dt-partner__name{margin:0 0 .25em;font:800 1.05rem var(--font-head)}
.dt-partner__name a{color:var(--ink)}
.dt-partner__phone{margin:0;color:var(--muted)}
.dt-partner__phone a{color:var(--red-600);font-weight:700}
@media (max-width:900px){.dt-partners{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.dt-partners{grid-template-columns:1fr}}

/* Contact Us (2026-10-13), like draytekusa.com/contact-us: audience tiles, then form | call / website / location */
.dt-audiences{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:8px 0 44px}
.dt-audience{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s}
.dt-audience:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.dt-audience .dt-audience__img{margin:0 0 16px}
.dt-audience .dt-audience__img img{width:96px;height:96px;object-fit:cover;border-radius:50%}
.dt-audience__title{font-size:1.1rem;margin:0 0 .4em;color:var(--ink)}
.dt-audience p{margin:0;color:var(--muted);font-size:.95rem}
.dt-contact.wp-block-columns{gap:48px;align-items:flex-start !important;margin:0 0 40px}
.dt-contact__title{font-weight:400;margin:0 0 4px}
.dt-contact__title strong{font-weight:800}
.dt-contact .dt-form{margin-top:12px}
.dt-contact-info{display:flex;flex-direction:column;gap:22px;padding-top:72px}
.dt-contact-item{display:flex;align-items:center;gap:16px}
.dt-contact-item .dt-contact-item__icon{flex:none;width:56px;height:56px;border-radius:14px;background:var(--red-50);display:grid;place-items:center;margin:0}
.dt-contact-item .dt-contact-item__icon img{width:28px;height:28px;object-fit:contain}
.dt-contact-item p{margin:0;color:var(--muted);line-height:1.45}
.dt-contact-item strong{color:var(--ink);font-size:1.05rem}
.dt-contact-item strong a{color:var(--ink)}
@media (max-width:900px){.dt-audiences{grid-template-columns:1fr}.dt-contact-info{padding-top:0}}
.dt-contact__title{font:700 1.3rem/1.35 var(--font-head);color:var(--ink);margin:0 0 4px}

/* Top bar "Where to Buy" button (2026-10-13; replaces the Partners link and the red button in the main menu row) */
.topbar__links{align-items:center}
.topbar a.topbar__buy{background:var(--red);color:#fff;border-radius:999px;padding:.3em 1em;font-weight:700;line-height:1.4;transition:background .15s}
.topbar a.topbar__buy:hover{background:var(--red-600);text-decoration:none}
/* top bar icons (phone, cart in Where to Buy) */
.topbar a.topbar__phone,.topbar a.topbar__buy{display:inline-flex;align-items:center;gap:.45em}
.topbar__icon{width:15px;height:15px;fill:currentColor;flex:none}
