/* El-Abda3 design layer for the stock WHMCS Nexus theme.
   Loaded after the stock CSS by includes/hooks/el-abda3-design.php. Hand-written (unlike rtl.css).
   Brand source: the main site www.el-abda3.com (its tokens.css): ink #151515, lime #abfa08,
   warm off-white #f7f7f4, hairline #e6e6e0, font "Thmanyah Sans".
   Direction-neutral on purpose: logical properties only, so it works in RTL and LTR. */

/* ---------- 1. Font ---------- */
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/thmanyahsans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/thmanyahsans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/thmanyahsans-Bold.woff2") format("woff2"); }

body, h1, h2, h3, h4, h5, h6, .btn, .form-control, .nav-link, .dropdown-item, .card-title,
input, select, textarea, button {
  font-family: "Thmanyah Sans", "Open Sans", Tahoma, sans-serif;
}

/* ---------- 2. Palette (Nexus reads everything from these variables) ---------- */
:root {
  --ed-ink: #151515;
  --ed-lime: #abfa08;
  --ed-bg: #f7f7f4;
  --ed-line: #e6e6e0;

  --neutral-50: #fafaf8;
  --neutral-100: #f7f7f4;
  --neutral-200: #e6e6e0;
  --neutral-300: #d4d4ce;
  --neutral-400: #b9bcb5;
  --neutral-500: #6b6b66;
  --neutral-600: #5d5d5a;
  --neutral-700: #3d3d3a;
  --neutral-800: #2b2b2b;
  --neutral-900: #151515;
  --neutral-950: #111111;
}

/* Top padding (not a header margin): a margin would collapse through <body> and show the dark
   page background as a strip above the bar. */
/* Nexus makes <body> exactly one screen tall with a dark <html> behind it, so a transparent
   section further down the page would show a dark strip. Let <body> grow with its content;
   <html> stays dark so the space under the footer on short pages still matches the footer. */
body { height: auto !important; }
body { background-color: var(--ed-bg); color: var(--ed-ink); padding-top: 14px; }

/* ---------- 3. Header: one floating rounded bar, like the main site ---------- */
#header.header {
  position: sticky;
  top: 12px;
  z-index: 1030;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  max-width: 1170px;
  margin: 0 auto 10px;
  padding: 6px 12px 6px 18px;
  padding-inline: 18px 12px;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(17, 17, 17, 0.35), 0 1px 2px rgba(17, 17, 17, 0.04);
}

/* Flatten the two stock rows so logo, menu, search and cart become items of the one bar. */
#header.header > .navbar.navbar-light,
#header.header > .navbar.navbar-light > .container { display: contents !important; }

#header.header .navbar-brand { order: 1; margin: 0; margin-inline-end: 14px; padding: 0; display: flex; align-items: center; }
#header.header .navbar-brand .logo-img { height: 40px; width: auto; max-height: none; display: block; }

#header.header > .main-navbar-wrapper { order: 2; flex: 1 1 0; min-width: 0; min-height: 0; padding: 0; background: transparent; border: 0; }
#header.header > .main-navbar-wrapper > .container { max-width: none; padding: 0; }
#header.header #nav { gap: 2px; }

/* Menu links as soft pills, with one clear look per state:
     rest      plain ink text
     hover     off-white tint
     pressed   deeper tint
     open      (its drop-down is showing) deeper tint + ink text
     selected  (the page you are on) solid ink pill, white text - as on the main site
     focus     (keyboard) 2px ink ring, on top of whichever state applies            */
#header.header .main-navbar-wrapper .navbar-nav > li > a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ed-ink);
  text-decoration: none;
  outline: 0;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
#header.header .main-navbar-wrapper .navbar-nav > li > a:hover { background: var(--ed-bg); color: var(--ed-ink); }
#header.header .main-navbar-wrapper .navbar-nav > li > a:active { background: #e6e6e0; }
#header.header .main-navbar-wrapper .navbar-nav > li.show > a,
#header.header .main-navbar-wrapper .navbar-nav > li > a[aria-expanded="true"] { background: #ecece6; color: var(--ed-ink); }
#header.header .main-navbar-wrapper .navbar-nav > li.active > a,
#header.header .main-navbar-wrapper .navbar-nav > li.active > a:hover { background: var(--ed-ink); color: #fff; }
#header.header .main-navbar-wrapper .navbar-nav > li.active.show > a,
#header.header .main-navbar-wrapper .navbar-nav > li.active > a:active { background: #2b2b2b; color: #fff; }
#header.header .main-navbar-wrapper .navbar-nav > li > a:focus-visible,
#header.header .navbar-brand:focus-visible,
#header.header .toolbar .btn.nav-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-ink);
}
#header.header .navbar-brand { border-radius: 10px; }

#header.header .dropdown-menu {
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--ed-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(17, 17, 17, 0.45);
}
/* Drop-down entries: the row (li) carries the state, the link fills it. */
#header.header .dropdown-menu li.dropdown-item { padding: 0; border-radius: 10px; background: transparent; }
#header.header .dropdown-menu li.dropdown-item > a.dropdown-item {
  display: block; padding: 8px 12px !important; border-radius: 10px;
  font-size: 14.5px; color: var(--ed-ink); background: transparent; outline: 0;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
#header.header .dropdown-menu li.dropdown-item > a.dropdown-item:hover { background: var(--ed-bg); color: var(--ed-ink); }
#header.header .dropdown-menu li.dropdown-item > a.dropdown-item:active { background: #e6e6e0; color: var(--ed-ink); }
#header.header .dropdown-menu li.dropdown-item.active > a.dropdown-item,
#header.header .dropdown-menu li.dropdown-item.active > a.dropdown-item:hover { background: var(--ed-ink); color: #fff; }
#header.header .dropdown-menu li.dropdown-item > a.dropdown-item:focus-visible { box-shadow: inset 0 0 0 2px var(--ed-ink); }
#header.header .dropdown-menu li.dropdown-item.disabled > a.dropdown-item { color: #b9bcb5; pointer-events: none; }
#header.header .dropdown-menu .dropdown-divider { margin: 6px 4px; border-color: var(--ed-line); }

