Ir para o conteúdo

MediaWiki:Common.css: mudanças entre as edições

De Wiki TokuDrive
Home inspirada no Fandom + novo visual
Corrigindo design limpo da Wiki TokuDrive
Linha 1: Linha 1:
/* ==========================================================
/* ==========================================================
   Wiki TokuDrive - Home inspirada no Fandom
   Wiki TokuDrive - Home limpa, organizada e moderna
  Claro + Escuro
   ========================================================== */
   ========================================================== */


:root {
:root {
   --td-bg: #f5f6fb;
   --td-bg: #f4f6fb;
   --td-surface: #ffffff;
   --td-surface: #ffffff;
   --td-card: rgba(255,255,255,.94);
   --td-card: #ffffff;
   --td-text: #151722;
  --td-card-soft: #f8f9fc;
   --td-muted: #667089;
   --td-text: #171a24;
   --td-border: rgba(19,24,37,.12);
   --td-muted: #687084;
   --td-link: #1766d8;
   --td-border: rgba(23, 26, 36, .12);
  --td-accent: #ff005a;
   --td-link: #195ec8;
   --td-accent-2: #ff7a00;
   --td-primary: #111827;
   --td-accent-3: #6d1fff;
   --td-accent: #e50914;
  --td-hero1: #ff005c;
   --td-shadow: 0 18px 45px rgba(16, 24, 40, .10);
  --td-hero2: #9e005d;
  --td-radius: 22px;
  --td-hero3: #29003a;
   --td-shadow: 0 18px 50px rgba(0,0,0,.10);
}
}


html[data-td-theme="dark"] {
html[data-td-theme="dark"] {
   --td-bg: #080911;
   --td-bg: #090b10;
   --td-surface: #10131d;
   --td-surface: #121620;
   --td-card: rgba(18,20,32,.94);
   --td-card: #151a26;
   --td-text: #f4f6fd;
  --td-card-soft: #10141d;
   --td-muted: #abb3c9;
   --td-text: #f4f6fb;
   --td-border: rgba(255,255,255,.10);
   --td-muted: #a8b0c2;
   --td-link: #9cc0ff;
   --td-border: rgba(255,255,255,.12);
  --td-accent: #ff2b76;
   --td-link: #9dbdff;
  --td-accent-2: #ff9a28;
   --td-primary: #ffffff;
  --td-accent-3: #8d5dff;
   --td-shadow: 0 18px 55px rgba(0,0,0,.35);
  --td-hero1: #ff005c;
  --td-hero2: #980057;
   --td-hero3: #2a013b;
   --td-shadow: 0 18px 60px rgba(0,0,0,.38);
}
}


Linha 55: Linha 48:
}
}


a {
a,
  color: var(--td-link);
}
 
a:visited {
a:visited {
   color: var(--td-link);
   color: var(--td-link);
Linha 65: Linha 55:
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h3 {
.mw-parser-output h4 {
   color: var(--td-text);
   color: var(--td-text);
   border-color: var(--td-border);
   border-color: var(--td-border);
Linha 77: Linha 66:
}
}


/* Remove excesso visual só na página principal */
.page-Página_principal .mw-page-title-main,
.page-Página_principal .citizen-page-header,
.page-Página_principal .mw-first-heading {
  display: none !important;
}
.page-Página_principal .mw-parser-output {
  max-width: none;
}
/* Elementos padrão de artigos */
.toc,
.toc,
#toc,
#toc,
Linha 86: Linha 87:
   color: var(--td-text) !important;
   color: var(--td-text) !important;
   border: 1px solid var(--td-border) !important;
   border: 1px solid var(--td-border) !important;
   border-radius: 16px;
   border-radius: 14px;
   box-shadow: 0 8px 24px rgba(0,0,0,.05);
   box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
}


.wikitable th,
.wikitable th,
.infobox th {
.infobox th {
   background: rgba(127,127,127,.12) !important;
   background: rgba(127,127,127,.10) !important;
   color: var(--td-text) !important;
   color: var(--td-text) !important;
}
}
Linha 102: Linha 103:


.td-sourcebox {
.td-sourcebox {
   border: 1px solid rgba(255,0,92,.30);
   border: 1px solid rgba(229,9,20,.24);
   background: rgba(255,0,92,.08);
   background: rgba(229,9,20,.07);
   color: var(--td-text);
   color: var(--td-text);
   padding: 12px 14px;
   padding: 12px 14px;
Linha 111: Linha 112:
}
}


/* Botão de tema */
#td-theme-toggle {
#td-theme-toggle {
   position: fixed;
   position: fixed;
   right: 22px;
   right: 20px;
   bottom: 20px;
   bottom: 18px;
   z-index: 99999;
   z-index: 99999;
   border: 1px solid var(--td-border);
   border: 1px solid var(--td-border);
Linha 121: Linha 123:
   box-shadow: var(--td-shadow);
   box-shadow: var(--td-shadow);
   border-radius: 999px;
   border-radius: 999px;
   padding: 11px 16px;
   padding: 10px 14px;
   font-weight: 900;
   font-weight: 800;
   cursor: pointer;
   cursor: pointer;
  backdrop-filter: blur(14px);
}
}