/* Knowledgebase search: a round icon in the bar. Clicking it drops the text field BELOW the
   bar as a small floating panel, so it never covers, squeezes or clips the menu labels. */
#header.header form.form-inline { order: 3; position: relative; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; margin-inline-start: 6px; }
#header.header .navbar-light .input-group.search {
  position: relative; display: block;
  width: 40px; height: 40px;
  border: 1px solid var(--ed-line); border-radius: 50%; background: var(--ed-bg);
  overflow: visible; transition: background-color .15s ease;
}
#header.header .navbar-light .input-group.search:hover { background: #ecece6; }
#header.header .navbar-light .input-group.search:active { background: #dcdcd5; }
/* Search open = the icon is "selected": solid ink, like the active menu pill. */
#header.header .navbar-light .input-group.search:focus-within { background: var(--ed-ink); border-color: var(--ed-ink); }
#header.header .navbar-light .input-group.search:focus-within .btn { color: #fff; }
#header.header .navbar-light .input-group.search .input-group-prepend { display: block; margin: 0; }
#header.header .navbar-light .input-group.search .btn {
  width: 38px; height: 38px; padding: 0; border: 0; background: transparent; box-shadow: none;
  color: var(--ed-ink); pointer-events: none;
}
/* Closed: the (invisible) field lies over the icon, so a click on the icon focuses it. */
#header.header .navbar-light .input-group.search .form-control {
  position: absolute; top: 0; inset-inline-end: 0; z-index: 6;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; box-shadow: none;
  font-size: 14.5px; opacity: 0; cursor: pointer;
}
/* Open: the field becomes a panel under the bar, aligned to the icon's outer edge. */
#header.header .navbar-light .input-group.search .form-control:focus {
  top: 54px; width: 300px; height: 46px; padding: 0 18px;
  border: 1px solid var(--ed-line); background: #fff; color: var(--ed-ink);
  box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.12), 0 18px 40px -20px rgba(17, 17, 17, 0.5);
  border-color: var(--ed-ink);
  opacity: 1; cursor: text;
}

/* Cart and menu buttons: round, quiet; the item count sits on brand lime. */
#header.header .navbar-nav.toolbar { order: 4; flex-direction: row; align-items: center; margin: 0; margin-inline-start: 6px; }
#header.header .toolbar .btn.nav-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--ed-line); border-radius: 50%;
  background: var(--ed-bg); color: var(--ed-ink);
}
#header.header .toolbar .btn.nav-link:hover { background: #ecece6; }
#header.header .toolbar .btn.nav-link:active { background: #dcdcd5; }
#header.header .toolbar .btn.nav-link[aria-expanded="true"] { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; }
#header.header #cartItemCount {
  position: absolute; top: -5px; inset-inline-end: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--ed-lime); color: var(--ed-ink);
  font-size: 11px; font-weight: 700; line-height: 1;
}

/* Logged-in strip (notifications / account): a slim first row inside the bar. */
#header.header > .topbar {
  order: 0; flex: 0 0 100%;
  margin: 0 0 6px; padding: 4px 6px 8px;
  background: transparent; color: #5d5d5a;
  border-bottom: 1px solid var(--ed-line);
}
#header.header > .topbar .container { max-width: none; padding: 0; }
#header.header > .topbar .btn,
#header.header > .topbar .input-group-text { color: #5d5d5a; background: transparent; border: 0; font-size: 13.5px; }
#header.header > .topbar .btn-active-client { color: var(--ed-ink); font-weight: 500; }
#header.header:has(> .topbar) { border-radius: 26px; padding-top: 8px; }

/* Breadcrumb: a quiet line instead of a grey band. */
.master-breadcrumb { background: transparent; border: 0; padding: 4px 0 0; }
.master-breadcrumb .breadcrumb { margin: 0; padding: 6px 0; background: transparent; font-size: 13.5px; color: #6b6b66; }
.master-breadcrumb .breadcrumb a { color: #6b6b66; }

/* ---------- 4. Narrow screens: the menu drops below as a panel ---------- */
@media (max-width: 1199.98px) {
  #header.header { margin-inline: 12px; border-radius: 24px; padding: 8px 12px; top: 8px; }
  #header.header .navbar-brand { margin-inline-end: auto; }
  #header.header .navbar-brand .logo-img { height: 36px; }
  #header.header > .main-navbar-wrapper { order: 5; flex: 0 0 100%; }
  #header.header #mainNavbar { padding: 8px 0 4px; }
  #header.header #mainNavbar .navbar-nav { flex-direction: column; gap: 2px; }
  #header.header #mainNavbar .navbar-nav > li > a { display: block; border-radius: 12px; padding: 10px 12px; }
  #header.header #mainNavbar .dropdown-menu { position: static; float: none; margin: 2px 0 6px; box-shadow: none; border-radius: 12px; background: var(--ed-bg); }
  #header.header #mainNavbar form .input-group.search { width: 100%; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-bg); overflow: hidden; }
  #header.header #mainNavbar form .input-group.search .btn,
  #header.header #mainNavbar form .input-group.search .form-control { height: 40px; border: 0; background: transparent; box-shadow: none; }
}
@media (max-width: 1239.98px) and (min-width: 1200px) {
  #header.header { margin-inline: 16px; }
}

/* ---------- 5. Our pill buttons (used in the home page's main tile) ---------- */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 190px; height: 54px; padding: 0 28px;
  border: 1.5px solid var(--ed-ink); border-radius: 999px; background: #fff; color: var(--ed-ink);
  font-size: 16.5px; font-weight: 700; line-height: 1; text-decoration: none !important; outline: 0;
  transition: background-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.ed-btn:hover { background: var(--ed-lime); color: var(--ed-ink); }
.ed-btn--primary { background: var(--ed-ink); color: #fff; }
.ed-btn--primary:hover { background: #2b2b2b; color: #fff; }
.ed-btn:active { transform: translateY(1px); }
.ed-btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-ink); }
/* ---------- 5b. Home page: domain search block ----------
   Every selector starts with the form's id so it outranks both the stock rules and the
   generated rtl.css overrides (which carry an html[dir] prefix). */
#frmDomainHomepage .home-domain-search { background: transparent !important; }
#frmDomainHomepage .home-domain-search > .container { max-width: 980px; }
#frmDomainHomepage .home-domain-search > .container > div { padding: 34px 0 40px !important; max-width: 950px; margin: 0 auto; }
/* Second-level heading now that the page has an <h1> above it: a quiet label for the field. */
#frmDomainHomepage .home-domain-search h2 {
  margin: 0 0 14px; text-align: center;
  font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--ed-ink);
}

/* The field: one white rounded bar holding the input and both buttons. */
#frmDomainHomepage .home-domain-search .input-group-wrapper {
  margin: 0; padding: 7px;
  background: #fff; border: 1px solid var(--ed-line); border-radius: 999px;
  box-shadow: 0 16px 40px -26px rgba(17, 17, 17, 0.45);
  transition: border-color .15s ease, box-shadow .15s ease;
}
#frmDomainHomepage .home-domain-search .input-group-wrapper:hover { border-color: #d4d4ce; }
#frmDomainHomepage .home-domain-search .input-group-wrapper:focus-within {
  border-color: var(--ed-ink);
  box-shadow: 0 0 0 4px rgba(21, 21, 21, 0.08), 0 16px 40px -26px rgba(17, 17, 17, 0.45);
}
#frmDomainHomepage .home-domain-search .input-group { flex-wrap: nowrap; align-items: center; }
#frmDomainHomepage .home-domain-search .input-group-wrapper .form-control {
  height: 52px; padding: 0 20px; border: 0; background: transparent; box-shadow: none;
  font-size: 17px; color: var(--ed-ink);
}
#frmDomainHomepage .home-domain-search .input-group-wrapper .form-control::placeholder { color: #8a8a85; }
#frmDomainHomepage .home-domain-search .input-group-append { display: flex !important; align-items: center; gap: 6px; }
#frmDomainHomepage .home-domain-search .input-group-wrapper .btn,
#frmDomainHomepage .home-domain-search .row.d-sm-none .btn {
  height: 52px; margin: 0 !important; padding: 0 26px;
  border-radius: 999px !important; border: 1.5px solid var(--ed-ink);
  font-size: 16px; font-weight: 700; line-height: 1; box-shadow: none;
  transition: background-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
/* Search = primary (ink). Transfer = secondary (outline). */
#frmDomainHomepage .home-domain-search #btnDomainSearch, #frmDomainHomepage .home-domain-search #btnDomainSearch2 { background: var(--ed-ink) !important; border-color: var(--ed-ink) !important; color: #fff !important; }
#frmDomainHomepage .home-domain-search #btnDomainSearch:hover, #frmDomainHomepage .home-domain-search #btnDomainSearch2:hover { background: #2b2b2b !important; border-color: #2b2b2b !important; }
#frmDomainHomepage .home-domain-search #btnTransfer, #frmDomainHomepage .home-domain-search #btnTransfer2 { background: #fff !important; border-color: var(--ed-ink) !important; color: var(--ed-ink) !important; }
#frmDomainHomepage .home-domain-search #btnTransfer:hover, #frmDomainHomepage .home-domain-search #btnTransfer2:hover { background: var(--ed-lime) !important; border-color: var(--ed-ink) !important; color: var(--ed-ink) !important; }
#frmDomainHomepage .home-domain-search .btn:active { transform: translateY(1px); }
#frmDomainHomepage .home-domain-search .btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-ink); }

/* Prices: small chips in a centred row, with the "all prices" link as the last chip. */
#frmDomainHomepage .home-domain-search .tld-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin: 20px 0 0; padding: 0; float: none; font-size: 15px; font-weight: 500; color: var(--ed-ink);
}
#frmDomainHomepage .home-domain-search .tld-logos li {
  float: none; display: inline-flex; align-items: center; gap: 8px; direction: ltr;
  padding: 7px 14px; background: #fff; border: 1px solid var(--ed-line); border-radius: 999px;
}
#frmDomainHomepage .home-domain-search .tld-logos img { width: 46px; height: auto; display: block; }
#frmDomainHomepage .home-domain-search .btn-link.btn-sm {
  float: none !important; display: table; margin: 14px auto 0; padding: 6px 14px;
  border-radius: 999px; font-size: 14px; font-weight: 500; color: #5d5d5a; text-decoration: underline; text-underline-offset: 4px;
}
#frmDomainHomepage .home-domain-search .btn-link.btn-sm:hover { color: var(--ed-ink); background: #ecece6; text-decoration: none; }
#frmDomainHomepage .home-domain-search .btn-link.btn-sm:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--ed-ink); }

/* Phones: the buttons move below the field as two equal pills. */
@media (max-width: 575.98px) {
  #frmDomainHomepage .home-domain-search > .container > div { padding: 28px 4px 26px !important; }
  #frmDomainHomepage .home-domain-search .input-group-append { display: none !important; }
  #frmDomainHomepage .home-domain-search .row.d-sm-none { margin: 10px -5px 0; }
  #frmDomainHomepage .home-domain-search .row.d-sm-none > [class*="col-"] { padding: 0 5px; }
  #frmDomainHomepage .home-domain-search .row.d-sm-none .btn { width: 100%; }
  #frmDomainHomepage .home-domain-search .input-group-wrapper .form-control { height: 48px; font-size: 16px; }
}