/* ==========================================================
/* Home */
  HOME
  ========================================================== */
 
.td-home {
.td-home {
   max-width: 1490px;
   max-width: 1320px;
   margin: 0 auto;
   margin: 0 auto;
  padding: 10px 0 34px;
}
}


.td-fandom-hero {
.td-hero {
   position: relative;
   position: relative;
   overflow: hidden;
   overflow: hidden;
   border-radius: 0 0 24px 24px;
   border-radius: 30px;
  min-height: 540px;
   padding: clamp(28px, 5vw, 62px);
   padding: 42px 40px 34px;
  margin: -10px auto 0;
   background:
   background:
     radial-gradient(circle at top left, rgba(255,255,255,.10), transparent 32%),
     radial-gradient(circle at top left, rgba(229,9,20,.20), transparent 34%),
     radial-gradient(circle at 15% 68%, rgba(255,255,255,.06) 0 2px, transparent 3px),
     radial-gradient(circle at bottom right, rgba(25,94,200,.16), transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.12) 0 3px, transparent 4px),
     linear-gradient(135deg, var(--td-surface), var(--td-card-soft));
     linear-gradient(135deg, var(--td-hero1) 0%, var(--td-hero2) 48%, var(--td-hero3) 100%);
  border: 1px solid var(--td-border);
   box-shadow: var(--td-shadow);
   box-shadow: var(--td-shadow);
  text-align: center;
}
}