/* The domain itself is typed left-to-right, but the Arabic hint should read right-to-left. */
html[dir="rtl"] #frmDomainHomepage .home-domain-search input[name="domain"]::placeholder { direction: rtl; text-align: right; }

/* ---------- 7. Page width on large screens ----------
   From 1440px the content column grows to 1170px, the same as the header bar and the product
   banners, so every edge on the page lines up (stock Bootstrap stops at 1110px). */
@media (min-width: 1440px) {
  #main-body > .container, .master-breadcrumb > .container, footer .container, #footer .container { max-width: 1200px; }
}

/* ---------- 8. Home page: the client directory ----------
   "Your account" is a colour mosaic: a large white tile for the dashboard and solid tiles in
   the logo colours for the account tasks. "Help" is a row of white tiles whose icons carry
   the same colours, closed by the main site's lime call-to-action band (.ed-services__cta,
   values from its hero-products.css). */
.ed-dir { margin: 0 0 72px; }
.ed-dir__group { margin: 56px 0 16px; text-align: start; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--ed-ink); }

.ed-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(168px, auto); gap: 16px; }
.ed-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 66px 24px 24px;  /* top padding keeps text clear of the icon */
  border-radius: 24px; color: #fff !important; text-decoration: none !important; outline: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ed-tile > i { position: absolute; top: 20px; inset-inline-start: 22px; font-size: 30px; line-height: 1; }
.ed-tile__name { font-size: 21px; font-weight: 700; line-height: 1.35; }
.ed-tile__desc { font-size: 14.5px; line-height: 1.7; opacity: .92; }
.ed-tile__stat {
  position: absolute; top: 18px; inset-inline-end: 18px;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 13px; line-height: 1.5; white-space: nowrap;
}
.ed-tile__stat b { font-size: 15px; font-weight: 700; }
.ed-tile__stat--due { background: var(--ed-lime); color: var(--ed-ink); }