.td-fandom-hero::before {
html[data-td-theme="dark"] .td-hero {
  content: "";
  position: absolute;
  inset: 0;
   background:
   background:
     radial-gradient(circle at 8% 14%, #ffd400 0 7px, transparent 8px),
     radial-gradient(circle at top left, rgba(229,9,20,.28), transparent 34%),
    radial-gradient(circle at 20% 74%, #31004a 0 7px, transparent 8px),
     radial-gradient(circle at bottom right, rgba(25,94,200,.24), transparent 36%),
     radial-gradient(circle at 86% 12%, #7de7ff 0 7px, transparent 8px),
     linear-gradient(135deg, #151a26, #0f121a);
    radial-gradient(circle at 93% 72%, #ff0062 0 6px, transparent 7px),
     radial-gradient(circle at 82% 52%, #ffd400 0 7px, transparent 8px);
  opacity: .95;
  pointer-events: none;
}
}


.td-fandom-hero::after {
.td-home-logo {
   content: "";
   width: min(340px, 82vw);
   position: absolute;
   height: 115px;
   inset: 0;
   margin: 0 auto 14px;
   background:
   background-image: url('/resources/assets/tokudrive-logo.png');
    radial-gradient(circle at 94% 28%, rgba(0,0,0,.22) 0, rgba(0,0,0,.22) 1px, transparent 1px),
   background-size: contain;
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.14) 0, rgba(255,255,255,.14) 1px, transparent 1px);
   background-position: center;
   background-size: 8px 8px, 8px 8px;
   background-repeat: no-repeat;
   background-position: right top, left bottom;
   filter: drop-shadow(0 12px 22px rgba(0,0,0,.14));
   opacity: .22;
   pointer-events: none;
}
}


.td-hero-inner {
.td-kicker {
   position: relative;
  display: inline-flex;
   z-index: 2;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(229,9,20,.09);
  color: var(--td-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
   letter-spacing: .12em;
   margin-bottom: 16px;
}
}


.td-brand {
.td-title {
   text-align: center;
   font-size: clamp(34px, 6vw, 64px);
   color: #fff;
  line-height: 1;
   margin: 24px 0 18px;
  letter-spacing: -.055em;
  font-weight: 950;
   color: var(--td-primary);
   margin: 0 0 16px;
}
}


.td-brand-top {
.td-subtitle {
   font-size: 15px;
   max-width: 820px;
   font-weight: 900;
   margin: 0 auto;
   letter-spacing: .16em;
   color: var(--td-muted);
   text-transform: uppercase;
   font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.75);
   line-height: 1.55;
   margin-bottom: 12px;
}
}


.td-brand-title {
.td-search-area {
   font-size: clamp(48px, 10vw, 98px);
   max-width: 760px;
  line-height: .95;
   margin: 28px auto 0;
  font-weight: 1000;
  letter-spacing: -.06em;
   margin-bottom: 12px;
}
}


.td-brand-subtitle {
.td-search-form {
   font-size: clamp(16px, 2vw, 22px);
   display: flex;
   color: rgba(255,255,255,.88);
  gap: 10px;
   max-width: 900px;
   padding: 8px;
   margin: 0 auto 22px;
   border-radius: 999px;
   line-height: 1.5;
   background: var(--td-card);
  border: 1px solid var(--td-border);
   box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
}


.td-search-wrap {
.td-search-input {
   max-width: 800px;
   flex: 1;
   margin: 0 auto 28px;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
   color: var(--td-text);
  padding: 0 16px;
  font-size: 16px;
}
}


.td-search-link {
.td-search-button {
   display: flex;
   border: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
   border-radius: 999px;
   border-radius: 999px;
   text-decoration: none !important;
   padding: 0 20px;
   color: #fff !important;
  min-height: 44px;
   font-size: 18px;
   background: var(--td-primary);
   color: var(--td-surface);
   font-weight: 900;
   font-weight: 900;
   background: rgba(41,0,58,.72);
   cursor: pointer;
  border: 3px solid rgba(255,255,255,.76);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
}


.td-search-icon {
html[data-td-theme="dark"] .td-search-button {
   display: inline-flex;
   background: #ffffff;
  width: 38px;
   color: #10141d;
  height: 38px;
  border-radius: 999px;
   align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
}
}


.td-featured-grid {
.td-section-head {
   display: grid;
   display: flex;
   grid-template-columns: repeat(6, minmax(0, 1fr));
   align-items: end;
   gap: 18px;
  justify-content: space-between;
   margin-top: 28px;
   gap: 16px;
   margin: 30px 0 14px;
}
}


.td-featured-card {
.td-section-head h2 {
   position: relative;
   margin: 0 !important;
   overflow: hidden;
   padding: 0 !important;
   border-radius: 18px;
   border: 0 !important;
   min-height: 258px;
   font-size: 26px;
   background: linear-gradient(180deg, rgba(51,0,68,.35), rgba(33,0,51,.95));
   letter-spacing: -.03em;
   border: 1px solid rgba(255,255,255,.10);
   font-weight: 950;
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
}
}


.td-featured-card::before {
.td-section-head p {
   content: "";
   margin: 0;
  position: absolute;
   color: var(--td-muted);
  inset: 0;
   font-size: 14px;
   background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%),
    radial-gradient(circle at 120% -10%, rgba(255,255,255,.18), transparent 36%);
   pointer-events: none;
}
}


.td-featured-body {
.td-latest-grid,
   position: absolute;
.td-portal-grid {
   inset: auto 0 0 0;
   display: grid;
  padding: 16px 14px 18px;
   gap: 16px;
  color: #fff;
}
}


.td-chip {
.td-latest-grid {
   display: inline-flex;
   grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  background: #ff005a;
  margin-bottom: 10px;
}
}


.td-featured-title {
.td-portal-grid {
   font-size: 17px;
   grid-template-columns: repeat(6, minmax(0, 1fr));
  line-height: 1.35;
  font-weight: 950;
}
}


.td-featured-card a {
.td-latest-card,
   color: #fff !important;
.td-portal-card,
   text-decoration: none !important;
.td-panel {
   background: var(--td-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
   box-shadow: 0 12px 30px rgba(0,0,0,.055);
}
}


.td-featured-card a:hover {
.td-latest-card {
   text-decoration: underline !important;
  min-height: 155px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
}


.td-bottom-zone {
.td-latest-card:hover {
   background: linear-gradient(180deg, #24002f 0%, #17001f 100%);
   transform: translateY(-4px);
   color: #fff;
   box-shadow: var(--td-shadow);
  padding: 28px 28px 20px;
   border-color: rgba(229,9,20,.30);
  margin-top: 0;
   border-top: 6px solid #ff0c6a;
}
}


.td-bottom-grid {
.td-latest-label {
   display: grid;
   color: var(--td-muted);
   grid-template-columns: 220px repeat(4, 1fr) 220px;
   font-size: 12px;
   gap: 26px;
  font-weight: 900;
   align-items: start;
   text-transform: uppercase;
   letter-spacing: .10em;
}
}


.td-main-wikis-box {
.td-latest-title {
   display: flex;
   color: var(--td-text);
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 0;
  background: #ffd000;
  color: #23002f;
   font-size: 18px;
   font-size: 18px;
   font-weight: 1000;
   line-height: 1.25;
   text-transform: uppercase;
   font-weight: 950;
  text-align: center;
   margin: 12px 0;
   padding: 14px;
}
}


.td-col-title {
.td-latest-date {
   color: #ffd000;
   color: var(--td-muted);
   font-size: 14px;
   font-size: 13px;
   font-weight: 1000;
   font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
}


.td-bottom-grid ul {
.td-loading {
   margin: 0;
   grid-column: 1 / -1;
   padding: 0;
   padding: 22px;
   list-style: none;
   border-radius: var(--td-radius);
  background: var(--td-card);
  border: 1px solid var(--td-border);
  color: var(--td-muted);
}
}


.td-bottom-grid li {
.td-portal-card {
   margin: 8px 0;
   min-height: 128px;
  padding: 18px;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
}


.td-bottom-grid a {
.td-portal-card:hover {
   color: #fff !important;
   transform: translateY(-4px);
   text-decoration: none !important;
   box-shadow: var(--td-shadow);
  font-weight: 800;
}
}


.td-bottom-grid a:hover {
.td-portal-icon {
   text-decoration: underline !important;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229,9,20,.10);
  color: var(--td-accent);
  font-size: 22px;
   margin-bottom: 14px;
}
}


.td-more-box {
.td-portal-title {
   font-size: 16px;
  color: var(--td-text);
   font-weight: 900;
   font-size: 17px;
   line-height: 1.35;
   font-weight: 950;
   margin-bottom: 6px;
}
}


.td-more-arrow {
.td-portal-desc {
   display: inline-flex;
   color: var(--td-muted);
  width: 46px;
   font-size: 13px;
  height: 46px;
   line-height: 1.45;
  border-radius: 0;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  background: #ffd000;
  color: #21002d !important;
   font-size: 24px;
   font-weight: 1000;
  text-decoration: none !important;
}
}


.td-panel-row {
.td-two-cols {
   display: grid;
   display: grid;
   grid-template-columns: 1.15fr .85fr;
   grid-template-columns: 1.1fr .9fr;
   gap: 16px;
   gap: 16px;
   margin-top: 18px;
   margin-top: 18px;
Linha 395: Linha 381:


.td-panel {
.td-panel {
  border-radius: 20px;
  background: var(--td-card);
  border: 1px solid var(--td-border);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
   padding: 22px;
   padding: 22px;
}
}
Linha 404: Linha 386:
.td-panel h2 {
.td-panel h2 {
   margin-top: 0 !important;
   margin-top: 0 !important;
  padding-top: 0 !important;
   border: 0 !important;
   border: 0 !important;
  padding-top: 0 !important;
   font-size: 24px;
   font-size: 24px;
   font-weight: 1000;
   font-weight: 950;
}
 
.td-panel p {
  color: var(--td-muted);
}
}


.td-panel-list {
.td-link-list {
   display: grid;
   display: grid;
   gap: 10px;
   gap: 10px;
}
}


.td-panel-list a {
.td-link-list a {
   display: block;
   display: block;
   padding: 12px 14px;
   padding: 12px 14px;
   border-radius: 14px;
   border-radius: 14px;
  background: rgba(127,127,127,.08);
   text-decoration: none !important;
   text-decoration: none !important;
  background: rgba(127,127,127,.08);
   font-weight: 850;
   font-weight: 900;
}
}


.td-panel-list a:hover {
.td-link-list a:hover {
   background: rgba(255,0,92,.12);
   background: rgba(229,9,20,.10);
}
}


@media (max-width: 1380px) {
@media (max-width: 1120px) {
   .td-featured-grid {
   .td-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
 
  .td-portal-grid {
     grid-template-columns: repeat(3, minmax(0, 1fr));
     grid-template-columns: repeat(3, minmax(0, 1fr));
   }
   }


   .td-bottom-grid {
   .td-two-cols {
     grid-template-columns: 1fr 1fr 1fr;
     grid-template-columns: 1fr;
   }
   }
}
}


@media (max-width: 860px) {
@media (max-width: 660px) {
   .td-featured-grid,
   .td-home {
   .td-bottom-grid,
    padding: 0 0 26px;
   .td-panel-row {
  }
 
  .td-hero {
    border-radius: 22px;
    padding: 26px 18px;
  }
 
  .td-home-logo {
    height: 86px;
  }
 
  .td-search-form {
    border-radius: 18px;
    flex-direction: column;
    padding: 12px;
  }
 
  .td-search-input {
    min-height: 42px;
  }
 
  .td-search-button {
    width: 100%;
  }
 
   .td-latest-grid,
   .td-portal-grid {
     grid-template-columns: 1fr;
     grid-template-columns: 1fr;
   }
   }


   .td-fandom-hero {
   .td-section-head {
     padding: 28px 18px 24px;
     display: block;
    min-height: auto;
  }
     border-radius: 0 0 18px 18px;
 
  .td-section-head p {
     margin-top: 6px;
   }
   }


   .td-search-link {
   #td-theme-toggle {
     min-height: 56px;
     right: 14px;
     font-size: 16px;
     bottom: 14px;
     padding: 0 16px;
     font-size: 13px;
   }
   }
}
}

Edição das 14h29min de 28 de junho de 2026

/* ==========================================================
   Wiki TokuDrive - Home limpa, organizada e moderna
   ========================================================== */

:root {
  --td-bg: #f4f6fb;
  --td-surface: #ffffff;
  --td-card: #ffffff;
  --td-card-soft: #f8f9fc;
  --td-text: #171a24;
  --td-muted: #687084;
  --td-border: rgba(23, 26, 36, .12);
  --td-link: #195ec8;
  --td-primary: #111827;
  --td-accent: #e50914;
  --td-shadow: 0 18px 45px rgba(16, 24, 40, .10);
  --td-radius: 22px;
}

html[data-td-theme="dark"] {
  --td-bg: #090b10;
  --td-surface: #121620;
  --td-card: #151a26;
  --td-card-soft: #10141d;
  --td-text: #f4f6fb;
  --td-muted: #a8b0c2;
  --td-border: rgba(255,255,255,.12);
  --td-link: #9dbdff;
  --td-primary: #ffffff;
  --td-shadow: 0 18px 55px rgba(0,0,0,.35);
}

html,
body {
  background: var(--td-bg) !important;
  color: var(--td-text) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
.mw-body,
.citizen-body,
#content,
.citizen-page-container,
.citizen-body-container {
  background: var(--td-bg) !important;
  color: var(--td-text) !important;
}

a,
a:visited {
  color: var(--td-link);
}

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3 {
  color: var(--td-text);
  border-color: var(--td-border);
}

.mw-parser-output > p,
.mw-parser-output li {
  font-size: 16px;
  line-height: 1.72;
}

/* Remove excesso visual só na página principal */
.page-Página_principal .mw-page-title-main,
.page-Página_principal .citizen-page-header,
.page-Página_principal .mw-first-heading {
  display: none !important;
}

.page-Página_principal .mw-parser-output {
  max-width: none;
}

/* Elementos padrão de artigos */
.toc,
#toc,
.catlinks,
.thumbinner,
.infobox,
.wikitable {
  background: var(--td-card) !important;
  color: var(--td-text) !important;
  border: 1px solid var(--td-border) !important;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.wikitable th,
.infobox th {
  background: rgba(127,127,127,.10) !important;
  color: var(--td-text) !important;
}

.wikitable td,
.wikitable th {
  border: 1px solid var(--td-border) !important;
}

.td-sourcebox {
  border: 1px solid rgba(229,9,20,.24);
  background: rgba(229,9,20,.07);
  color: var(--td-text);
  padding: 12px 14px;
  margin: 14px 0 22px;
  border-radius: 14px;
  font-size: 13px;
}

/* Botão de tema */
#td-theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 99999;
  border: 1px solid var(--td-border);
  background: var(--td-card);
  color: var(--td-text);
  box-shadow: var(--td-shadow);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Home */
.td-home {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 0 34px;
}

.td-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 62px);
  background:
    radial-gradient(circle at top left, rgba(229,9,20,.20), transparent 34%),
    radial-gradient(circle at bottom right, rgba(25,94,200,.16), transparent 36%),
    linear-gradient(135deg, var(--td-surface), var(--td-card-soft));
  border: 1px solid var(--td-border);
  box-shadow: var(--td-shadow);
  text-align: center;
}

html[data-td-theme="dark"] .td-hero {
  background:
    radial-gradient(circle at top left, rgba(229,9,20,.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(25,94,200,.24), transparent 36%),
    linear-gradient(135deg, #151a26, #0f121a);
}

.td-home-logo {
  width: min(340px, 82vw);
  height: 115px;
  margin: 0 auto 14px;
  background-image: url('/resources/assets/tokudrive-logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.14));
}

.td-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(229,9,20,.09);
  color: var(--td-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.td-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 950;
  color: var(--td-primary);
  margin: 0 0 16px;
}

.td-subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: var(--td-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.td-search-area {
  max-width: 760px;
  margin: 28px auto 0;
}

.td-search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--td-card);
  border: 1px solid var(--td-border);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.td-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--td-text);
  padding: 0 16px;
  font-size: 16px;
}

.td-search-button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  min-height: 44px;
  background: var(--td-primary);
  color: var(--td-surface);
  font-weight: 900;
  cursor: pointer;
}

html[data-td-theme="dark"] .td-search-button {
  background: #ffffff;
  color: #10141d;
}

.td-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}

.td-section-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 26px;
  letter-spacing: -.03em;
  font-weight: 950;
}

.td-section-head p {
  margin: 0;
  color: var(--td-muted);
  font-size: 14px;
}

.td-latest-grid,
.td-portal-grid {
  display: grid;
  gap: 16px;
}

.td-latest-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-portal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.td-latest-card,
.td-portal-card,
.td-panel {
  background: var(--td-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.055);
}

.td-latest-card {
  min-height: 155px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.td-latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--td-shadow);
  border-color: rgba(229,9,20,.30);
}

.td-latest-label {
  color: var(--td-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.td-latest-title {
  color: var(--td-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  margin: 12px 0;
}

.td-latest-date {
  color: var(--td-muted);
  font-size: 13px;
  font-weight: 700;
}

.td-loading {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: var(--td-radius);
  background: var(--td-card);
  border: 1px solid var(--td-border);
  color: var(--td-muted);
}

.td-portal-card {
  min-height: 128px;
  padding: 18px;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.td-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--td-shadow);
}

.td-portal-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229,9,20,.10);
  color: var(--td-accent);
  font-size: 22px;
  margin-bottom: 14px;
}

.td-portal-title {
  color: var(--td-text);
  font-size: 17px;
  font-weight: 950;
  margin-bottom: 6px;
}

.td-portal-desc {
  color: var(--td-muted);
  font-size: 13px;
  line-height: 1.45;
}

.td-two-cols {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 18px;
}

.td-panel {
  padding: 22px;
}

.td-panel h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: 0 !important;
  font-size: 24px;
  font-weight: 950;
}

.td-panel p {
  color: var(--td-muted);
}

.td-link-list {
  display: grid;
  gap: 10px;
}

.td-link-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(127,127,127,.08);
  text-decoration: none !important;
  font-weight: 850;
}

.td-link-list a:hover {
  background: rgba(229,9,20,.10);
}

@media (max-width: 1120px) {
  .td-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .td-two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .td-home {
    padding: 0 0 26px;
  }

  .td-hero {
    border-radius: 22px;
    padding: 26px 18px;
  }

  .td-home-logo {
    height: 86px;
  }

  .td-search-form {
    border-radius: 18px;
    flex-direction: column;
    padding: 12px;
  }

  .td-search-input {
    min-height: 42px;
  }

  .td-search-button {
    width: 100%;
  }

  .td-latest-grid,
  .td-portal-grid {
    grid-template-columns: 1fr;
  }

  .td-section-head {
    display: block;
  }

  .td-section-head p {
    margin-top: 6px;
  }

  #td-theme-toggle {
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }
}