/* The large white tile: the portal heading and the way into the account. */
.ed-tile--main { grid-column: span 2; grid-row: span 2; padding: 92px 34px 34px; background: #fff; color: var(--ed-ink) !important; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-tile--main > i { top: 30px; inset-inline-start: 34px; font-size: 44px; color: var(--ed-ink); }
.ed-tile__kicker { font-size: 16px; font-weight: 500; color: #6b6b66; }
.ed-tile--main .ed-tile__name { font-size: clamp(38px, 4vw, 52px); line-height: 1.15; color: var(--ed-ink); }
.ed-tile--main .ed-tile__desc { font-size: 16.5px; color: #5d5d5a; opacity: 1; }

/* Account tasks: solid logo colours (green and orange a shade deeper so white text reads well). */
.ed-tile--red { background: #e2364f; }
.ed-tile--green { background: #4e9a28; }
.ed-tile--orange { background: #ea7410; }
.ed-tile--purple { background: #5b3fa6; }

/* Help pages: white tiles, one row, icons in the logo colours. */
.ed-tile--white { background: #fff; color: var(--ed-ink) !important; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-tile--white .ed-tile__desc { color: #5d5d5a; opacity: 1; }
.ed-mosaic--help .ed-tile--white:nth-child(1) > i { color: #e2364f; }
.ed-mosaic--help .ed-tile--white:nth-child(2) > i { color: #4e9a28; }
.ed-mosaic--help .ed-tile--white:nth-child(3) > i { color: #ea7410; }
.ed-mosaic--help .ed-tile--white:nth-child(4) > i { color: #1e9fe0; }

/* States: hover lifts, pressed settles, keyboard focus rings the tile. */
.ed-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(17, 17, 17, .55); }
.ed-tile:active { transform: translateY(0); box-shadow: none; }
.ed-tile:focus-visible { box-shadow: 0 0 0 3px var(--ed-bg), 0 0 0 6px var(--ed-ink); }

.ed-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 16px; padding: 32px 36px; border-radius: 24px; background: var(--ed-lime); color: #2f3d0c;
}
.ed-cta p { margin: 0; text-align: start; }
.ed-cta__title { font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--ed-ink); }
.ed-cta__text { margin-top: 6px !important; font-size: 16px; line-height: 1.7; }
.ed-cta__btn {
  flex: 0 0 auto; padding: 14px 30px; border-radius: 999px; background: var(--ed-ink); color: #fff !important;
  font-size: 16px; font-weight: 700; line-height: 22px; text-decoration: none !important; outline: 0;
  transition: transform .2s ease, box-shadow .25s ease;
}
.ed-cta__btn:hover, .ed-cta__btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(21, 21, 21, .55); }
.ed-cta__btn:focus-visible { outline: 3px solid var(--ed-ink); outline-offset: 3px; }
.ed-cta__btn:active { transform: translateY(0); }

@media (max-width: 991.98px) {
  .ed-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-tile--main { grid-row: auto; min-height: 300px; }
}
@media (max-width: 767.98px) {
  .ed-dir { margin: 0 0 52px; }
  .ed-dir__group, .ed-dir--help > .ed-dir__group:first-child { margin-top: 40px; margin-bottom: 12px; font-size: 22px; }
  .ed-mosaic { grid-auto-rows: minmax(140px, auto); gap: 12px; }
  .ed-tile { padding: 54px 16px 18px; border-radius: 20px; }
  .ed-tile > i { top: 16px; inset-inline-start: 16px; font-size: 26px; }
  .ed-tile__name { font-size: 17.5px; }
  .ed-tile__desc { font-size: 13px; line-height: 1.6; }
  .ed-tile__stat { top: 14px; inset-inline-end: 12px; padding: 2px 9px; font-size: 12px; }
  .ed-tile--main { padding: 76px 20px 24px; min-height: 270px; }
  .ed-tile--main > i { top: 22px; inset-inline-start: 20px; font-size: 38px; }
  /* An odd tile left alone on the last row takes the full width instead of leaving a gap. */
  .ed-mosaic > .ed-tile:last-child:nth-child(even):not(.ed-tile--white) { grid-column: 1 / -1; }
  .ed-cta { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 12px; padding: 26px 22px 22px; border-radius: 20px; }
  .ed-cta__title { font-size: 25px; line-height: 1.35; }
  .ed-cta__text { font-size: 15.5px; line-height: 1.75; }
  .ed-cta__btn { text-align: center; padding: 15px 20px; border-radius: 16px; font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-tile, .ed-cta__btn { transition: none; }
  .ed-tile:hover, .ed-cta__btn:hover { transform: none; }
}

/* The directory is two blocks so the page can place something between them. */
.ed-dir--account { margin-bottom: 0; }
.ed-dir--help { margin-top: 0; }
.ed-dir--help > .ed-dir__group:first-child { margin-top: 56px; }

/* The domain search sits in the middle of the page, as a white band between "your account"
   and "help". Inside the band everything follows the page's alignment (start-aligned title in
   the section-title size, field across the full width, prices at the start and the "all
   prices" link at the end of one line) instead of the stock centred layout. */
.ed-mid { margin: 16px 0 0; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-mid #frmDomainHomepage .home-domain-search > .container { max-width: none; padding-inline: 36px; }
.ed-mid #frmDomainHomepage .home-domain-search > .container > div {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px;
  max-width: none; padding: 30px 0 28px !important;
}
.ed-mid #frmDomainHomepage .home-domain-search > .container > div::after { content: none; }
.ed-mid #frmDomainHomepage .home-domain-search h2 { flex: 0 0 100%; margin: 0 0 16px; text-align: start !important; font-size: 24px; font-weight: 700; line-height: 1.4; }
.ed-mid #frmDomainHomepage .home-domain-search .input-group-wrapper { flex: 0 0 100%; background: var(--ed-bg); box-shadow: none; }
.ed-mid #frmDomainHomepage .home-domain-search .row.d-sm-none { flex: 0 0 100%; }
.ed-mid #frmDomainHomepage .home-domain-search .tld-logos { flex: 1 1 auto; justify-content: flex-start; margin-top: 16px; }
.ed-mid #frmDomainHomepage .home-domain-search .tld-logos li { background: var(--ed-bg); }
.ed-mid #frmDomainHomepage .home-domain-search .btn-link.btn-sm { flex: 0 0 auto; display: inline-block; margin: 16px 0 0; }

/* The large white tile is the portal heading itself, so it is not a link: it holds the
   <h1>, the sign-in / sign-up buttons and the link to the main site. */
.ed-tile--gate { cursor: default; }
.ed-tile--gate:hover { transform: none; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-tile--gate h1.ed-tile__name { margin: 0; }
.ed-tile__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ed-tile__btns .ed-btn { min-width: 0; height: 50px; padding: 0 24px; font-size: 16px; }
@media (max-width: 767.98px) {
  .ed-tile__btns { flex-direction: column; align-items: stretch; } .ed-tile__btns .ed-btn { width: 100%; }
  .ed-mid { margin-top: 12px; border-radius: 20px; }
  .ed-mid #frmDomainHomepage .home-domain-search > .container { padding-inline: 16px; }
  .ed-mid #frmDomainHomepage .home-domain-search > .container > div { padding: 22px 0 20px !important; }
  .ed-mid #frmDomainHomepage .home-domain-search h2 { font-size: 22px; margin-bottom: 12px; }
  /* Prices on one line across the band, the "all prices" link on its own line under them. */
  .ed-mid #frmDomainHomepage .home-domain-search .tld-logos { flex: 0 0 100%; gap: 8px; margin-top: 14px; }
  .ed-mid #frmDomainHomepage .home-domain-search .tld-logos li { padding: 6px 10px; }
  .ed-mid #frmDomainHomepage .home-domain-search .btn-link.btn-sm { margin-top: 10px; padding-inline: 0; }
}
.ed-tile__more { margin-top: 14px; font-size: 14.5px; color: #6b6b66; }
.ed-tile__more a { color: var(--ed-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ed-lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- 8b. Home page only: top of the page ----------
   The home page shows no breadcrumb (it would only say "home"), and its first block starts a
   fixed 24px under the header bar. :has() scopes this to the page that contains our main tile. */
body:has(.ed-tile--gate) .master-breadcrumb { display: none; }
body:has(.ed-tile--gate) #main-body { padding-top: 14px; padding-bottom: 0; }
@media (max-width: 767.98px) {
  body:has(.ed-tile--gate) #main-body .ed-dir--help > .ed-dir__group:first-child { margin-top: 40px; }
}

/* ---------- 9. Store sections: one line pointing to the service's page on the main site ---------- */
.ed-on-www { flex: 0 0 100%; width: 100%; margin: 0 0 18px; padding: 0 15px; font-size: 15px; line-height: 1.7; color: #6b6b66; }
.ed-on-www a { color: var(--ed-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ed-lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ed-on-www a:hover { text-decoration-color: var(--ed-ink); }
.ed-on-www a:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- 10. Content pages (announcements, knowledgebase articles) ----------
   Images and embeds pasted into articles must never be wider than the text column: one
   oversized image used to push the whole page sideways. */
#main-body article img, #main-body .announcement img, #main-body .card-body img,
#main-body article iframe, #main-body article video, #main-body article table { max-width: 100%; height: auto; }
#main-body article { overflow-wrap: anywhere; }

/* ---------- 11. Announcements: timeline list and single post ---------- */
.ed-page-title { margin: 0 0 26px; text-align: start; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ed-ink); }

/* One row per announcement: the date large at the side in a logo colour, a dot on a vertical
   line, the announcement in a white card. The whole card is the link (its title link is
   stretched over it). */
.ed-timeline { position: relative; }
.ed-timeline__item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 34px; margin: 0; padding: 0 0 28px; }
.ed-timeline__item:nth-child(4n+1) { --tone: #e2364f; }
.ed-timeline__item:nth-child(4n+2) { --tone: #4e9a28; }
.ed-timeline__item:nth-child(4n+3) { --tone: #ea7410; }
.ed-timeline__item:nth-child(4n+4) { --tone: #5b3fa6; }
.ed-timeline__item::before { content: ""; position: absolute; top: 8px; bottom: -8px; inset-inline-start: 128px; width: 2px; background: var(--ed-line); }
.ed-timeline__item:last-child { padding-bottom: 0; }
.ed-timeline__item:last-child::before { bottom: 0; }
.ed-timeline__item::after { content: ""; position: absolute; top: 14px; inset-inline-start: 121px; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--ed-bg); background: var(--tone); }
.ed-timeline__date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.ed-timeline__date b { font-size: 46px; font-weight: 700; line-height: 1; color: var(--tone); }
.ed-timeline__date span { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--ed-ink); }
.ed-timeline__date small { font-size: 14px; color: #6b6b66; }
.ed-timeline__body {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ed-timeline__title { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.ed-timeline__title a { color: var(--ed-ink); text-decoration: none; outline: 0; }
.ed-timeline__title a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.ed-timeline__text { margin: 0; font-size: 15.5px; line-height: 1.85; color: #5d5d5a; }
.ed-timeline__actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.ed-timeline__more { padding: 8px 18px; border: 1.5px solid var(--ed-ink); border-radius: 999px; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ed-ink); transition: background-color .15s ease, color .15s ease; }
.ed-timeline__edit { position: relative; z-index: 1; font-size: 14px; color: #5d5d5a; }
.ed-timeline__body:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(17, 17, 17, .45); }
.ed-timeline__body:hover .ed-timeline__more, .ed-timeline__body:focus-within .ed-timeline__more { background: var(--ed-ink); color: #fff; }
.ed-timeline__title a:focus-visible::after { box-shadow: 0 0 0 3px var(--ed-bg), 0 0 0 6px var(--ed-ink); }
.ed-timeline + nav .pagination { margin-top: 28px; }

/* A single announcement. */
.ed-post { padding: 34px 36px; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-post--comments { margin-top: 16px; }
.ed-post__head { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--ed-line); }
.ed-post__date { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px; background: var(--ed-lime); color: var(--ed-ink); font-size: 14px; font-weight: 700; }
.ed-post__title { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--ed-ink); }
.ed-post__share { margin-top: 14px; }
.ed-post__body { font-size: 16.5px; line-height: 2; color: #2b2b2b; overflow-wrap: anywhere; }
.ed-post__body img, .ed-post__body iframe, .ed-post__body video, .ed-post__body table { max-width: 100%; height: auto; }
.ed-post__body img { border-radius: 14px; }
.ed-post__body h1, .ed-post__body h2, .ed-post__body h3 { margin: 1.4em 0 .5em; font-size: 22px; font-weight: 700; line-height: 1.5; }
.ed-post__body a { color: var(--ed-ink); text-decoration: underline; text-decoration-color: var(--ed-lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ed-post__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ed-post__nav .ed-btn { min-width: 0; height: 48px; padding: 0 24px; font-size: 15.5px; }

@media (max-width: 767.98px) {
  .ed-timeline__item { grid-template-columns: 64px minmax(0, 1fr); column-gap: 26px; padding-bottom: 20px; }
  .ed-timeline__item::before { inset-inline-start: 76px; }
  .ed-timeline__item::after { inset-inline-start: 69px; }
  .ed-timeline__date b { font-size: 32px; }
  .ed-timeline__date span { font-size: 13px; }
  .ed-timeline__date small { font-size: 12.5px; }
  .ed-timeline__body { padding: 18px 16px; border-radius: 20px; }
  .ed-timeline__title { font-size: 19px; }
  .ed-timeline__text { font-size: 14.5px; }
  .ed-post { padding: 22px 18px; border-radius: 20px; }
  .ed-post__body { font-size: 16px; line-height: 1.9; }
}
@media (prefers-reduced-motion: reduce) { .ed-timeline__body, .ed-timeline__more { transition: none; } .ed-timeline__body:hover { transform: none; } }


/* ---------- 12. Side panels (every inner page) ----------
   The stock side panels restyled as white rounded cards like the rest of the portal (George's
   choice, option A of 2026-11-28): the title gets an icon tile in a logo colour, the current
   page is an ink pill with a lime dot. CSS only, on the stock includes/sidebar.tpl markup.
   The panels are re-opened on desktop by a small script in el-abda3-design.php. */
#main-body .sidebar .card-sidebar,
#main-body .sidebar > .card.d-md-none {
  --tone: #e2364f; --tint: #fdecef;
  border: 0; border-radius: 24px; background: #fff !important; color: var(--ed-ink);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .05); padding: 10px; margin-bottom: 16px !important; overflow: hidden;
}
#main-body .sidebar .card-sidebar:nth-of-type(4n+2) { --tone: #ea7410; --tint: #fef1e4; }
#main-body .sidebar .card-sidebar:nth-of-type(4n+3) { --tone: #5b3fa6; --tint: #efebf8; }
#main-body .sidebar .card-sidebar:nth-of-type(4n+4) { --tone: #4e9a28; --tint: #edf6e8; }
#main-body .sidebar + .sidebar .card-sidebar, #main-body .sidebar-secondary .card-sidebar { --tone: #1e9fe0; --tint: #e6f4fc; }
#main-body .sidebar .card-header { display: block; padding: 10px 10px 12px; border: 0; background: transparent; color: var(--ed-ink); }
#main-body .sidebar .card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ed-ink); }
#main-body .sidebar .card-title > i:first-child {
  display: inline-flex !important; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 12px; background: var(--tint); color: var(--tone); font-size: 16px;
}
#main-body .sidebar .card-title .badge { margin-inline-start: auto; float: none !important; border-radius: 999px; background: #f2f2ec; color: var(--ed-ink); }
#main-body .sidebar .card-title .card-minimise {
  float: none !important; flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 11px; color: #6b6b66; background: #f2f2ec;
}
#main-body .sidebar .card-title .badge + .card-minimise { margin-inline-start: 0; }
#main-body .sidebar .card-minimise:hover { background: var(--ed-ink); color: #fff; }
#main-body .sidebar .card-sidebar > .collapsable-card-body > .card-body { padding: 4px 10px 10px; font-size: 14.5px; line-height: 1.8; }
#main-body .sidebar .card-footer { margin-top: 6px; padding: 12px 10px 4px; border-top: 1px solid var(--ed-line); background: transparent; }
#main-body .sidebar .list-group { gap: 2px; font-size: 15px; border-radius: 0; background: transparent; }
#main-body .sidebar .list-group-item {
  padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ed-ink);
  font-size: 15px; font-weight: 500; line-height: 1.5; transition: background-color .15s ease, color .15s ease;
}
#main-body .sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
#main-body .sidebar .sidebar-menu-item-icon-wrapper { margin: 0; width: 20px; text-align: center; color: #6b6b66; }
#main-body .sidebar .sidebar-menu-item-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#main-body .sidebar a.list-group-item:hover { background: #f2f2ec; color: var(--ed-ink); }
#main-body .sidebar a.list-group-item:focus-visible { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-ink); }
#main-body .sidebar .list-group-item.active { background: var(--ed-ink); color: #fff; font-weight: 700; }
#main-body .sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper { color: inherit; }
#main-body .sidebar .list-group-item.active .sidebar-menu-item-wrapper::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ed-lime); }
#main-body .sidebar .list-group-item.disabled { opacity: .5; }
#main-body .sidebar .list-group-item .badge { width: auto; min-width: 28px; padding: 4px 8px; border-radius: 999px; background: #f2f2ec; color: var(--ed-ink); }
#main-body .sidebar .list-group-item.active .badge { background: rgba(255, 255, 255, .16); color: #fff; }
/* Phones: the stock drop-down that replaces a panel. */
#main-body .sidebar > .card.d-md-none { padding: 14px; }
#main-body .sidebar > .card.d-md-none .card-header { padding: 0 0 10px; }
#main-body .sidebar > .card.d-md-none .card-body { padding: 0; }
#main-body .sidebar > .card.d-md-none select {
  height: 48px; padding: 0 16px; border: 1.5px solid var(--ed-line); border-radius: 999px; background-color: #fff; color: var(--ed-ink); font-size: 15.5px; font-weight: 700;
}
/* Store pages: the cart prints its own copy of the panels (other class names, stronger stock
   rules), so the same look is repeated for it here. */
#main-body #order-standard_cart .cart-sidebar .card-header { display: block; padding: 10px 10px 12px; border: 0; border-radius: 0; background: transparent; }
#main-body #order-standard_cart .cart-sidebar .panel-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px !important; font-weight: 700; line-height: 1.4; color: var(--ed-ink); }
#main-body #order-standard_cart .cart-sidebar .panel-title > i:first-child {
  display: inline-flex !important; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 12px; background: var(--tint); color: var(--tone); font-size: 15px; font-weight: 900;
}
#main-body #order-standard_cart .cart-sidebar .panel-title .card-minimise {
  float: none !important; flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #6b6b66; background: #f2f2ec;
}
#main-body #order-standard_cart .cart-sidebar .panel-title .card-minimise:hover { background: var(--ed-ink); color: #fff; }
#main-body #order-standard_cart .cart-sidebar .list-group { flex-direction: column; gap: 2px; border-radius: 0; font-size: 15px; }
#main-body #order-standard_cart .cart-sidebar .list-group-item { padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ed-ink); font-size: 15px; font-weight: 500; line-height: 1.5; }
#main-body #order-standard_cart .cart-sidebar a.list-group-item:hover { background: #f2f2ec; color: var(--ed-ink); }
#main-body #order-standard_cart .cart-sidebar a.list-group-item:focus-visible { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-ink); }
#main-body #order-standard_cart .cart-sidebar .list-group-item.active { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ed-ink); color: #fff; font-weight: 700; }
#main-body #order-standard_cart .cart-sidebar .list-group-item.active::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ed-lime); }
#main-body #order-standard_cart .cart-sidebar .card-body.collapsable-card-body { padding: 4px 10px 10px; }
#main-body #order-standard_cart .cart-sidebar .card-footer { background: transparent; }
#main-body #order-standard_cart .cart-sidebar .card-sidebar:nth-of-type(4n+1) { --tone: #1e9fe0; --tint: #e6f4fc; }
/* Store pages on phones: one drop-down card per panel. */
#main-body #order-standard_cart .sidebar-collapsed > .card { margin-bottom: 12px; padding: 14px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
#main-body #order-standard_cart .sidebar-collapsed .card-header { padding: 0 0 10px; border: 0; background: transparent; }
#main-body #order-standard_cart .sidebar-collapsed .panel-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ed-ink); }
#main-body #order-standard_cart .sidebar-collapsed .card-body { padding: 0; }
#main-body #order-standard_cart .sidebar-collapsed select { height: 48px; padding-block: 0; padding-inline: 16px 36px; border: 1.5px solid var(--ed-line); border-radius: 999px; background-color: #fff; color: var(--ed-ink); font-size: 15.5px; font-weight: 700; }

/* ---------- 13. Knowledgebase (front page, section page, article) ---------- */
.ed-kb .ed-page-title { margin-bottom: 6px; }
.ed-kb__lead { margin: 0 0 20px; font-size: 16.5px; line-height: 1.7; color: #5d5d5a; text-align: start; }
.ed-kb .ed-page-title + .ed-kb__search { margin-top: 20px; }
.ed-kb__search { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px; padding-inline-start: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05), inset 0 0 0 1.5px var(--ed-line); transition: box-shadow .15s ease; }
.ed-kb__search:focus-within { box-shadow: inset 0 0 0 2px var(--ed-ink); }
.ed-kb__search > i { color: #8a8a84; font-size: 17px; }
.ed-kb__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ed-ink); }
.ed-kb__search button { flex: none; height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ed-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.ed-kb__search button:hover, .ed-kb__search button:focus-visible { background: var(--ed-lime); color: var(--ed-ink); outline: 0; }
.ed-kb .ed-dir__group { margin-top: 40px; }
.ed-kb__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ed-kb__cat { --tone: #e2364f; --tint: #fdecef; position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 170px; padding: 22px; border-radius: 24px; background: #fff; color: var(--ed-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); transition: transform .2s ease, box-shadow .2s ease; }
.ed-kb__cat:nth-of-type(4n+2) { --tone: #4e9a28; --tint: #edf6e8; }
.ed-kb__cat:nth-of-type(4n+3) { --tone: #ea7410; --tint: #fef1e4; }
.ed-kb__cat:nth-of-type(4n+4) { --tone: #5b3fa6; --tint: #efebf8; }
.ed-kb__cat > i { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 15px; background: var(--tint); color: var(--tone); font-size: 21px; transition: background-color .2s ease, color .2s ease; }
.ed-kb__cat-name { margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.ed-kb__cat-desc { font-size: 14.5px; line-height: 1.7; color: #5d5d5a; }
.ed-kb__cat-n { position: absolute; top: 22px; inset-inline-end: 22px; padding: 3px 12px; border-radius: 999px; background: #f2f2ec; font-size: 13px; font-weight: 700; }
.ed-kb__cat:hover, .ed-kb__cat:focus-visible { color: var(--ed-ink); text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(17, 17, 17, .45), inset 0 -4px 0 var(--tone); outline: 0; }
.ed-kb__cat:hover > i, .ed-kb__cat:focus-visible > i { background: var(--tone); color: #fff; }
.ed-kb__edit { display: inline-block; margin: 10px 0 0; margin-inline-end: 14px; font-size: 13.5px; color: #5d5d5a; }
.ed-kb__list { margin: 0; padding: 6px 10px; list-style: none; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .05); }
.ed-kb__list li + li { border-top: 1px solid #ecece6; }
.ed-kb__list li:nth-child(4n+2) { --tone: #4e9a28; } .ed-kb__list li:nth-child(4n+3) { --tone: #ea7410; } .ed-kb__list li:nth-child(4n+4) { --tone: #5b3fa6; }
.ed-kb__list li > a:first-child { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; margin: 6px 0; padding: 14px; border-radius: 16px; color: var(--ed-ink); text-decoration: none; transition: background-color .15s ease; }
.ed-kb__list b { grid-row: span 2; font-size: 38px; font-weight: 700; line-height: 1; text-align: center; color: var(--tone, #e2364f); }
.ed-kb__list--plain li > a:first-child { grid-template-columns: 40px minmax(0, 1fr) auto; }
.ed-kb__list li > a > i:first-child { grid-row: span 2; font-size: 22px; text-align: center; color: var(--tone, #e2364f); }
.ed-kb__t { font-size: 18px; font-weight: 700; line-height: 1.5; }
.ed-kb__x { grid-column: 2; font-size: 14.5px; line-height: 1.7; color: #5d5d5a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-kb__n { grid-column: 3; grid-row: 1 / span 2; padding: 6px 14px; border-radius: 999px; background: #f2f2ec; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ed-kb__list li > a:first-child:hover { background: var(--ed-bg); color: var(--ed-ink); }
.ed-kb__list li > a:first-child:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--ed-ink); }
.ed-kb__list .ed-kb__edit { display: inline-block; margin: 0 14px 12px; }
.ed-kb__empty { padding: 22px 14px; color: #5d5d5a; }
.ed-kb > .ed-post__nav { margin-top: 24px; }
.ed-kb-art__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ed-kb-art__meta li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: #f2f2ec; font-size: 13.5px; font-weight: 700; color: var(--ed-ink); }
.ed-kb-art__meta a { color: inherit; text-decoration: none; }
.ed-kb-art__meta li:has(a):hover { background: var(--ed-ink); color: #fff; }
.ed-kb-art__vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ed-line); }
.ed-kb-art__vote p { flex: 1 1 200px; margin: 0; font-size: 17px; font-weight: 700; text-align: start; }
.ed-kb-art__vote .ed-btn { min-width: 0; height: 44px; padding: 0 22px; font-size: 15px; gap: 8px; }
@media (max-width: 767.98px) {
  .ed-kb__search { height: 56px; padding-inline-start: 16px; }
  .ed-kb__search button { height: 42px; padding: 0 18px; font-size: 15px; }
  .ed-kb__search input { font-size: 15.5px; }
  .ed-kb__list li > a:first-child, .ed-kb__list--plain li > a:first-child { grid-template-columns: 38px minmax(0, 1fr); }
  .ed-kb__list b { font-size: 28px; }
  .ed-kb__t { font-size: 16.5px; }
  .ed-kb__x { white-space: normal; }
  .ed-kb__n { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ed-kb__cat { transition: none; } .ed-kb__cat:hover { transform: none; } }
@media print { body:has(.ed-kb-art) :is(#header, .sidebar, .master-breadcrumb, footer, .ed-post__nav, .ed-kb-art__vote, .ed-kb-art__meta) { display: none !important; } }
