browser/extensions/newtab/css/activity-stream.css

Propagation: 55.57%

Back to Home

@charset "UTF-8";
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

*::-moz-focus-inner {
  border: 0;
}

body {
  margin: 0;
}

button,
input {
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --newtab-background-color: #F9F9FB;
  --newtab-background-color-secondary: #FFF;
  --newtab-text-primary-color: #15141a;
  --newtab-background-card: rgba(255, 255, 255, 0.8);
  --newtab-text-topic-label-color: #45278D;
  --newtab-text-secondary-text: #15141AB0;
  --newtab-contextual-text-primary-color: light-dark(var(--newtab-text-primary-color), #fbfbfe);
  --newtab-primary-action-background: light-dark(#0061e0, #00ddff);
  --newtab-primary-action-background-pocket: #008078;
  --newtab-text-secondary-color: color-mix(in srgb, var(--newtab-text-primary-color) 70%, transparent);
  --newtab-contextual-text-secondary-color: color-mix(in srgb, var(--newtab-contextual-text-primary-color) 70%, transparent);
  --newtab-weather-background-color: light-dark(rgba(255, 255, 255, 70%), rgba(35, 34, 43, 70%));
  --newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 90%, #000);
  --newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 80%, #000);
  --newtab-button-background: var(--button-background-color);
  --newtab-button-focus-background: var(--newtab-button-background);
  --newtab-button-focus-border: var(--focus-outline-color);
  --newtab-button-hover-background: var(--button-background-color-hover);
  --newtab-button-active-background: var(--button-background-color-active);
  --newtab-button-text: var(--button-text-color);
  --newtab-button-static-background: light-dark(#F0F0F4, #2B2A33);
  --newtab-button-static-focus-background: var(--newtab-button-static-background);
  --newtab-button-static-hover-background: light-dark(#E0E0E6, #52525E);
  --newtab-button-static-active-background: light-dark(#CFCFD8, #5B5B66);
  --newtab-element-secondary-color: color-mix(in srgb, currentColor 5%, transparent);
  --newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 12%, transparent);
  --newtab-element-secondary-active-color: color-mix(in srgb, currentColor 25%, transparent);
  --newtab-primary-element-hover-color: color-mix(in srgb, var(--newtab-primary-action-background) 90%, #000);
  --newtab-primary-element-hover-pocket-color: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 90%, #000);
  --newtab-primary-element-active-color: color-mix(in srgb, var(--newtab-primary-action-background) 80%, #000);
  --newtab-primary-element-text-color: #FFF;
  --newtab-primary-action-background-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent);
  --newtab-primary-action-background-pocket-dimmed: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 25%, transparent);
  --newtab-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #000);
  --newtab-wordmark-color: light-dark(#20123A, #fbfbfe);
  --newtab-status-success: #058B00;
  --newtab-status-error: #D70022;
  --newtab-inner-box-shadow-color: rgba(0, 0, 0, 0.1);
  --newtab-section-card-box-shadow-color: rgba(58, 57, 68, 20%);
  --newtab-overlay-color: color-mix(in srgb, var(--newtab-background-color) 85%, transparent);
  --border-radius-large: 16px;
  --newtab-textbox-focus-color: var(--newtab-primary-action-background);
  --newtab-textbox-focus-boxshadow: 0 0 0 1px var(--newtab-primary-action-background), 0 0 0 4px rgba(var(--newtab-primary-action-background), 0.3);
  --newtab-button-secondary-color: inherit;
}
:root[lwt-newtab-brighttext] {
  color-scheme: dark;
  --newtab-background-color: #2B2A33;
  --newtab-background-color-secondary: #42414d;
  --newtab-text-primary-color: #fbfbfe;
  --newtab-background-card: rgba(66, 65, 77, 0.8);
  --newtab-text-topic-label-color: #CB9EFF;
  --newtab-text-secondary-text: #FBFBFEB0;
  --newtab-contextual-text-primary-color: light-dark(#15141a, var(--newtab-text-primary-color));
  --newtab-primary-action-background-pocket: #00ddff;
  --newtab-primary-action-background-pocket-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent);
  --newtab-primary-element-hover-color: color-mix(in srgb, var(--newtab-primary-action-background) 55%, #FFF);
  --newtab-primary-element-hover-pocket-color: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 55%, #FFF);
  --newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 80%, #FFF);
  --newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 60%, #FFF);
  --newtab-section-card-box-shadow-color: rgba(0, 0, 0, 80%);
  --newtab-element-secondary-color: color-mix(in srgb, currentColor 10%, transparent);
  --newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 17%, transparent);
  --newtab-element-secondary-active-color: color-mix(in srgb, currentColor 30%, transparent);
  --newtab-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #FFF);
  --newtab-primary-element-text-color: #2b2a33;
  --newtab-status-success: #7C6;
}

@media (prefers-contrast) {
  :root {
    --newtab-text-secondary-color: var(--newtab-text-primary-color);
    --newtab-text-topic-label-color: #CB9EFF;
    color-scheme: light;
    --newtab-text-secondary-text: #000;
  }
}
@media (prefers-contrast) and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --newtab-text-secondary-text: #FFF;
  }
}
.icon {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 16px;
  -moz-context-properties: fill;
  display: inline-block;
  color: var(--icon-color);
  fill: currentColor;
  height: 16px;
  vertical-align: middle;
  width: 16px;
}
.icon.icon-spacer {
  margin-inline-end: 8px;
}
.icon.icon-small-spacer {
  margin-inline-end: 6px;
}
.icon.icon-button-style {
  fill: var(--newtab-text-secondary-color);
  border: 0;
}
.icon.icon-button-style:focus, .icon.icon-button-style:hover {
  fill: var(--newtab-text-primary-color);
}
.icon.icon-bookmark-added {
  background-image: url("chrome://browser/skin/bookmark.svg");
}
.icon.icon-bookmark-hollow {
  background-image: url("chrome://browser/skin/bookmark-hollow.svg");
}
.icon.icon-clear-input {
  background-image: url("chrome://global/skin/icons/close-fill.svg");
}
.icon.icon-delete {
  background-image: url("chrome://global/skin/icons/delete.svg");
}
.icon.icon-search {
  background-image: url("chrome://global/skin/icons/search-glass.svg");
}
.icon.icon-modal-delete {
  flex-shrink: 0;
  background-image: url("chrome://newtab/content/data/content/assets/glyph-modal-delete-20.svg");
  background-size: 32px;
  height: 32px;
  width: 32px;
}
.icon.icon-mail {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-mail-16.svg");
}
.icon.icon-dismiss {
  background-image: url("chrome://global/skin/icons/close.svg");
}
.icon.icon-info {
  background-image: url("chrome://global/skin/icons/info.svg");
}
.icon.icon-info-critical {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-info-critical-16.svg");
}
.icon.icon-info-warning {
  background-image: url("chrome://global/skin/icons/warning.svg");
  fill: var(--icon-color-warning);
  -moz-context-properties: fill;
}
.icon.icon-help {
  background-image: url("chrome://global/skin/icons/help.svg");
}
.icon.icon-new-window {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-newWindow-16.svg");
}
.icon.icon-new-window:dir(rtl) {
  transform: scaleX(-1);
}
.icon.icon-new-window-private {
  background-image: url("chrome://browser/skin/privateBrowsing.svg");
}
.icon.icon-settings {
  background-image: url("chrome://global/skin/icons/settings.svg");
}
.icon.icon-pin {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-pin-16.svg");
}
.icon.icon-pin:dir(rtl) {
  transform: scaleX(-1);
}
.icon.icon-unpin {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-unpin-16.svg");
}
.icon.icon-unpin:dir(rtl) {
  transform: scaleX(-1);
}
.icon.icon-edit {
  background-image: url("chrome://global/skin/icons/edit.svg");
}
.icon.icon-pocket {
  background-image: url("chrome://global/skin/icons/pocket.svg");
}
.icon.icon-pocket-save {
  background-image: url("chrome://global/skin/icons/pocket.svg");
  fill: #FFF;
}
.icon.icon-pocket-delete {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-pocket-delete-16.svg");
}
.icon.icon-pocket-archive {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-pocket-archive-16.svg");
}
.icon.icon-history-item {
  background-image: url("chrome://browser/skin/history.svg");
}
.icon.icon-newsfeed {
  background-image: url("chrome://global/skin/icons/newsfeed.svg");
}
.icon.icon-trending {
  background-image: url("chrome://browser/skin/trending.svg");
  transform: translateY(2px);
}
.icon.icon-now {
  background-image: url("chrome://browser/skin/history.svg");
}
.icon.icon-topsites {
  background-image: url("chrome://browser/skin/topsites.svg");
}
.icon.icon-pin-small {
  background-image: url("chrome://browser/skin/pin-12.svg");
  background-size: 12px;
  height: 12px;
  width: 12px;
}
.icon.icon-pin-small:dir(rtl) {
  transform: scaleX(-1);
}
.icon.icon-check {
  background-image: url("chrome://global/skin/icons/check.svg");
}
.icon.icon-check-filled {
  background-image: url("chrome://global/skin/icons/check-filled.svg");
}
.icon.icon-download {
  background-image: url("chrome://browser/skin/downloads/downloads.svg");
}
.icon.icon-copy {
  background-image: url("chrome://global/skin/icons/edit-copy.svg");
}
.icon.icon-open-file {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-open-file-16.svg");
}
.icon.icon-webextension {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-webextension-16.svg");
}
.icon.icon-weather {
  background-image: url("chrome://browser/skin/weather/sunny.svg");
}
.icon.icon-highlights {
  background-image: url("chrome://global/skin/icons/highlights.svg");
}
.icon.icon-arrowhead-down {
  background-image: url("chrome://global/skin/icons/arrow-down.svg");
}
.icon.icon-arrowhead-down-small {
  background-image: url("chrome://global/skin/icons/arrow-down-12.svg");
  background-size: 12px;
  height: 12px;
  width: 12px;
}
.icon.icon-arrowhead-forward-small {
  background-image: url("chrome://global/skin/icons/arrow-right-12.svg");
  background-size: 12px;
  height: 12px;
  width: 12px;
}
.icon.icon-arrowhead-forward-small:dir(rtl) {
  background-image: url("chrome://global/skin/icons/arrow-left-12.svg");
}
.icon.icon-arrowhead-up {
  background-image: url("chrome://global/skin/icons/arrow-up.svg");
}
.icon.icon-add {
  background-image: url("chrome://global/skin/icons/plus.svg");
}
.icon.icon-add-circle-fill {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-add-circle-fill-16.svg");
}
.icon.icon-minimize {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-minimize-16.svg");
}
.icon.icon-maximize {
  background-image: url("chrome://newtab/content/data/content/assets/glyph-maximize-16.svg");
}
.icon.icon-arrow {
  background-image: url("chrome://global/skin/icons/arrow-right-12.svg");
}
.icon.icon-thumbs-up {
  background-image: url("chrome://global/skin/icons/thumbs-up-20.svg");
}
.icon.icon-thumbs-down {
  background-image: url("chrome://global/skin/icons/thumbs-down-20.svg");
}
.icon.icon-device-phone {
  background-image: url("chrome://browser/skin/device-phone.svg");
}

:root {
  font-size: var(--font-size-root);
  height: 100%;
}
:root[lwt-newtab-brighttext] {
  -moz-osx-font-smoothing: grayscale;
}

body,
#root {
  min-height: 100vh;
}

#root {
  position: relative;
}

body {
  background-color: var(--newtab-background-color);
  font-family: system-ui;
  font-size: var(--font-size-root);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-image: var(--newtab-wallpaper, ""), linear-gradient(to right, var(--newtab-wallpaper-color, ""), var(--newtab-wallpaper-color, ""));
}

.no-scroll {
  overflow: hidden;
}

h1,
h2 {
  font-weight: normal;
}

.inner-border {
  border: 1px solid var(--newtab-border-color);
  border-radius: 3px;
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.show-on-init {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
.show-on-init.on {
  animation: fadeIn 0.2s;
  opacity: 1;
}

.actions {
  border-top: 1px solid var(--newtab-border-color);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  padding: 15px 25px 0;
}

.button,
.actions button {
  background-color: var(--newtab-button-secondary-color);
  border: 1px solid var(--newtab-border-color);
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  margin-bottom: 15px;
  padding: 10px 30px;
  white-space: nowrap;
}
.button:hover:not(.dismiss), .button:focus:not(.dismiss),
.actions button:hover:not(.dismiss),
.actions button:focus:not(.dismiss) {
  box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
  transition: box-shadow 150ms;
}
.button.dismiss,
.actions button.dismiss {
  background-color: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
}
.button.primary, .button.done,
.actions button.primary,
.actions button.done {
  background-color: var(--newtab-primary-action-background);
  border: solid 1px var(--newtab-primary-action-background);
  color: var(--newtab-primary-element-text-color);
  margin-inline-start: auto;
}

input[type=text], input[type=search] {
  border-radius: 3px;
}

.clamp {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  word-break: break-word;
}

.a11y-link-button {
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: unset;
  color: var(--newtab-primary-action-background);
}
.a11y-link-button:hover, .a11y-link-button:focus {
  text-decoration: underline;
}

.outer-wrapper {
  color: var(--newtab-text-primary-color);
  display: flex;
  flex-grow: 1;
  min-height: 100vh;
  padding: 30px 32px 32px;
}
.outer-wrapper.ds-outer-wrapper-breakpoint-override {
  padding: 30px 0 32px;
}
@media (min-width: 610px) {
  .outer-wrapper.ds-outer-wrapper-breakpoint-override {
    padding: 30px 32px 32px;
  }
}
.outer-wrapper.only-search {
  display: block;
  padding-top: 134px;
}
.outer-wrapper a {
  color: var(--newtab-primary-action-background);
}

main {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 274px;
  padding: 0;
}
main.newtab-main {
  min-width: min-content;
}
main .vertical-center-wrapper {
  margin: auto 0;
}
main section {
  margin-bottom: 20px;
  position: relative;
}
.hide-main main {
  visibility: hidden;
}
@media (min-width: 610px) {
  main {
    width: 530px;
  }
}
@media (min-width: 866px) {
  main {
    width: 786px;
  }
}
@media (min-width: 1122px) {
  main {
    width: 1042px;
  }
}

.ds-outer-wrapper-search-alignment main {
  margin: 0 auto;
}

.ds-outer-wrapper-breakpoint-override main {
  width: 266px;
  padding-bottom: 0;
}
@media (min-width: 610px) {
  .ds-outer-wrapper-breakpoint-override main {
    width: 510px;
  }
}
@media (min-width: 866px) {
  .ds-outer-wrapper-breakpoint-override main {
    width: 746px;
  }
}
@media (min-width: 1122px) {
  .ds-outer-wrapper-breakpoint-override main {
    width: 986px;
  }
}

.layout-variant-a .ds-outer-wrapper-breakpoint-override main,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main {
  width: auto;
}
.layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card {
  width: 296px;
}
.layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid),
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid) {
  grid-gap: var(--space-large);
}
.layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid).empty,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid).empty {
  grid-template-columns: auto;
}
.layout-variant-a .ds-outer-wrapper-breakpoint-override main .body-wrapper,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .body-wrapper {
  width: 346px;
  margin: 0 auto;
}
@media (min-width: 610px) {
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid),
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid) {
    grid-template-columns: repeat(1, 1fr);
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .body-wrapper,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 346px;
  }
}
@media (min-width: 724px) {
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid),
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid) {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .body-wrapper,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 659px;
  }
}
@media (min-width: 1122px) {
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid),
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid) {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: var(--space-xlarge);
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .body-wrapper,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 989px;
  }
}
@media (min-width: 1698px) {
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .body-wrapper,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    display: flex;
    flex-direction: column;
    width: 1311px;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-highlights .card-outer,
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-highlights .card-outer {
    min-width: 216px;
  }
  .layout-variant-a .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid),
.layout-variant-b .ds-outer-wrapper-breakpoint-override main .ds-card-grid:not(.ds-section-grid) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.base-content-fallback {
  height: 100vh;
}

.body-wrapper .section-title, .body-wrapper .sections-list .section:last-of-type, .body-wrapper .topics {
  opacity: 0;
}
.body-wrapper.on .section-title, .body-wrapper.on .sections-list .section:last-of-type, .body-wrapper.on .topics {
  opacity: 1;
}

.non-collapsible-section {
  padding: 0 25px;
}
.layout-variant-a .non-collapsible-section, .layout-variant-b .non-collapsible-section {
  padding: 0;
}

.prefs-button button {
  background-color: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  inset-inline-end: 15px;
  padding: 15px;
  position: fixed;
  top: 15px;
  z-index: 1000;
}
.prefs-button button:hover, .prefs-button button:focus {
  background-color: var(--newtab-element-hover-color);
}
.prefs-button button:active {
  background-color: var(--newtab-element-active-color);
}

.wallpaper-attribution {
  padding: 0 25px;
  font-size: var(--font-size-small);
  color: var(--newtab-contextual-text-primary-color);
}
@media (min-width: 866px) {
  .no-search .no-sections .wallpaper-attribution, .only-search .wallpaper-attribution, .only-topsites .wallpaper-attribution {
    position: absolute;
    inset-block-end: var(--space-large);
    inset-inline-start: 0;
  }
}
.lightWallpaper .wallpaper-attribution {
  color-scheme: light;
}
.darkWallpaper .wallpaper-attribution {
  color-scheme: dark;
}
.wallpaper-attribution.theme-light {
  display: inline-block;
}
[lwt-newtab-brighttext] .wallpaper-attribution.theme-light {
  display: none;
}
.wallpaper-attribution.theme-dark {
  display: none;
}
[lwt-newtab-brighttext] .wallpaper-attribution.theme-dark {
  display: inline-block;
}
.wallpaper-attribution a {
  color: inherit;
}
.wallpaper-attribution a:hover {
  text-decoration: none;
}

.as-error-fallback {
  align-items: center;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--newtab-inner-box-shadow-color);
  color: var(--newtab-text-secondary-color);
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-small);
  justify-content: center;
  justify-items: center;
}
.as-error-fallback.borderless-error {
  box-shadow: none;
}
.as-error-fallback a {
  color: var(--newtab-text-secondary-color);
  text-decoration: underline;
}

.logo-and-wordmark-wrapper {
  margin-block: 0;
}

.logo-and-wordmark {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-block-end: 48px;
}
.layout-variant-a .logo-and-wordmark, .layout-variant-b .logo-and-wordmark {
  margin-block-end: 32px;
}
.layout-variant-a.no-recommended-stories .logo-and-wordmark, .layout-variant-b.no-recommended-stories .logo-and-wordmark {
  margin-block-end: 40px;
}
.logo-and-wordmark .logo {
  display: inline-block;
  height: 64px;
  width: 64px;
  background: image-set(url("chrome://branding/content/about-logo.png"), url("chrome://branding/content/about-logo@2x.png") 2x) no-repeat center;
  background-size: 64px;
}
.logo-and-wordmark .wordmark {
  background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
  background-size: 105px;
  -moz-context-properties: fill;
  display: inline-block;
  fill: var(--newtab-wordmark-color);
  height: 64px;
  margin-inline-start: 16px;
  width: 105px;
}
.lightWallpaper .logo-and-wordmark .wordmark {
  color-scheme: light;
}
.darkWallpaper .logo-and-wordmark .wordmark {
  color-scheme: dark;
}
@media (max-width: 609px) {
  .logo-and-wordmark .logo {
    background-size: 64px;
    height: 64px;
    width: 64px;
  }
  .logo-and-wordmark .wordmark {
    background-size: 100px;
    height: 64px;
    width: 100px;
    margin-inline-start: 12px;
  }
}

/* stylelint-disable max-nesting-depth */
.top-sites-list {
  list-style: none;
  margin: 0 -16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.layout-variant-a .top-sites-list, .layout-variant-b .top-sites-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: var(--space-xlarge);
}
@media (min-width: 724px) {
  .layout-variant-a .top-sites-list, .layout-variant-b .top-sites-list {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (min-width: 1122px) {
  .layout-variant-a .top-sites-list, .layout-variant-b .top-sites-list {
    grid-template-columns: repeat(8, 1fr);
  }
}
.shortcuts-refresh .top-sites-list {
  row-gap: var(--space-small);
}
.top-sites-list a {
  text-decoration: none;
}
.top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  background: var(--newtab-element-hover-color);
}
.lightWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover), .darkWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  background-color: var(--newtab-weather-background-color);
}
@media (prefers-contrast) {
  .lightWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover), .darkWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
    background-color: var(--background-color-box);
  }
}
@media (max-width: 610px) {
  .top-sites-list > :nth-child(2n+1) .context-menu {
    margin-inline-end: auto;
    margin-inline-start: auto;
    inset-inline-end: auto;
    inset-inline-start: -32px;
  }
  .top-sites-list > :nth-child(2n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 610px) and (max-width: 866px) {
  .top-sites-list :nth-child(4n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 610px) and (max-width: 802px) {
  .top-sites-list :nth-child(4n+3) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 866px) and (max-width: 1250px) {
  .top-sites-list :nth-child(6n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 866px) and (max-width: 1058px) {
  .top-sites-list :nth-child(6n+5) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 1122px) and (max-width: 1506px) {
  .top-sites-list :nth-child(8n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 1122px) and (max-width: 1314px) {
  .top-sites-list :nth-child(8n+7) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
.top-sites-list .hide-for-narrow {
  display: none;
}
@media (min-width: 610px) {
  .top-sites-list .hide-for-narrow {
    display: inline-block;
  }
  .layout-variant-a .top-sites-list .hide-for-narrow, .layout-variant-b .top-sites-list .hide-for-narrow {
    display: none;
  }
}
@media (min-width: 866px) {
  .top-sites-list .hide-for-narrow {
    display: none;
  }
}
@media (min-width: 1122px) {
  .top-sites-list .hide-for-narrow {
    display: inline-block;
  }
  .layout-variant-a .top-sites-list .hide-for-narrow, .layout-variant-b .top-sites-list .hide-for-narrow {
    display: inline-block;
  }
}

.top-site-outer {
  width: 120px;
  border-radius: 8px;
  display: inline-block;
  margin-block-end: 16px;
}
.layout-variant-a .top-site-outer, .layout-variant-b .top-site-outer {
  width: calc(var(--size-item-large) * 3);
}
.layout-variant-a .top-site-outer .tile, .layout-variant-b .top-site-outer .tile {
  width: calc(var(--size-item-large) * 2);
  height: calc(var(--size-item-large) * 2);
}
.layout-variant-a .top-site-outer .tile .icon-wrapper, .layout-variant-b .top-site-outer .tile .icon-wrapper {
  width: var(--size-item-large);
  height: var(--size-item-large);
}
.top-site-outer .top-site-inner {
  position: relative;
}
.top-site-outer .top-site-inner > a {
  padding: 20px 16px 4px;
  color: inherit;
  display: block;
  outline: none;
}
.top-site-outer:is(:hover) .context-menu-button {
  opacity: 1;
  transition: opacity 200ms;
}
.lightWallpaper .top-site-outer:not(:hover, :active, .active) {
  color-scheme: light;
}
.darkWallpaper .top-site-outer:not(:hover, :active, .active) {
  color-scheme: dark;
}
.top-site-outer.active .context-menu-button {
  opacity: 1;
  background-color: var(--newtab-button-active-background);
}
.top-site-outer .context-menu-button {
  background-image: url("chrome://global/skin/icons/more.svg");
  background-color: var(--newtab-button-background);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  fill: var(--newtab-button-text);
  -moz-context-properties: fill;
  height: 20px;
  width: 20px;
  inset-inline-end: 3px;
  opacity: 0;
  position: absolute;
  top: -20px;
}
.lightWallpaper .top-site-outer .context-menu-button {
  color-scheme: light;
}
.darkWallpaper .top-site-outer .context-menu-button {
  color-scheme: dark;
}
.top-site-outer .context-menu-button:hover {
  background-color: var(--newtab-button-hover-background);
}
.top-site-outer .context-menu-button:hover:active {
  background-color: var(--newtab-button-active-background);
}
.top-site-outer .context-menu-button:focus-visible {
  background-color: var(--newtab-button-focus-background);
  border-color: var(--newtab-button-focus-border);
  opacity: 1;
}
.top-site-outer .tile {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: var(--newtab-background-color-secondary);
  justify-content: center;
  margin: 0 auto;
  height: 80px;
  width: 80px;
  cursor: pointer;
  position: relative;
  align-items: center;
  color: var(--newtab-contextual-text-secondary-color);
  display: flex;
  font-size: var(--font-size-xxlarge);
  text-transform: uppercase;
}
.top-site-outer .tile .icon-wrapper {
  border-radius: 4px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-site-outer .tile .icon-wrapper.letter-fallback::before {
  content: attr(data-fallback);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: var(--font-weight-bold);
  transform: rotate(-10deg);
  top: 6px;
  position: relative;
  color: #FFF;
}
.top-site-outer .top-site-icon {
  background-color: var(--newtab-background-color-secondary);
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 4px;
  position: absolute;
}
.top-site-outer .rich-icon {
  background-size: cover;
  height: 100%;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
}
.top-site-outer .default-icon,
.top-site-outer .search-topsite {
  background-size: 32px;
  height: 32px;
  width: 32px;
  align-items: center;
  display: flex;
  font-size: var(--font-size-xlarge);
  justify-content: center;
}
.top-site-outer .default-icon[data-fallback]::before,
.top-site-outer .search-topsite[data-fallback]::before {
  content: attr(data-fallback);
}
.top-site-outer .search-topsite {
  background-image: url("chrome://global/skin/icons/search-glass.svg");
  background-size: 16px;
  background-color: var(--newtab-primary-action-background);
  border-radius: 32px;
  -moz-context-properties: fill;
  fill: var(--newtab-primary-element-text-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition-duration: 150ms;
  transition-property: background-size, bottom, inset-inline-end, height, width;
  height: 32px;
  width: 32px;
  bottom: -6px;
  inset-inline-end: -6px;
}
.top-site-outer.placeholder .tile {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: default;
}
.top-site-outer.placeholder.add-button .tile {
  background-color: var(--button-background-color);
}
.top-site-outer.placeholder.add-button .tile .icon-wrapper {
  background-image: url("chrome://global/skin/icons/plus-20.svg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 20px;
  width: 20px;
  fill: var(--icon-color);
  -moz-context-properties: fill;
}
.top-site-outer .title {
  color: var(--newtab-contextual-text-primary-color);
  padding-top: 8px;
  font: caption;
  text-align: center;
  position: relative;
}
.top-site-outer .title .icon {
  margin-inline-end: 2px;
  fill: currentColor;
}
.top-site-outer .title .sponsored-label {
  color: var(--newtab-contextual-text-secondary-color);
  font-size: var(--font-size-small);
}
.top-site-outer .title:not(.sponsored) .sponsored-label {
  display: none;
}
.top-site-outer.search-shortcut .rich-icon {
  background-color: #FFF;
}
.top-site-outer .edit-button {
  background-image: url("chrome://global/skin/icons/edit.svg");
}
.top-site-outer.dragged .tile *, .top-site-outer.dragged .tile::before {
  display: none;
}
.top-site-outer.dragged .title {
  visibility: hidden;
}
.shortcuts-refresh .top-site-outer {
  width: 120px;
  margin-block-end: 0;
  border-radius: var(--border-radius-large);
}
.lightWallpaper .shortcuts-refresh .top-site-outer:hover .context-menu-button {
  color-scheme: light;
}
.darkWallpaper .shortcuts-refresh .top-site-outer:hover .context-menu-button {
  color-scheme: dark;
}
.shortcuts-refresh .top-site-outer:hover .tile {
  background-color: var(--newtab-background-color-secondary);
}
.shortcuts-refresh .top-site-outer .top-site-button {
  padding: 20px 16px 6px;
}
.shortcuts-refresh .top-site-outer .top-site-button:focus + div .context-menu-button {
  opacity: 1;
}
.shortcuts-refresh .top-site-outer .tile {
  background: var(--newtab-background-card);
  border-radius: var(--border-radius-large);
}
.shortcuts-refresh .top-site-outer .tile .icon-wrapper {
  width: 40px;
  height: 40px;
}
.shortcuts-refresh .top-site-outer .tile .top-site-icon {
  background-color: transparent;
  border-radius: var(--border-radius-medium);
}
.shortcuts-refresh .top-site-outer .tile .icon-wrapper.letter-fallback {
  border-radius: var(--border-radius-circle);
}
.shortcuts-refresh .top-site-outer .tile .icon-wrapper.letter-fallback::before {
  transform: none;
  position: static;
  font-size: var(--font-size-xlarge);
}
.shortcuts-refresh .top-site-outer .title .search-topsite {
  margin-inline-end: 2px;
  fill: currentColor;
  background-size: 12px;
  height: 12px;
  width: 12px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  position: static;
  display: inline-block;
  color: var(--icon-color);
  box-shadow: none;
}
.shortcuts-refresh .top-site-outer .context-menu-button {
  inset-inline-end: 0;
  inset-block-start: 12px;
  height: 24px;
  width: 24px;
  background-color: unset;
}
.shortcuts-refresh .top-site-outer .context-menu-button:hover {
  background-color: var(--newtab-button-hover-background);
}
.shortcuts-refresh .top-site-outer .context-menu {
  inset-block-start: 40px;
}
.shortcuts-refresh .top-site-outer .icon-pin-small {
  color-scheme: light;
  position: absolute;
  inset-block-start: 0.188rem;
  inset-inline-start: 0.188rem;
}
[lwt-newtab-brighttext] .shortcuts-refresh .top-site-outer .icon-pin-small {
  color-scheme: dark;
}

.shortcuts-refresh .discovery-stream.ds-layout.ds-layout-topsites {
  display: flex;
  justify-content: center;
}
.shortcuts-refresh .discovery-stream.ds-layout.ds-layout-topsites .top-sites {
  padding-block-start: 0;
}
.shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  background: color-mix(in srgb, var(--button-text-color-hover) 14%, transparent);
}
.lightWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  color-scheme: light;
}
.darkWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  color-scheme: dark;
}
.shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) .tile {
  box-shadow: 0 2px 8px 0 var(--newtab-section-card-box-shadow-color);
}
.lightWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover), .darkWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
  background: color-mix(in srgb, var(--button-text-color-hover) 14%, transparent);
}
@media (prefers-contrast) {
  .lightWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover), .darkWallpaper .shortcuts-refresh .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) {
    background-color: var(--background-color-box);
  }
}

.edit-topsites-wrapper .top-site-inner > .top-site-button > .tile {
  border: 1px solid var(--newtab-border-color);
}
.edit-topsites-wrapper .modal {
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
  left: 0;
  margin: 0 auto;
  max-height: calc(100% - 40px);
  position: fixed;
  right: 0;
  top: 40px;
  width: 274px;
}
@media (min-width: 610px) {
  .edit-topsites-wrapper .modal {
    width: 530px;
  }
}
@media (min-width: 866px) {
  .edit-topsites-wrapper .modal {
    width: 786px;
  }
}

.topsite-form .section-title {
  font-size: inherit;
  margin: 0 0 16px;
}
.topsite-form .form-input-container {
  max-width: 492px;
  margin: 0 auto;
  padding: 32px;
}
.topsite-form .form-input-container .top-site-outer {
  pointer-events: none;
}
.topsite-form .search-shortcuts-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
}
.topsite-form .search-shortcuts-container > div {
  margin-inline-end: -39px;
}
.topsite-form .search-shortcuts-container .top-site-outer {
  margin-inline-start: 0;
  margin-inline-end: 39px;
}
.topsite-form .top-site-outer {
  padding: 0;
  margin: 24px 0 0;
  margin-inline-start: 32px;
}
.topsite-form .fields-and-preview {
  display: flex;
}
.topsite-form label {
  font-size: var(--font-size-large);
}
.topsite-form .form-wrapper {
  width: 100%;
}
.topsite-form .form-wrapper .field {
  position: relative;
}
.topsite-form .form-wrapper .field .icon-clear-input {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  inset-inline-end: 8px;
}
.topsite-form .form-wrapper .url input:dir(ltr) {
  padding-right: 32px;
}
.topsite-form .form-wrapper .url input:dir(rtl) {
  padding-left: 32px;
}
.topsite-form .form-wrapper .url input:dir(rtl):not(:placeholder-shown) {
  direction: ltr;
  text-align: right;
}
.topsite-form .form-wrapper .enable-custom-image-input {
  display: inline-block;
  font-size: var(--font-size-small);
  margin-top: 4px;
  cursor: pointer;
}
.topsite-form .form-wrapper .custom-image-input-container {
  margin-top: 4px;
}
.topsite-form .form-wrapper .custom-image-input-container .loading-container {
  width: 16px;
  height: 16px;
  overflow: hidden;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  inset-inline-end: 8px;
}
.topsite-form .form-wrapper .custom-image-input-container .loading-animation {
  width: 960px;
  height: 16px;
  -moz-context-properties: fill;
  fill: var(--newtab-primary-action-background);
  background-image: url("chrome://browser/skin/tabbrowser/loading.svg");
  animation: tab-throbber-animation 1.05s steps(60) infinite;
}
@keyframes tab-throbber-animation {
  100% {
    transform: translateX(-960px);
  }
}
@keyframes tab-throbber-animation-rtl {
  100% {
    transform: translateX(960px);
  }
}
.topsite-form .form-wrapper .custom-image-input-container .loading-animation:dir(rtl) {
  animation-name: tab-throbber-animation-rtl;
}
.topsite-form .form-wrapper input[type=text] {
  background-color: var(--newtab-background-color-secondary);
  border: 1px solid var(--newtab-border-color);
  margin: 8px 0;
  padding: 0 8px;
  height: 32px;
  width: 100%;
  font-size: inherit;
}
.topsite-form .form-wrapper input[type=text][disabled] {
  border: 1px solid var(--newtab-border-color);
  box-shadow: none;
  opacity: 0.4;
}
.topsite-form .form-wrapper .invalid input[type=text] {
  border: 1px solid var(--newtab-status-error);
  box-shadow: 0 0 0 1px var(--newtab-status-error), 0 0 0 4px rgba(var(--newtab-status-error), 0.3);
}
.topsite-form .form-wrapper .error-tooltip {
  animation: fade-up-tt 450ms;
  background: var(--newtab-status-error);
  border-radius: 2px;
  color: #FFF;
  inset-inline-start: 3px;
  padding: 5px 12px;
  position: absolute;
  top: 44px;
  z-index: 1;
}
.topsite-form .form-wrapper .error-tooltip::before {
  background: var(--newtab-status-error);
  bottom: -8px;
  content: ".";
  height: 16px;
  inset-inline-start: 12px;
  position: absolute;
  text-indent: -999px;
  top: -7px;
  transform: rotate(45deg);
  white-space: nowrap;
  width: 16px;
  z-index: -1;
}
.topsite-form .actions {
  justify-content: flex-end;
}
.topsite-form .actions button {
  margin-inline-start: 10px;
  margin-inline-end: 0;
}
@media (max-width: 610px) {
  .topsite-form .fields-and-preview {
    flex-direction: column;
  }
  .topsite-form .fields-and-preview .top-site-outer {
    margin-inline-start: 0;
  }
}
.topsite-form .title {
  user-select: none;
}
.topsite-form [type=checkbox]:not(:checked),
.topsite-form [type=checkbox]:checked {
  inset-inline-start: -9999px;
  position: absolute;
}
.topsite-form [type=checkbox]:not(:checked) + label,
.topsite-form [type=checkbox]:checked + label {
  cursor: pointer;
  display: block;
  position: relative;
}
.topsite-form [type=checkbox]:not(:checked) + label::before,
.topsite-form [type=checkbox]:checked + label::before {
  background: var(--newtab-background-color);
  border: 1px solid var(--newtab-border-color);
  border-radius: 3px;
  content: "";
  height: 21px;
  left: -8px;
  position: absolute;
  top: -8px;
  width: 21px;
  z-index: 1;
}
[dir=rtl] .topsite-form [type=checkbox]:not(:checked) + label::before,
[dir=rtl] .topsite-form [type=checkbox]:checked + label::before {
  left: auto;
  right: -8px;
}
.topsite-form [type=checkbox]:not(:checked) + label::after,
.topsite-form [type=checkbox]:checked + label::after {
  background: url("chrome://global/skin/icons/check.svg") no-repeat center center;
  content: "";
  height: 21px;
  left: -8px;
  position: absolute;
  top: -8px;
  width: 21px;
  -moz-context-properties: fill;
  fill: var(--newtab-primary-action-background);
  z-index: 2;
}
[dir=rtl] .topsite-form [type=checkbox]:not(:checked) + label::after,
[dir=rtl] .topsite-form [type=checkbox]:checked + label::after {
  left: auto;
  right: -8px;
}
.topsite-form [type=checkbox]:checked + label .tile {
  box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
}
.topsite-form [type=checkbox]:not(:checked) + label::after {
  opacity: 0;
}
.topsite-form [type=checkbox]:checked + label::after {
  opacity: 1;
}
.topsite-form [type=checkbox]:checked:focus + label::before,
.topsite-form [type=checkbox]:not(:checked):focus + label::before {
  border: 1px dotted var(--newtab-primary-action-background);
}

.top-sites-list .top-site-outer .top-site-button,
.fields-and-preview .top-site-outer .top-site-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.top-sites-list .top-site-outer .title .title-label,
.fields-and-preview .top-site-outer .title .title-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  white-space: wrap;
  word-break: break-word;
  min-height: 2lh;
  width: 100px;
  padding: 0 var(--space-xsmall);
}
.top-sites-list .top-site-outer .title.sponsored .title-label,
.fields-and-preview .top-site-outer .title.sponsored .title-label {
  -webkit-line-clamp: 1;
  min-height: 1lh;
}

@keyframes fade-up-tt {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.topsite-impression-observer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sections-list .section-list {
  display: grid;
  grid-gap: 32px;
  grid-template-columns: repeat(auto-fit, 192px);
  margin: 0;
}
@media (max-width: 610px) {
  .sections-list .section-list .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 610px) and (max-width: 866px) {
  .sections-list .section-list :nth-child(2n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 866px) and (max-width: 1250px) {
  .sections-list .section-list :nth-child(3n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
@media (min-width: 1122px) and (max-width: 1506px) {
  .sections-list .section-list :nth-child(3n) .context-menu,
.sections-list .section-list :nth-child(4n) .context-menu {
    margin-inline-end: 5px;
    margin-inline-start: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}
.sections-list .section-empty-state {
  border: 1px solid var(--newtab-border-color);
  border-radius: 3px;
  display: flex;
  height: 266px;
  width: 100%;
}
.sections-list .section-empty-state .empty-state {
  margin: auto;
  max-width: 350px;
}
.sections-list .section-empty-state .empty-state .empty-state-message {
  color: var(--newtab-text-primary-color);
  font-size: var(--font-size-small);
  margin-bottom: 0;
  text-align: center;
}
@media (min-width: 1122px) {
  .sections-list .section-empty-state {
    height: 370px;
  }
}

.top-stories-bottom-container {
  color: var(--newtab-text-primary-color);
  font-size: var(--font-size-small);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}
.top-stories-bottom-container a {
  color: var(--newtab-primary-action-background);
  font-weight: var(--font-weight-bold);
}
.top-stories-bottom-container a.more-recommendations {
  font-weight: normal;
  font-size: var(--font-size-small);
}
@media (max-width: 865px) {
  .top-stories-bottom-container .wrapper-topics,
.top-stories-bottom-container .wrapper-cta + .wrapper-more-recommendations {
    display: none;
  }
}
@media (max-width: 609px) {
  .top-stories-bottom-container .wrapper-cta {
    text-align: center;
  }
  .top-stories-bottom-container .wrapper-cta .pocket-logged-in-cta {
    display: block;
    margin-inline-end: 0;
  }
  .top-stories-bottom-container .wrapper-cta .pocket-logged-in-cta .pocket-cta-button {
    max-width: none;
    display: block;
    margin-inline-end: 0;
    margin: 5px 0 10px;
  }
  .top-stories-bottom-container .wrapper-more-recommendations {
    width: 100%;
  }
  .top-stories-bottom-container .wrapper-more-recommendations .more-recommendations {
    justify-content: center;
  }
  .top-stories-bottom-container .wrapper-more-recommendations .more-recommendations::after {
    display: none;
  }
}

@media (min-width: 1122px) {
  .sections-list .normal-cards .section-list {
    grid-template-columns: repeat(auto-fit, 309px);
  }
}
.search-wrapper {
  padding: 34px 0 38px;
}
.layout-variant-a .search-wrapper, .layout-variant-b .search-wrapper {
  padding-top: 0;
  padding-bottom: 32px;
}
.layout-variant-a.no-recommended-stories .search-wrapper, .layout-variant-b.no-recommended-stories .search-wrapper {
  padding-bottom: 40px;
}
.layout-variant-a .only-search .search-wrapper, .layout-variant-b .only-search .search-wrapper {
  padding-bottom: 40px;
}
.only-search .search-wrapper {
  padding: 0 0 38px;
}
.search-wrapper .search-inner-wrapper {
  cursor: default;
  display: flex;
  min-height: 52px;
  margin: 0 auto;
  position: relative;
  width: 200px;
}
@media (min-width: 610px) {
  .search-wrapper .search-inner-wrapper {
    width: 360px;
  }
}
@media (min-width: 866px) {
  .search-wrapper .search-inner-wrapper {
    width: 600px;
  }
}
@media (min-width: 1122px) {
  .search-wrapper .search-inner-wrapper {
    width: 720px;
  }
}
.layout-variant-a .search-wrapper .search-inner-wrapper, .layout-variant-b .search-wrapper .search-inner-wrapper {
  width: 304px;
}
@media (min-width: 866px) {
  .layout-variant-a .search-wrapper .search-inner-wrapper, .layout-variant-b .search-wrapper .search-inner-wrapper {
    width: 510px;
  }
}
@media (min-width: 1122px) {
  .layout-variant-a .search-wrapper .search-inner-wrapper, .layout-variant-b .search-wrapper .search-inner-wrapper {
    width: 720px;
  }
}
.search-wrapper .search-handoff-button,
.search-wrapper input {
  background: var(--newtab-background-color-secondary) var(--newtab-search-icon) 16px center no-repeat;
  background-size: 24px;
  padding-inline-start: 52px;
  padding-inline-end: 10px;
  padding-block: 0;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--newtab-text-primary-color);
  -moz-context-properties: fill;
  fill: var(--newtab-text-secondary-color);
}
.search-wrapper .search-handoff-button:dir(rtl),
.search-wrapper input:dir(rtl) {
  background-position-x: right 16px;
}
.search-wrapper .search-inner-wrapper:active input,
.search-wrapper input:focus {
  border: 1px solid var(--newtab-primary-action-background);
  outline: 0;
  box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
}
.search-wrapper .search-button {
  background: url("chrome://browser/skin/forward.svg") no-repeat center center;
  background-size: 16px 16px;
  border: 0;
  border-radius: 0 3px 3px 0;
  -moz-context-properties: fill;
  fill: var(--newtab-text-secondary-color);
  height: 100%;
  inset-inline-end: 0;
  position: absolute;
  width: 48px;
}
.search-wrapper .search-button:focus, .search-wrapper .search-button:hover {
  background-color: var(--newtab-element-hover-color);
  cursor: pointer;
}
.search-wrapper .search-button:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
  border: 1px solid var(--newtab-primary-action-background);
  border-radius: 0 8px 8px 0;
}
.search-wrapper .search-button:active {
  background-color: var(--newtab-element-hover-color);
}
.search-wrapper .search-button:dir(rtl) {
  transform: scaleX(-1);
}
.search-wrapper.fake-focus:not(.search.disabled) .search-handoff-button {
  border: 1px solid var(--newtab-primary-action-background);
  box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
}
.search-wrapper .search-handoff-button {
  padding-inline-end: 15px;
  color: var(--newtab-text-primary-color);
  fill: var(--newtab-text-secondary-color);
  -moz-context-properties: fill;
}
.search-wrapper .search-handoff-button .fake-caret {
  top: 18px;
  inset-inline-start: 52px;
}
.search-wrapper .search-handoff-button .fake-caret:dir(rtl) {
  background-position-x: right 16px;
}
.search-wrapper.visible-logo .logo-and-wordmark .wordmark {
  fill: var(--newtab-wordmark-color);
}

.shortcuts-refresh.has-recommended-stories .outer-wrapper:not(.fixed-search) .search-wrapper {
  margin-block-end: 28px;
  padding: 0;
}

.layout-variant-b.has-recommended-stories .outer-wrapper:not(.fixed-search) .search-wrapper {
  margin-block-start: 16px;
}
.layout-variant-b.has-recommended-stories .logo-and-wordmark {
  position: absolute;
  inset-inline-start: 40px;
  inset-block-start: 40px;
}
@media (min-width: 724px) {
  .layout-variant-b.has-recommended-stories .logo-and-wordmark {
    inset-inline-start: 20px;
  }
}
@media (min-width: 866px) {
  .layout-variant-b.has-recommended-stories .logo-and-wordmark {
    inset-inline-start: 40px;
  }
}
.layout-variant-b.has-recommended-stories.no-search .body-wrapper {
  margin-block-start: 0;
}
@media (min-width: 866px) {
  .layout-variant-b.has-recommended-stories.no-search .body-wrapper {
    margin-block-start: 108px;
  }
}
@media (min-width: 1698px) {
  .layout-variant-b.has-recommended-stories.no-search .body-wrapper {
    margin-block-start: 0;
  }
}
@media (min-width: 1390px) {
  .layout-variant-b.has-recommended-stories.no-search.has-sections-grid .body-wrapper {
    margin-block-start: 0;
  }
}
.layout-variant-b.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
  inset-inline-start: 20px;
}
@media (min-width: 510px) {
  .layout-variant-b.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
    inset-inline-start: 40px;
  }
}
@media (min-width: 724px) {
  .layout-variant-b.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
    inset-inline-start: 20px;
  }
}
@media (min-width: 866px) {
  .layout-variant-b.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
    inset-inline-start: 40px;
  }
}
.layout-variant-b.has-recommended-stories .search-inner-wrapper {
  width: 200px;
}
@media (min-width: 510px) {
  .layout-variant-b.has-recommended-stories .search-inner-wrapper {
    width: 300px;
  }
}
@media (min-width: 610px) {
  .layout-variant-b.has-recommended-stories .search-inner-wrapper {
    width: 350px;
  }
}
@media (min-width: 866px) {
  .layout-variant-b.has-recommended-stories .search-inner-wrapper {
    width: 410px;
  }
}
@media (min-width: 1122px) {
  .layout-variant-b.has-recommended-stories .search-inner-wrapper {
    width: 584px;
  }
}
@media (min-width: 1506px) {
  .layout-variant-b.has-recommended-stories .search-inner-wrapper {
    width: 720px;
  }
}
@media (min-width: 1122px) {
  .layout-variant-b.has-recommended-stories.has-mobile-download-promo .search-inner-wrapper {
    width: 497px;
  }
}
@media (min-width: 1506px) {
  .layout-variant-b.has-recommended-stories.has-mobile-download-promo .search-inner-wrapper {
    width: 720px;
  }
}
.layout-variant-b.has-recommended-stories .logo {
  width: 52px;
  height: 52px;
  background-size: 52px;
}
.layout-variant-b.has-recommended-stories .wordmark {
  display: none;
  height: 52px;
}
@media (min-width: 866px) {
  .layout-variant-b.has-recommended-stories .wordmark {
    display: block;
  }
}

@media (height <= 700px) {
  .search-wrapper {
    padding: 0 0 30px;
  }
}
.search-handoff-button {
  background: var(--newtab-background-color-secondary) var(--newtab-search-icon) 16px center no-repeat;
  background-size: 24px;
  border: solid 1px transparent;
  border-radius: 3px;
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: text;
  font-size: inherit;
  padding: 0;
  padding-inline-end: 48px;
  padding-inline-start: 46px;
  opacity: 1;
  width: 100%;
}
.search-handoff-button:dir(rtl) {
  background-position-x: right 16px;
}
.fake-focus:not(.search-disabled) .search-handoff-button {
  border: 1px solid var(--newtab-textbox-focus-color);
  box-shadow: var(--newtab-textbox-focus-boxshadow);
}
.fake-focus:not(.search-disabled) .search-handoff-button .fake-caret {
  display: block;
}
.search-disabled .search-handoff-button {
  opacity: 0.5;
  box-shadow: none;
}
.search-handoff-button .fake-editable:focus {
  outline: none;
  caret-color: transparent;
}
.search-handoff-button .fake-editable {
  color: transparent;
  height: 100%;
  opacity: 0;
  position: absolute;
  inset: 0;
}
.search-handoff-button .fake-textbox {
  opacity: 0.54;
  text-align: start;
}
.layout-variant-a .search-handoff-button .fake-textbox, .layout-variant-b .search-handoff-button .fake-textbox {
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.search-handoff-button .fake-caret {
  /* To replicate the default caret blink rate of 567ms (https://searchfox.org/mozilla-central/source/widget/cocoa/nsLookAndFeel.mm#397):
   - Multiply the blink time by 2 to cover both the visible and hidden states.
   - Use steps(2, start) to divide the animation into 2 phases:
     1. First 567ms (Step 1) → Caret is visible
     2. Next 567ms (Step 2) → Caret is hidden
  This gives a sharp ON/OFF effect instead of a smooth transition. */
  animation: caret-animation var(--caret-blink-time, 1134ms) steps(2, start) var(--caret-blink-count, infinite);
  background: var(--newtab-text-primary-color);
  display: none;
  inset-inline-start: 47px;
  height: 17px;
  position: absolute;
  top: 16px;
  width: 1px;
}
@keyframes caret-animation {
  to {
    visibility: hidden;
  }
}

@media (height > 700px) {
  body:not(.inline-onboarding) .fixed-search .search-wrapper {
    border-bottom: solid 1px var(--newtab-border-color);
    padding: 27px 0;
    background-color: var(--newtab-overlay-color);
    min-height: 95px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
  }
  body:not(.inline-onboarding) .fixed-search .search-wrapper .search-inner-wrapper {
    min-height: 52px;
  }
  body:not(.inline-onboarding) .fixed-search .search-wrapper input {
    background-position-x: 16px;
    background-size: 24px;
  }
  body:not(.inline-onboarding) .fixed-search .search-wrapper input:dir(rtl) {
    background-position-x: right 16px;
  }
  body:not(.inline-onboarding) .fixed-search .search-wrapper .search-handoff-button .fake-caret {
    top: 14px;
  }
  body:not(.inline-onboarding) .fixed-search .search-wrapper .logo-and-wordmark {
    display: none;
  }
  body:not(.inline-onboarding) .fixed-search .search-handoff-button {
    background-position-x: 16px;
    background-size: 24px;
  }
  body:not(.inline-onboarding) .fixed-search .search-handoff-button:dir(rtl) {
    background-position-x: right 16px;
  }
  body:not(.inline-onboarding) .fixed-search .search-handoff-button .fake-caret {
    top: 10px;
  }
}
.contentSearchSuggestionTable {
  border: 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateY(4px);
  background-color: var(--newtab-background-color);
}
.contentSearchSuggestionTable .contentSearchHeader {
  color: var(--newtab-text-secondary-color);
  background-color: var(--newtab-background-color-secondary);
}
.contentSearchSuggestionTable .contentSearchHeader,
.contentSearchSuggestionTable .contentSearchSettingsButton {
  border-color: var(--newtab-border-color);
}
.contentSearchSuggestionTable .contentSearchSuggestionsList {
  color: var(--newtab-text-primary-color);
  border: 0;
}
.contentSearchSuggestionTable .contentSearchOneOffsTable {
  border-top: solid 1px var(--newtab-border-color);
  background-color: var(--newtab-background-color);
}
.contentSearchSuggestionTable .contentSearchSearchWithHeaderSearchText {
  color: var(--newtab-text-primary-color);
}
.contentSearchSuggestionTable .contentSearchSuggestionRow.selected {
  background: var(--newtab-element-hover-color);
  color: var(--newtab-text-primary-color);
}
.contentSearchSuggestionTable .contentSearchSuggestionRow.selected:active {
  background: var(--newtab-element-active-color);
}
.contentSearchSuggestionTable .contentSearchSuggestionRow.selected .historyIcon {
  fill: var(--newtab-text-secondary-color);
}
.contentSearchSuggestionTable .contentSearchOneOffItem {
  background-image: none;
  border-image: linear-gradient(transparent 18%, var(--newtab-border-color) 18%, var(--newtab-border-color) 82%, transparent 82%) 1;
  border-inline-end: 1px solid;
  position: relative;
}
.contentSearchSuggestionTable .contentSearchOneOffItem.selected {
  background: var(--newtab-element-hover-color);
}
.contentSearchSuggestionTable .contentSearchOneOffItem:active {
  background: var(--newtab-element-active-color);
}
.contentSearchSuggestionTable .contentSearchSettingsButton:hover {
  background: var(--newtab-element-hover-color);
  color: var(--newtab-text-primary-color);
}

.contentSearchHeaderRow > td > img,
.contentSearchSuggestionRow > td > .historyIcon {
  margin-inline-start: 7px;
  margin-inline-end: 15px;
}

/* stylelint-disable max-nesting-depth */
.context-menu {
  background: var(--newtab-background-color-secondary);
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: block;
  font-size: inherit;
  margin-inline-start: 5px;
  inset-inline-start: 100%;
  position: absolute;
  top: 6.75px;
  z-index: 2;
}
.context-menu > ul {
  list-style: none;
  margin: 0;
  padding: 5px 0;
}
.context-menu > ul > li {
  margin: 0;
  width: 100%;
}
.context-menu > ul > li.separator {
  border-bottom: 1px solid var(--newtab-border-color);
  margin: 5px 0;
}
.context-menu > ul > li > a,
.context-menu > ul > li > button {
  align-items: center;
  color: inherit;
  cursor: pointer;
  display: flex;
  width: 100%;
  outline: none;
  border: 0;
  padding: 3px 12px;
  white-space: nowrap;
}
.context-menu > ul > li > a:is(:focus, :hover),
.context-menu > ul > li > button:is(:focus, :hover) {
  background: var(--newtab-element-secondary-hover-color);
}
.context-menu > ul > li > a:active,
.context-menu > ul > li > button:active {
  background: var(--newtab-element-secondary-active-color);
}
.context-menu > ul > li > a.disabled,
.context-menu > ul > li > button.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.confirmation-dialog .modal {
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
  left: 0;
  margin: auto;
  position: fixed;
  right: 0;
  top: 20%;
  width: 400px;
}
.confirmation-dialog section {
  margin: 0;
}
.confirmation-dialog .modal-message {
  display: flex;
  padding: 16px;
  padding-bottom: 0;
}
.confirmation-dialog .modal-message p {
  margin: 0;
  margin-bottom: 16px;
}
.confirmation-dialog .actions {
  border: 0;
  display: flex;
  flex-wrap: nowrap;
  padding: 0 16px;
}
.confirmation-dialog .actions button {
  margin-inline-end: 16px;
  padding-inline-end: 18px;
  padding-inline-start: 18px;
  white-space: normal;
  width: 50%;
}
.confirmation-dialog .actions button.done {
  margin-inline-end: 0;
  margin-inline-start: 0;
}
.confirmation-dialog .icon {
  margin-inline-end: 16px;
}

.modal-overlay {
  background: var(--newtab-overlay-color);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 11001;
}

.modal {
  background: var(--newtab-background-color-secondary);
  border: 1px solid var(--newtab-border-color);
  border-radius: 5px;
  z-index: 11002;
}

.personalizeButtonWrapper {
  margin: 0;
  padding: 0;
  z-index: 5;
}
@media (height < 700px) {
  .personalizeButtonWrapper {
    position: absolute;
    inset-block-start: var(--space-xlarge);
    inset-inline-end: var(--space-xlarge);
  }
}
@media (height >= 700px) {
  .personalizeButtonWrapper {
    position: fixed;
    inset-block-start: var(--space-xlarge);
    inset-inline-end: var(--space-xlarge);
  }
}

.layout-variant-b .personalizeButtonWrapper {
  position: fixed;
  inset-block-start: auto;
  inset-block-end: var(--space-xlarge);
}

.layout-variant-b + .discoverystream-admin-toggle {
  inset-block-start: auto;
  inset-block-end: 50px;
}

.personalize-button {
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  padding: 15px;
  position: relative;
  background-size: var(--icon-size-default);
  background-position: center;
}
.lightWallpaper .personalize-button:not(:hover, :active) {
  color-scheme: light;
}
.darkWallpaper .personalize-button:not(:hover, :active) {
  color-scheme: dark;
}
.personalize-button:hover {
  background-color: var(--newtab-element-hover-color);
}
.personalize-button:active {
  background-color: var(--newtab-element-active-color);
}
.personalize-button:focus-visible {
  border: 0;
  outline: var(--focus-outline);
}
.personalize-button.personalize-animate-exit-done {
  visibility: hidden;
}

.customize-menu {
  color: var(--newtab-text-primary-color);
  background-color: var(--newtab-background-color-secondary);
  width: 432px;
  height: 100%;
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 1001;
  padding-block: 0 var(--space-large);
  padding-inline: var(--space-large);
  overflow: auto;
  transform: translateX(435px);
  visibility: hidden;
  cursor: default;
}
@media (prefers-reduced-motion: no-preference) {
  .customize-menu.customize-animate-enter, .customize-menu.customize-animate-exit, .customize-menu.customize-animate-enter-done, .customize-menu.customize-animate-exit-done {
    transition: transform 250ms cubic-bezier(0.46, 0.03, 0.52, 0.96), visibility 250ms;
  }
}
@media (forced-colors: active) {
  .customize-menu {
    border-inline-start: solid 1px;
  }
}
.customize-menu:dir(rtl) {
  transform: translateX(-435px);
}
.customize-menu.customize-animate-enter-done, .customize-menu.customize-animate-enter-active {
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
  visibility: visible;
  transform: translateX(0);
}
.customize-menu.customize-animate-exit-active {
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
}
.customize-menu .close-button-wrapper {
  position: sticky;
  top: 0;
  padding-block-start: var(--space-large);
  background-color: var(--newtab-background-color-secondary);
  z-index: 1;
}
.customize-menu .close-button {
  margin-inline-start: auto;
  margin-inline-end: var(--space-large);
  white-space: nowrap;
  display: block;
  background-color: var(--newtab-element-secondary-color);
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: var(--newtab-text-primary-color);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
}
.customize-menu .close-button:hover {
  background-color: var(--newtab-element-secondary-hover-color);
}
.customize-menu .close-button:hover:active {
  background-color: var(--newtab-element-secondary-active-color);
}

.grid-skip {
  display: contents;
}

.home-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  grid-row-gap: 32px;
  padding: var(--space-large);
}
.home-section .wallpapers-section h2 {
  font-size: inherit;
}
.home-section .settings-toggles {
  display: flex;
  flex-direction: column;
  gap: var(--space-xlarge);
}
.home-section [slot=nested] {
  margin-block-start: 0;
}
.home-section .section .customize-menu-checkbox-label {
  font-size: inherit;
  margin-inline-start: 5px;
}
.home-section .section .check-wrapper {
  position: relative;
  display: flex;
}
.home-section .section .customize-menu-checkbox {
  margin-inline-start: 2px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  border-radius: 4px;
  appearance: none;
  background-color: var(--newtab-element-secondary-color);
  flex-shrink: 0;
}
.home-section .section .customize-menu-checkbox:hover {
  background-color: var(--newtab-element-secondary-hover-color);
}
.home-section .section .customize-menu-checkbox:checked {
  -moz-context-properties: fill;
  fill: var(--newtab-primary-element-text-color);
  background: url("chrome://global/skin/icons/check.svg") center no-repeat;
  background-color: var(--newtab-primary-action-background);
}
.home-section .section .customize-menu-checkbox:checked:hover {
  background-color: var(--newtab-primary-element-hover-color);
}
.home-section .section .customize-menu-checkbox:checked:active {
  background-color: var(--newtab-primary-element-active-color);
}
@media (forced-colors: active) {
  .home-section .section .customize-menu-checkbox:checked {
    fill: #000;
  }
}
.home-section .section .customize-menu-checkbox:active + .checkmark {
  fill: var(--newtab-element-secondary-color);
}
.home-section .section .selector {
  color: var(--newtab-text-primary-color);
  width: 118px;
  display: block;
  border: 1px solid var(--newtab-border-color);
  border-radius: 4px;
  appearance: none;
  padding-block: 7px;
  padding-inline: 10px 13px;
  margin-inline-start: 2px;
  margin-bottom: 2px;
  -moz-context-properties: fill;
  fill: var(--newtab-text-primary-color);
  background: url("chrome://global/skin/icons/arrow-down-12.svg") right no-repeat;
  background-size: 8px;
  background-origin: content-box;
  background-color: var(--newtab-background-color-secondary);
}
.home-section .section .selector:hover {
  background-color: var(--newtab-element-secondary-hover-color);
}
.home-section .section .selector:dir(rtl) {
  background-position-x: left;
}
.home-section .section .more-info-top-wrapper,
.home-section .section .more-info-pocket-wrapper {
  margin-inline-start: -2px;
  overflow: hidden;
}
.home-section .section .more-info-top-wrapper .more-information,
.home-section .section .more-info-pocket-wrapper .more-information {
  position: relative;
  transition: margin-top 250ms cubic-bezier(0.82, 0.085, 0.395, 0.895);
}
.home-section .section .more-info-pocket-wrapper .more-information {
  position: static;
}
.home-section .section .more-info-pocket-wrapper .check-wrapper {
  margin-block-end: var(--space-small);
}
.home-section .section .more-info-top-wrapper .check-wrapper {
  margin-block-start: var(--space-large);
}
.home-section .sponsored-content-info {
  display: flex;
  gap: var(--space-small);
  font-size: var(--font-size-small);
  border-radius: var(--border-radius-medium);
  background-color: var(--newtab-element-secondary-color);
  padding: var(--space-small) var(--space-large);
}
.home-section .sponsored-content-info .icon-help {
  flex-shrink: 0;
  color: var(--color-accent-primary);
  height: 20px;
}
.home-section .sponsored-content-info a {
  color: var(--newtab-primary-action-background);
}
.home-section .divider {
  border-top: 1px var(--newtab-border-color) solid;
  margin: 0 -16px;
}
.home-section .external-link {
  -moz-context-properties: fill;
  background: url("chrome://global/skin/icons/settings.svg") left no-repeat;
  background-size: 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--link-color);
  cursor: pointer;
  fill: var(--newtab-text-primary-color);
  font-size: var(--font-size-small);
  margin-bottom: 20px;
  padding-inline-start: 21px;
  text-decoration: underline;
}
.home-section .external-link:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}
.home-section .external-link:active {
  color: var(--link-color-active);
}
@media (forced-colors: active) {
  .home-section .external-link {
    padding: 8px 10px;
    padding-inline-start: 21px;
  }
}
.home-section .external-link:dir(rtl) {
  background-position-x: right;
}
.home-section .external-link:hover {
  text-decoration: none;
}

.external-link:focus-visible,
.close-button:focus-visible {
  border: 1px solid var(--newtab-primary-action-background);
  outline: 0;
  box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
}

.home-section .section .customize-menu-checkbox, .home-section .section .selector {
  outline: 0;
  box-shadow: 0 0 0 2px light-dark(var(--newtab-background-color), var(--newtab-background-color-dark));
}

.home-section .section .selector {
  margin-block-start: var(--space-xxsmall);
}

.home-section .section .customize-menu-checkbox:is(:focus-visible), .home-section .section .selector:is(:focus-visible) {
  box-shadow: 0 0 0 2px var(--color-accent-primary);
  outline: var(--focus-outline);
}
.home-section .section .customize-menu-checkbox:is(:active), .home-section .section .selector:is(:active) {
  box-shadow: 0 0 0 2px var(--color-accent-primary-active);
  outline: 0;
}

.sections-mgmt-panel {
  /* XXXdholbert The 32px subtraction here is to account for our 16px of
  * margin on top and bottom. Ideally this should change to use
  * 'height: stretch' when bug 1789477 lands. */
  height: calc(100% - var(--space-xxlarge));
  inset-inline-start: var(--space-xlarge);
  position: absolute;
  top: 0;
  width: 380px;
  z-index: 2;
  transform: translateX(100%);
  margin-block: var(--space-large) 0;
  padding: 0;
  background-color: var(--newtab-background-color-secondary);
}
.sections-mgmt-panel:dir(rtl) {
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .sections-mgmt-panel.sections-mgmt-panel-enter, .sections-mgmt-panel.sections-mgmt-panel-exit, .sections-mgmt-panel.sections-mgmt-panel-enter-done, .sections-mgmt-panel.sections-mgmt-panel-exit-done {
    transition: transform 300ms;
  }
}
.sections-mgmt-panel.sections-mgmt-panel-enter-done, .sections-mgmt-panel.sections-mgmt-panel-enter-active {
  transform: translateX(0);
}
.sections-mgmt-panel h3 {
  font-size: inherit;
  margin-block: 0 var(--space-small);
}
.sections-mgmt-panel .topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-small);
  margin-block: 0 var(--space-xxlarge);
  padding-inline: 0;
  width: 100%;
}
.sections-mgmt-panel .topic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sections-mgmt-panel .topic-list-empty-state {
  display: block;
  margin-block-end: var(--space-xxlarge);
  color: var(--text-color-deemphasized);
}
.sections-mgmt-panel .arrow-button {
  background: url("chrome://global/skin/icons/arrow-left.svg") no-repeat left center;
  border: none;
  cursor: pointer;
  margin-block-end: var(--space-xlarge);
  padding-inline-start: var(--space-xlarge);
  -moz-context-properties: fill;
  fill: currentColor;
  min-height: var(--space-large);
}
.sections-mgmt-panel .arrow-button:dir(rtl) {
  background: url("chrome://global/skin/icons/arrow-right.svg") no-repeat right center;
}
.sections-mgmt-panel .arrow-button h1 {
  font-size: var(--font-size-root);
  margin-block: 0;
  font-weight: var(--button-font-weight);
}
.sections-mgmt-panel .section-block .section-button-blocked-text,
.sections-mgmt-panel .section-block .section-button-following-text,
.sections-mgmt-panel .section-follow .section-button-blocked-text,
.sections-mgmt-panel .section-follow .section-button-following-text {
  display: none;
}
.sections-mgmt-panel .section-block .section-button-unblock-text,
.sections-mgmt-panel .section-block .section-button-unfollow-text,
.sections-mgmt-panel .section-follow .section-button-unblock-text,
.sections-mgmt-panel .section-follow .section-button-unfollow-text {
  display: none;
}
.sections-mgmt-panel .section-block.following .section-button-follow-text,
.sections-mgmt-panel .section-follow.following .section-button-follow-text {
  display: none;
}
.sections-mgmt-panel .section-block.following .section-button-following-text,
.sections-mgmt-panel .section-follow.following .section-button-following-text {
  display: block;
}
.sections-mgmt-panel .section-block.following:not(:hover) moz-button,
.sections-mgmt-panel .section-follow.following:not(:hover) moz-button {
  --button-background-color-destructive: var(--button-background-color);
  --button-text-color-destructive: var(--button-text-color);
  --button-border-color-destructive: var(--button-border-color);
}
.sections-mgmt-panel .section-block.following:hover .section-button-following-text,
.sections-mgmt-panel .section-follow.following:hover .section-button-following-text {
  display: none;
}
.sections-mgmt-panel .section-block.following:hover .section-button-unfollow-text,
.sections-mgmt-panel .section-follow.following:hover .section-button-unfollow-text {
  display: block;
}
.sections-mgmt-panel .section-block.blocked .section-button-block-text,
.sections-mgmt-panel .section-follow.blocked .section-button-block-text {
  display: none;
}
.sections-mgmt-panel .section-block.blocked .section-button-blocked-text,
.sections-mgmt-panel .section-follow.blocked .section-button-blocked-text {
  display: block;
}
.sections-mgmt-panel .section-block.blocked:hover .section-button-blocked-text,
.sections-mgmt-panel .section-follow.blocked:hover .section-button-blocked-text {
  display: none;
}
.sections-mgmt-panel .section-block.blocked:hover .section-button-unblock-text,
.sections-mgmt-panel .section-follow.blocked:hover .section-button-unblock-text {
  display: block;
}

.category-list {
  border: none;
  display: grid;
  gap: 48px 16px;
  grid-auto-rows: 86px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-block-end: 20px;
  padding: 0;
}
.category-list label {
  display: inline-block;
  font-size: var(--font-size-small);
  text-align: center;
  width: 100%;
}

.category-header {
  display: flex;
  justify-content: space-between;
}
.category-header .wallpapers-reset {
  margin: unset;
}

.arrow-button {
  background: url("chrome://global/skin/icons/arrow-left.svg") no-repeat left center;
  border: none;
  cursor: pointer;
  margin-bottom: 25px;
  padding-inline-start: 24px;
  -moz-context-properties: fill;
  fill: currentColor;
  min-height: 1rem;
}
.arrow-button:dir(rtl) {
  background: url("chrome://global/skin/icons/arrow-right.svg") no-repeat right center;
}

.wallpaper-input {
  appearance: none;
  background-clip: content-box;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--border-radius-medium);
  border: none;
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
  cursor: pointer;
  height: 86px;
  margin: 0;
  outline: 2px solid transparent;
  padding: 0;
  width: 100%;
}
.wallpaper-input.theme-custom-wallpaper {
  border: 2px dashed var(--border-color-default, #CFCFD8);
  box-shadow: none;
  position: relative;
}
.wallpaper-input.theme-custom-wallpaper::after {
  content: "";
  -moz-context-properties: fill;
  fill: var(--icon-color);
  width: calc(var(--icon-size-default) * 1.25);
  height: calc(var(--icon-size-default) * 1.25);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.wallpaper-input.theme-custom-wallpaper::after {
  background: url("chrome://global/skin/icons/plus-20.svg") center no-repeat;
}
.wallpaper-input.dark-landscape {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-landscape.avif");
}
.wallpaper-input.dark-color {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-color.avif");
}
.wallpaper-input.dark-mountain {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-mountain.avif");
}
.wallpaper-input.dark-panda {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-panda.avif");
}
.wallpaper-input.dark-sky {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-sky.avif");
}
.wallpaper-input.dark-beach {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-beach.avif");
}
.wallpaper-input.light-beach {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-beach.avif");
}
.wallpaper-input.light-color {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-color.avif");
}
.wallpaper-input.light-landscape {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-landscape.avif");
}
.wallpaper-input.light-mountain {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-mountain.avif");
}
.wallpaper-input.light-panda {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-panda.avif");
}
.wallpaper-input.light-sky {
  background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-sky.avif");
}
.wallpaper-input:focus-visible {
  outline-color: var(--newtab-primary-action-background);
}
.wallpaper-input:hover {
  filter: brightness(55%);
  outline-color: transparent;
}
.wallpaper-input:focus {
  border-color: transparent;
  outline-color: var(--color-accent-primary-active);
  padding: 2px;
}

.theme-custom-color-picker {
  background-color: var(--newtab-background-color-secondary);
  background-clip: content-box;
  border-radius: var(--border-radius-medium);
  outline: 2px dashed var(--border-color-default, #CFCFD8);
  outline-offset: 2px;
  position: relative;
  color-scheme: light;
}
.theme-custom-color-picker .wallpaper-input {
  box-shadow: none;
}
.theme-custom-color-picker:focus-visible {
  border-color: transparent;
  outline-color: var(--color-accent-primary-active);
  padding: 2px;
}
.theme-custom-color-picker.default-color-set #solid-color-picker {
  opacity: 0;
}
@media (prefers-color-scheme: dark) {
  .theme-custom-color-picker.default-color-set::after {
    color-scheme: dark;
  }
}
.theme-custom-color-picker.custom-color-dark::after {
  color-scheme: dark;
}
.theme-custom-color-picker.is-dark::after {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .theme-custom-color-picker.is-dark::after {
    color: #FBFBFE;
  }
}
.theme-custom-color-picker::after {
  background: url("chrome://global/skin/icons/color-picker-20.svg") center no-repeat;
  content: "";
  -moz-context-properties: fill;
  fill: var(--icon-color);
  width: calc(var(--icon-size-default) * 1.25);
  height: calc(var(--icon-size-default) * 1.25);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  cursor: pointer;
}
.theme-custom-color-picker label {
  display: inline-block;
  font-size: var(--font-size-small);
  text-align: center;
  width: 100%;
}
.theme-custom-color-picker ::-moz-color-swatch {
  border-color: transparent;
  border-radius: var(--border-radius-medium);
}

.wallpaper-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 86px;
  margin: 16px 0;
  padding: 0;
  border: none;
}
.wallpaper-list.category {
  background-color: var(--newtab-background-color-secondary);
  color: var(--newtab-text-primary-color);
  display: unset;
  gap: unset;
  grid-auto-rows: unset;
  grid-template-columns: unset;
  /* XXXdholbert The 32px subtraction here is to account for our 16px of
   * margin on top and bottom. Ideally this should change to use
   * 'height: stretch' when bug 1789477 lands. */
  height: calc(100% - 32px);
  inset-inline-start: 25px;
  position: absolute;
  top: 0;
  width: 380px;
  z-index: 2;
  transform: translateX(100%);
}
.wallpaper-list.category:dir(rtl) {
  transform: translateX(-100%);
}
.wallpaper-list.category fieldset {
  border: none;
  display: grid;
  gap: 16px;
  grid-auto-rows: 86px;
  grid-template-columns: 1fr 1fr 1fr;
}
@media (prefers-reduced-motion: no-preference) {
  .wallpaper-list.category.wallpaper-list-enter, .wallpaper-list.category.wallpaper-list-exit, .wallpaper-list.category.wallpaper-list-enter-done, .wallpaper-list.category.wallpaper-list-exit-done {
    transition: transform 300ms;
  }
}
.wallpaper-list.category.wallpaper-list-enter-done, .wallpaper-list.category.wallpaper-list-enter-active {
  transform: translateX(0);
}
.wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-light, .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-light {
  display: inline-block;
}
[lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-light, [lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-light {
  display: none;
}
.wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-dark, .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-dark {
  display: none;
}
[lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-dark, [lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-dark {
  display: inline-block;
}
.wallpaper-list .sr-only {
  opacity: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

.wallpapers-reset {
  background: none;
  border: none;
  text-decoration: underline;
  margin-inline: auto;
  display: block;
  font-size: var(--font-size-small);
  color: var(--newtab-text-primary-color);
  cursor: pointer;
}
.wallpapers-reset:hover {
  text-decoration: none;
}

.custom-wallpaper-error {
  padding-block-start: var(--space-xlarge);
  font-size: var(--font-size-small);
  display: flex;
  gap: var(--space-small);
  align-items: center;
}
.custom-wallpaper-error .icon {
  width: var(--button-size-icon-small);
  height: var(--button-size-icon-small);
  fill: var(--icon-color-critical);
}

:root {
  --newtab-weather-content-font-size: var(--font-size-small);
  --newtab-weather-sponsor-font-size: 8px;
}

.weather {
  font-size: inherit;
  margin-block-start: var(--space-xlarge);
  margin-inline-start: var(--space-xlarge);
  display: inline-block;
}
@media (min-width: 610px) {
  .weather {
    position: absolute;
    inset-inline-start: var(--space-xlarge);
    inset-block-start: var(--space-xlarge);
    margin-block-start: 0;
    margin-inline-start: 0;
    z-index: 1;
  }
  .layout-variant-a .weather, .layout-variant-b .weather {
    inset-inline-start: 24px;
    inset-block-start: 24px;
  }
}
.no-search.layout-variant-a .weather, .no-search.layout-variant-b .weather, .layout-variant-a .weather, .layout-variant-b .weather {
  position: absolute;
  inset-inline-start: var(--space-xlarge);
  inset-block-start: var(--space-xlarge);
  margin-block-start: 0;
  margin-inline-start: 0;
}
.no-search .weather {
  position: relative;
  margin-block-start: var(--space-xlarge);
  margin-inline-start: var(--space-xlarge);
}
@media (min-width: 610px) {
  .no-search .weather {
    margin-block-start: 0;
    margin-inline-start: 0;
  }
}
@media (min-width: 1506px) {
  .no-search .weather {
    position: absolute;
    inset-inline-start: var(--space-xlarge);
    inset-block-start: var(--space-xlarge);
    margin-block-start: 0;
    margin-inline-start: 0;
  }
}

.weather-placeholder {
  width: 240px;
  height: 98px;
  padding: var(--space-small) var(--space-medium);
  border-radius: var(--border-radius-medium);
  background: var(--newtab-background-color-secondary);
  display: flex;
  overflow: hidden;
}
.weather-placeholder .placeholder-image {
  height: 100%;
  width: 80px;
  margin-inline-end: var(--space-medium);
  flex-shrink: 0;
}
.weather-placeholder .placeholder-context {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.weather-placeholder .placeholder-header {
  height: 45px;
  width: 100%;
  margin-block-end: var(--space-small);
}
.weather-placeholder .placeholder-description {
  flex-grow: 1;
  width: 100%;
}
.weather-placeholder .placeholder-fill {
  color: var(--newtab-text-primary-color);
  background: var(--newtab-button-active-background);
  border-radius: var(--border-radius-small);
}
.weather-placeholder.placeholder-seen::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--newtab-background-color-secondary) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .weather-placeholder.placeholder-seen::before {
    animation: loading 1.5s infinite;
  }
}
@keyframes loading {
  0% {
    inset-inline-start: -100%;
  }
  50%, 100% {
    inset-inline-start: 100%;
  }
}

.has-weather.no-search .outer-wrapper {
  padding-top: 0;
}
@media (min-width: 610px) {
  .has-weather.no-search .outer-wrapper {
    padding-top: 30px;
  }
}

.layout-variant-a.has-weather.no-search .outer-wrapper,
.layout-variant-b.has-weather.no-search .outer-wrapper {
  padding-top: 24px;
}

.no-search.layout-variant-b .weather,
.layout-variant-b .weather {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: 40px;
  inset-block-start: 40px;
  margin-block-start: 0;
}
@media (min-width: 724px) {
  .no-search.layout-variant-b .weather,
.layout-variant-b .weather {
    inset-inline-end: 20px;
  }
}
@media (min-width: 866px) {
  .no-search.layout-variant-b .weather,
.layout-variant-b .weather {
    inset-inline-end: 40px;
  }
}
.no-search.layout-variant-b .weather .weatherSponsorText,
.layout-variant-b .weather .weatherSponsorText {
  float: inline-end;
}
.no-search.layout-variant-b .weather .weatherSponsorText span,
.layout-variant-b .weather .weatherSponsorText span {
  inset-inline-end: 0;
}
.no-search.layout-variant-b .weather .context-menu,
.layout-variant-b .weather .context-menu {
  inset-inline-end: 100%;
  inset-inline-start: auto;
  margin-inline-end: 5px;
}

@media (min-width: 610px) {
  .has-mobile-download-promo .weather, .has-mobile-download-promo.layout-variant-a .weather {
    inset-inline-start: calc(32px + var(--space-xxlarge));
  }
}
@media (min-width: 610px) {
  .has-mobile-download-promo.layout-variant-b .weather {
    inset-inline-start: auto;
    inset-inline-end: calc(32px + var(--space-medium));
  }
}
@media (min-width: 724px) {
  .has-mobile-download-promo.layout-variant-b .weather {
    inset-inline-end: calc(72px + var(--space-medium));
  }
}
@media (min-width: 866px) {
  .has-mobile-download-promo.layout-variant-b.no-search .weather {
    inset-inline-end: calc(72px + var(--space-medium));
  }
}

.no-search.layout-variant-b .weather {
  inset-inline-end: 20px;
}
@media (min-width: 510px) {
  .no-search.layout-variant-b .weather {
    inset-inline-end: 40px;
  }
}
@media (min-width: 724px) {
  .no-search.layout-variant-b .weather {
    inset-inline-end: 20px;
  }
}
@media (min-width: 866px) {
  .no-search.layout-variant-b .weather {
    inset-inline-end: 40px;
  }
}

.has-weather.has-search .outer-wrapper:not(.only-search) {
  padding-top: 0;
}
@media (min-width: 610px) {
  .has-weather.has-search .outer-wrapper:not(.only-search) {
    padding-top: 30px;
  }
}
.has-weather.has-search .weatherDetailedSummaryRow {
  display: block;
}
@media (min-width: 610px) {
  .has-weather.has-search .weatherDetailedSummaryRow {
    display: none;
  }
}
@media (min-width: 866px) {
  .has-weather.has-search .weatherDetailedSummaryRow {
    display: block;
  }
}
.has-weather.has-search .weatherIconCol {
  display: flex;
}
@media (min-width: 610px) {
  .has-weather.has-search .weatherIconCol {
    display: none;
  }
}
@media (min-width: 866px) {
  .has-weather.has-search .weatherIconCol {
    display: flex;
  }
}

.layout-variant-a.has-weather.has-search .outer-wrapper:not(.only-search),
.layout-variant-b.has-weather.has-search .outer-wrapper:not(.only-search) {
  padding-top: 24px;
}

.weatherNotAvailable {
  font-size: var(--newtab-weather-content-font-size);
  display: flex;
  align-items: center;
  border-radius: var(--border-radius-medium);
  height: 52px;
  max-width: 205px;
}
.layout-variant-a .weatherNotAvailable {
  display: none;
}
@media (min-width: 610px) {
  .layout-variant-a .weatherNotAvailable {
    display: flex;
  }
}
.layout-variant-b .weatherNotAvailable {
  display: none;
}
@media (min-width: 866px) {
  .layout-variant-b .weatherNotAvailable {
    display: flex;
  }
}
.weatherNotAvailable:hover {
  background-color: var(--button-background-color-ghost-hover);
}
.weatherNotAvailable:active {
  background-color: var(--button-background-color-ghost-active);
}
.weatherNotAvailable .icon {
  margin-inline-start: var(--space-small);
  min-width: var(--size-item-small);
}
.weatherNotAvailable p {
  margin-inline-start: var(--space-small);
}
.weatherNotAvailable .weatherButtonContextMenuWrapper {
  align-self: stretch;
  padding-inline: var(--space-small);
}
.lightWallpaper .weatherNotAvailable, .darkWallpaper .weatherNotAvailable {
  background-color: var(--newtab-weather-background-color);
}
@media (prefers-contrast) {
  .lightWallpaper .weatherNotAvailable, .darkWallpaper .weatherNotAvailable {
    background-color: var(--background-color-box);
  }
}

.weatherCard {
  margin-block-end: var(--space-xsmall);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}
.weatherCard:hover ~ .weatherSponsorText, .weatherCard:focus-within ~ .weatherSponsorText {
  visibility: visible;
}
.weatherCard:focus-within {
  overflow: visible;
}
.weatherCard:hover {
  box-shadow: var(--box-shadow-card);
}
.weatherCard a {
  color: var(--text-color);
}

.weatherSponsorText {
  visibility: hidden;
  font-size: var(--newtab-weather-sponsor-font-size);
  color: var(--newtab-contextual-text-primary-color);
}
.lightWallpaper .weatherSponsorText {
  color-scheme: light;
}
.darkWallpaper .weatherSponsorText {
  color-scheme: dark;
}
.weatherSponsorText span {
  color: var(--text-color-deemphasized);
}

.weatherInfoLink, .weatherButtonContextMenuWrapper {
  appearance: none;
  background-color: var(--background-color-ghost);
  border: 0;
  padding: var(--space-small);
  cursor: pointer;
}
.weatherInfoLink:hover, .weatherButtonContextMenuWrapper:hover {
  background-color: var(--newtab-background-color-secondary);
}
.weatherInfoLink:hover::after, .weatherButtonContextMenuWrapper:hover::after {
  background-color: transparent;
}
.weatherInfoLink:hover:active, .weatherButtonContextMenuWrapper:hover:active {
  background-color: var(--button-background-color-ghost-active);
}
.weatherInfoLink:focus-visible, .weatherButtonContextMenuWrapper:focus-visible {
  outline: var(--focus-outline);
}
.lightWallpaper .weatherInfoLink, .darkWallpaper .weatherInfoLink, .lightWallpaper .weatherButtonContextMenuWrapper, .darkWallpaper .weatherButtonContextMenuWrapper {
  background-color: var(--newtab-weather-background-color);
}
.lightWallpaper .weatherInfoLink:hover, .darkWallpaper .weatherInfoLink:hover, .lightWallpaper .weatherButtonContextMenuWrapper:hover, .darkWallpaper .weatherButtonContextMenuWrapper:hover {
  background-color: var(--newtab-button-static-hover-background);
}
.lightWallpaper .weatherInfoLink:hover:active, .darkWallpaper .weatherInfoLink:hover:active, .lightWallpaper .weatherButtonContextMenuWrapper:hover:active, .darkWallpaper .weatherButtonContextMenuWrapper:hover:active {
  background-color: var(--newtab-button-static-active-background);
}
@media (prefers-contrast) {
  .lightWallpaper .weatherInfoLink, .darkWallpaper .weatherInfoLink, .lightWallpaper .weatherButtonContextMenuWrapper, .darkWallpaper .weatherButtonContextMenuWrapper {
    background-color: var(--background-color-box);
  }
}

.weatherInfoLink {
  display: flex;
  gap: var(--space-medium);
  padding: var(--space-small) var(--space-medium);
  border-start-start-radius: var(--border-radius-medium);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-end-start-radius: var(--border-radius-medium);
  text-decoration: none;
  color: var(--text-color);
  min-width: 130px;
  max-width: 190px;
  text-overflow: ellipsis;
}
@media (min-width: 610px) {
  .weatherInfoLink {
    min-width: unset;
  }
}
.weatherInfoLink:hover ~ .weatherButtonContextMenuWrapper::after {
  background-color: transparent;
}
.weatherInfoLink:focus-visible {
  border-radius: var(--border-radius-medium);
}
.weatherInfoLink:focus-visible ~ .weatherButtonContextMenuWrapper::after {
  background-color: transparent;
}

.weatherButtonContextMenuWrapper {
  position: relative;
  cursor: pointer;
  border-start-start-radius: 0;
  border-start-end-radius: var(--border-radius-medium);
  border-end-end-radius: var(--border-radius-medium);
  border-end-start-radius: 0;
  display: flex;
  align-items: stretch;
  width: 50px;
  padding: 0;
}
.weatherButtonContextMenuWrapper::after {
  content: "";
  inset-inline-start: 0;
  top: 10px;
  height: calc(100% - 20px);
  width: 1px;
  background-color: var(--newtab-button-static-background);
  display: block;
  position: absolute;
  z-index: 0;
}
.weatherButtonContextMenuWrapper:hover::after {
  background-color: transparent;
}
.weatherButtonContextMenuWrapper:focus-visible {
  border-radius: var(--border-radius-medium);
}
.weatherButtonContextMenuWrapper:focus-visible::after {
  background-color: transparent;
}

.weatherButtonContextMenu {
  background-image: url("chrome://global/skin/icons/more.svg");
  background-repeat: no-repeat;
  background-size: var(--size-item-small) auto;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  fill: var(--icon-color);
  -moz-context-properties: fill;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  min-width: var(--size-item-large);
}

.weatherText {
  height: min-content;
}

.weatherCityRow, .weatherForecastRow, .weatherDetailedSummaryRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-small);
}

.weatherForecastRow {
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
}

.weatherCityRow {
  color: var(--text-color-deemphasized);
}

.weatherCity {
  -webkit-line-clamp: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;
  font-size: var(--font-size-small);
}

.weatherCityRow + .weatherDetailedSummaryRow {
  margin-block-start: var(--space-xsmall);
}

.weatherDetailedSummaryRow {
  font-size: var(--newtab-weather-content-font-size);
  gap: var(--space-large);
}

.weatherHighLowTemps {
  display: inline-flex;
  gap: var(--space-xxsmall);
  text-transform: uppercase;
  word-spacing: var(--space-xxsmall);
  margin-inline-end: var(--space-small);
}

.weatherTextSummary {
  display: inline;
  text-align: center;
  max-width: 90px;
}

.weatherTemperature {
  font-size: var(--font-size-large);
}

.weatherIconCol {
  width: var(--size-item-large);
  height: var(--size-item-large);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.weatherIcon {
  width: var(--size-item-large);
  height: auto;
  vertical-align: middle;
}
@media (prefers-contrast) {
  .weatherIcon {
    -moz-context-properties: fill, stroke;
    fill: currentColor;
    stroke: currentColor;
  }
}
.weatherIcon.iconId1 {
  content: url("chrome://browser/skin/weather/sunny.svg");
}
.weatherIcon.iconId2 {
  content: url("chrome://browser/skin/weather/mostly-sunny.svg");
}
.weatherIcon:is(.iconId3, .iconId4, .iconId6) {
  content: url("chrome://browser/skin/weather/partly-sunny.svg");
}
.weatherIcon.iconId5 {
  content: url("chrome://browser/skin/weather/hazy-sunshine.svg");
}
.weatherIcon:is(.iconId7, .iconId8) {
  content: url("chrome://browser/skin/weather/cloudy.svg");
}
.weatherIcon.iconId11 {
  content: url("chrome://browser/skin/weather/fog.svg");
}
.weatherIcon.iconId12 {
  content: url("chrome://browser/skin/weather/showers.svg");
}
.weatherIcon:is(.iconId13, .iconId14) {
  content: url("chrome://browser/skin/weather/mostly-cloudy-with-showers.svg");
}
.weatherIcon.iconId15 {
  content: url("chrome://browser/skin/weather/thunderstorms.svg");
}
.weatherIcon:is(.iconId16, .iconId17) {
  content: url("chrome://browser/skin/weather/mostly-cloudy-with-thunderstorms.svg");
}
.weatherIcon.iconId18 {
  content: url("chrome://browser/skin/weather/rain.svg");
}
.weatherIcon:is(.iconId19, .iconId20, .iconId25) {
  content: url("chrome://browser/skin/weather/flurries.svg");
}
.weatherIcon.iconId21 {
  content: url("chrome://browser/skin/weather/partly-sunny-with-flurries.svg");
}
.weatherIcon:is(.iconId22, .iconId23) {
  content: url("chrome://browser/skin/weather/snow.svg");
}
.weatherIcon:is(.iconId24, .iconId31) {
  content: url("chrome://browser/skin/weather/ice.svg");
}
.weatherIcon:is(.iconId26, .iconId29) {
  content: url("chrome://browser/skin/weather/freezing-rain.svg");
}
.weatherIcon.iconId30 {
  content: url("chrome://browser/skin/weather/hot.svg");
}
.weatherIcon.iconId32 {
  content: url("chrome://browser/skin/weather/windy.svg");
}
.weatherIcon.iconId33 {
  content: url("chrome://browser/skin/weather/night-clear.svg");
}
.weatherIcon:is(.iconId34, .iconId35, .iconId36, .iconId38) {
  content: url("chrome://browser/skin/weather/night-mostly-clear.svg");
}
.weatherIcon.iconId37 {
  content: url("chrome://browser/skin/weather/night-hazy-moonlight.svg");
}
.weatherIcon:is(.iconId39, .iconId40) {
  content: url("chrome://browser/skin/weather/night-partly-cloudy-with-showers.svg");
  height: var(--size-item-large);
}
.weatherIcon:is(.iconId41, .iconId42) {
  content: url("chrome://browser/skin/weather/night-partly-cloudy-with-thunderstorms.svg");
}
.weatherIcon:is(.iconId43, .iconId44) {
  content: url("chrome://browser/skin/weather/night-mostly-cloudy-with-flurries.svg");
}

.location-input-wrapper {
  background-color: light-dark(var(--color-white), var(--newtab-background-color-secondary));
  color: var(--newtab-text-primary-color);
  border-radius: var(--border-radius-medium);
  padding: var(--space-small);
  position: relative;
}
.lightWallpaper .location-input-wrapper, .darkWallpaper .location-input-wrapper {
  background-color: var(--newtab-weather-background-color);
}
.lightWallpaper .location-input-wrapper:hover, .darkWallpaper .location-input-wrapper:hover {
  background-color: var(--newtab-button-static-hover-background);
}
.lightWallpaper .location-input-wrapper:hover:active, .darkWallpaper .location-input-wrapper:hover:active {
  background-color: var(--newtab-button-static-active-background);
}
@media (prefers-contrast) {
  .lightWallpaper .location-input-wrapper, .darkWallpaper .location-input-wrapper {
    background-color: var(--background-color-box);
  }
}
.location-input-wrapper .search-icon {
  content: url("chrome://global/skin/icons/search-glass.svg");
  -moz-context-properties: fill;
  fill: var(--icon-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 18px;
}
.location-input-wrapper .close-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: var(--space-medium);
}
.location-input-wrapper .close-icon:focus-visible {
  outline: var(--focus-outline);
}
.location-input-wrapper input {
  border-radius: var(--border-radius-medium);
  background-color: light-dark(var(--color-white), var(--newtab-background-color-secondary));
  padding-block: 8px;
  padding-inline: 30px;
  border: 1px solid var(--newtab-border-color);
}
.location-input-wrapper input:focus-visible {
  outline: 2px solid var(--focus-outline-color);
}

.has-weather.has-search.layout-variant-a .weatherCityRow,
.has-weather.has-search.layout-variant-a .weatherButtonContextMenuWrapper,
.has-weather.has-search.layout-variant-b .weatherCityRow,
.has-weather.has-search.layout-variant-b .weatherButtonContextMenuWrapper,
.layout-variant-a .weatherCityRow,
.layout-variant-a .weatherButtonContextMenuWrapper,
.layout-variant-b .weatherCityRow,
.layout-variant-b .weatherButtonContextMenuWrapper {
  display: none;
}
@media (min-width: 866px) {
  .has-weather.has-search.layout-variant-a .weatherCityRow,
.has-weather.has-search.layout-variant-a .weatherButtonContextMenuWrapper,
.has-weather.has-search.layout-variant-b .weatherCityRow,
.has-weather.has-search.layout-variant-b .weatherButtonContextMenuWrapper,
.layout-variant-a .weatherCityRow,
.layout-variant-a .weatherButtonContextMenuWrapper,
.layout-variant-b .weatherCityRow,
.layout-variant-b .weatherButtonContextMenuWrapper {
    display: flex;
  }
}
.has-weather.has-search.layout-variant-a .weatherIconCol,
.has-weather.has-search.layout-variant-b .weatherIconCol,
.layout-variant-a .weatherIconCol,
.layout-variant-b .weatherIconCol {
  display: none;
}
@media (min-width: 1122px) {
  .has-weather.has-search.layout-variant-a .weatherIconCol,
.has-weather.has-search.layout-variant-b .weatherIconCol,
.layout-variant-a .weatherIconCol,
.layout-variant-b .weatherIconCol {
    display: flex;
  }
}
.has-weather.has-search.layout-variant-a .weatherDetailedSummaryRow,
.has-weather.has-search.layout-variant-b .weatherDetailedSummaryRow,
.layout-variant-a .weatherDetailedSummaryRow,
.layout-variant-b .weatherDetailedSummaryRow {
  display: none;
}
@media (min-width: 1122px) {
  .has-weather.has-search.layout-variant-a .weatherDetailedSummaryRow,
.has-weather.has-search.layout-variant-b .weatherDetailedSummaryRow,
.layout-variant-a .weatherDetailedSummaryRow,
.layout-variant-b .weatherDetailedSummaryRow {
    display: block;
  }
}
.has-weather.has-search.layout-variant-a .weatherCard,
.has-weather.has-search.layout-variant-b .weatherCard,
.layout-variant-a .weatherCard,
.layout-variant-b .weatherCard {
  min-height: 55px;
}
.has-weather.has-search.layout-variant-a .weatherInfoLink,
.has-weather.has-search.layout-variant-b .weatherInfoLink,
.layout-variant-a .weatherInfoLink,
.layout-variant-b .weatherInfoLink {
  min-width: auto;
  max-width: none;
}
@media (min-width: 1122px) {
  .has-weather.has-search.layout-variant-a .weatherInfoLink,
.has-weather.has-search.layout-variant-b .weatherInfoLink,
.layout-variant-a .weatherInfoLink,
.layout-variant-b .weatherInfoLink {
    min-width: 130px;
    max-width: 190px;
  }
}
.has-weather.has-search.layout-variant-a .weatherForecastRow,
.has-weather.has-search.layout-variant-b .weatherForecastRow,
.layout-variant-a .weatherForecastRow,
.layout-variant-b .weatherForecastRow {
  margin-block: var(--space-small);
}
@media (min-width: 866px) {
  .has-weather.has-search.layout-variant-a .weatherForecastRow,
.has-weather.has-search.layout-variant-b .weatherForecastRow,
.layout-variant-a .weatherForecastRow,
.layout-variant-b .weatherForecastRow {
    margin-block: unset;
  }
}
.has-weather.has-search.layout-variant-a .weatherSponsorText,
.has-weather.has-search.layout-variant-b .weatherSponsorText,
.layout-variant-a .weatherSponsorText,
.layout-variant-b .weatherSponsorText {
  position: relative;
}
.has-weather.has-search.layout-variant-a .weatherSponsorText span,
.has-weather.has-search.layout-variant-b .weatherSponsorText span,
.layout-variant-a .weatherSponsorText span,
.layout-variant-b .weatherSponsorText span {
  position: absolute;
  white-space: nowrap;
  inset-block-start: var(--space-small);
}
@media (min-width: 866px) {
  .has-weather.has-search.layout-variant-a .weatherSponsorText span,
.has-weather.has-search.layout-variant-b .weatherSponsorText span,
.layout-variant-a .weatherSponsorText span,
.layout-variant-b .weatherSponsorText span {
    inset-block-start: unset;
    position: relative;
  }
}

.mobileDownloadPromoWrapper {
  display: none;
  height: 55px;
}
@media (min-width: 1122px) {
  .mobileDownloadPromoWrapper.is-tall {
    height: 74px;
  }
}
@media (min-width: 610px) {
  .mobileDownloadPromoWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset-inline-start: var(--space-xlarge);
    inset-block-start: var(--space-xlarge);
    margin-block-start: 0;
    margin-inline-start: 0;
    z-index: 1;
  }
}
@media (min-width: 610px) {
  .layout-variant-b .mobileDownloadPromoWrapper {
    inset-block-start: 40px;
    inset-inline-start: auto;
    inset-inline-end: var(--space-medium);
  }
}
@media (min-width: 724px) {
  .layout-variant-b .mobileDownloadPromoWrapper {
    inset-inline-end: 40px;
  }
}
.layout-variant-b.no-search .mobileDownloadPromoWrapper {
  display: none;
}
@media (min-width: 866px) {
  .layout-variant-b.no-search .mobileDownloadPromoWrapper {
    display: flex;
    inset-block-start: 40px;
    inset-inline-start: auto;
    inset-inline-end: 40px;
  }
}
@media (min-width: 610px) {
  .layout-variant-a .mobileDownloadPromoWrapper {
    inset-inline-start: 24px;
    inset-block-start: 24px;
  }
}

.mobile-download-promo {
  width: 32px;
  height: 32px;
  appearance: none;
  border: 0;
  border-radius: var(--border-radius-small);
  padding: 0;
  cursor: pointer;
}
.mobile-download-promo:hover {
  background-color: var(--button-background-color-ghost-hover);
}
.mobile-download-promo:hover:active {
  background-color: var(--button-background-color-ghost-active);
}
.mobile-download-promo.is-active {
  background-color: var(--button-background-color-ghost-active);
}
.lightWallpaper .mobile-download-promo, .darkWallpaper .mobile-download-promo {
  background-color: var(--newtab-weather-background-color);
}
@media (prefers-contrast) {
  .lightWallpaper .mobile-download-promo, .darkWallpaper .mobile-download-promo {
    background-color: var(--background-color-box);
  }
}

/* stylelint-disable max-nesting-depth */
.card-outer {
  background: var(--newtab-background-color-secondary);
  border-radius: 8px;
  display: inline-block;
  height: 266px;
  margin-inline-end: 32px;
  position: relative;
  width: 100%;
}
.card-outer .context-menu-button {
  background-clip: padding-box;
  background-color: var(--newtab-button-background);
  background-image: url("chrome://global/skin/icons/more.svg");
  background-position: 50.1%;
  border: 0;
  outline: 1px solid var(--newtab-border-color);
  outline-width: 0;
  border-radius: 100%;
  cursor: pointer;
  color: var(--button-text-color);
  fill: var(--newtab-button-text);
  height: 27px;
  inset-inline-end: -13.5px;
  opacity: 0;
  position: absolute;
  top: -13.5px;
  transform: scale(0.25);
  transition-duration: 150ms;
  transition-property: transform, opacity;
  width: 27px;
}
.card-outer .context-menu-button:is(:active, :focus-visible, :hover) {
  opacity: 1;
  transform: scale(1);
}
.card-outer .context-menu-button:is(:hover) {
  background-color: var(--newtab-button-hover-background);
}
.card-outer .context-menu-button:is(:focus-visible) {
  outline-color: var(--newtab-button-focus-border);
  background-color: var(--newtab-button-focus-background);
  outline-width: 4px;
}
.card-outer .context-menu-button:is(:active) {
  background-color: var(--newtab-button-active-background);
}
.card-outer:is(:focus):not(.placeholder) {
  border: 0;
  outline: var(--focus-outline);
  transition: none;
}
.card-outer:hover {
  box-shadow: none;
  transition: none;
}
.card-outer.placeholder {
  background: transparent;
}
.card-outer.placeholder .card-preview-image-outer,
.card-outer.placeholder .card-context {
  display: none;
}
.card-outer .card {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  height: 100%;
}
.card-outer > a {
  color: inherit;
  display: block;
  height: 100%;
  outline: none;
  position: absolute;
  width: 100%;
}
.card-outer > a:is(:focus) .card {
  border: 0;
  outline: var(--focus-outline);
}
.card-outer > a:is(.active, :focus) .card {
  box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
  transition: box-shadow 150ms;
}
.card-outer > a:is(.active, :focus) .card-title {
  color: var(--newtab-primary-action-background);
}
.card-outer:is(:hover, :focus, .active):not(.placeholder) {
  outline: none;
}
.card-outer:is(:hover, :focus, .active):not(.placeholder) .context-menu-button {
  opacity: 1;
  transform: scale(1);
  transition-delay: 333ms;
}
.card-outer:is(:hover, :focus, .active):not(.placeholder) .card-title {
  color: var(--newtab-primary-action-background);
}
.card-outer:is(:hover, :focus, .active):not(.placeholder) .alternate ~ .card-host-name {
  display: none;
}
.card-outer:is(:hover, :focus, .active):not(.placeholder) .card-host-name.alternate {
  display: block;
}
.card-outer .card-preview-image-outer {
  background-color: var(--newtab-element-secondary-color);
  border-radius: 8px 8px 0 0;
  height: 122px;
  overflow: hidden;
  position: relative;
}
.card-outer .card-preview-image-outer::after {
  border-bottom: 1px solid var(--newtab-card-hairline-color);
  bottom: 0;
  content: "";
  position: absolute;
  width: 100%;
}
.card-outer .card-preview-image-outer .card-preview-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.07, 0.95, 0, 1);
  width: 100%;
}
.card-outer .card-preview-image-outer .card-preview-image.loaded {
  opacity: 1;
}
.card-outer .card-details {
  padding: 15px 16px 12px;
}
.card-outer .card-text {
  max-height: 78px;
  overflow: hidden;
}
.card-outer .card-text.no-host-name, .card-outer .card-text.no-context {
  max-height: 97px;
}
.card-outer .card-text.no-host-name.no-context {
  max-height: 116px;
}
.card-outer .card-text:not(.no-description) .card-title {
  max-height: 57px;
  overflow: hidden;
}
.card-outer .card-host-name {
  color: var(--newtab-text-secondary-color);
  font-size: var(--font-size-small);
  overflow: hidden;
  padding-bottom: 4px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.card-outer .card-host-name.alternate {
  display: none;
}
.card-outer .card-title {
  font-size: inherit;
  font-weight: var(--font-weight-bold);
  line-height: 19px;
  margin: 0 0 2px;
  word-wrap: break-word;
}
.card-outer .card-description {
  font-size: var(--font-size-small);
  line-height: 19px;
  margin: 0;
  overflow: hidden;
  word-wrap: break-word;
}
.card-outer .card-context {
  bottom: 0;
  color: var(--newtab-text-secondary-color);
  display: flex;
  font-size: var(--font-size-small);
  inset-inline-start: 0;
  padding: 9px 16px 9px 14px;
  position: absolute;
}
.card-outer .card-context-icon {
  fill: var(--newtab-text-secondary-color);
  height: 22px;
  margin-inline-end: 6px;
}
.card-outer .card-context-label {
  flex-grow: 1;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1122px) {
  .normal-cards .card-outer {
    height: 370px;
  }
  .normal-cards .card-outer .card-preview-image-outer {
    height: 155px;
  }
  .normal-cards .card-outer .card-details {
    padding: 13px 16px 12px;
  }
  .normal-cards .card-outer .card-text {
    max-height: 140px;
  }
  .normal-cards .card-outer .card-host-name {
    font-size: var(--font-size-small);
    padding-bottom: 5px;
  }
  .normal-cards .card-outer .card-title {
    font-size: var(--font-size-large);
    line-height: 23px;
    margin-bottom: 0;
  }
  .normal-cards .card-outer .card-text:not(.no-description) .card-title {
    max-height: 69px;
  }
  .normal-cards .card-outer .card-description {
    font-size: inherit;
    line-height: 23px;
  }
  .normal-cards .card-outer .card-context {
    bottom: 4px;
    font-size: inherit;
    line-height: 23px;
  }
}

.compact-cards .card-outer {
  height: 160px;
}
.compact-cards .card-outer .card-preview-image-outer {
  height: 108px;
}
.compact-cards .card-outer .card-details {
  padding: 12px 16px;
}
.compact-cards .card-outer .card-host-name {
  line-height: 10px;
}
.compact-cards .card-outer .card-text .card-title, .compact-cards .card-outer .card-text:not(.no-description) .card-title {
  font-size: var(--font-size-small);
  line-height: var(--font-size-small)1;
  max-height: var(--font-size-small)5;
  overflow: hidden;
  padding: 0 0 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-cards .card-outer .card-description {
  display: none;
}
.compact-cards .card-outer .card-context {
  background-color: var(--newtab-background-color-secondary);
  border-radius: 16px;
  clip-path: inset(-1px -1px 4px);
  height: 32px;
  width: 32px;
  padding: 8px;
  top: 91px;
  inset-inline-end: 12px;
  inset-inline-start: auto;
}
.compact-cards .card-outer .card-context::after {
  border: 1px solid var(--newtab-card-hairline-color);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  content: "";
  position: absolute;
  height: 17px;
  width: 34px;
  top: -1px;
  left: -1px;
}
.compact-cards .card-outer .card-context .card-context-icon {
  margin-inline-end: 0;
  height: 16px;
  width: 16px;
}
.compact-cards .card-outer .card-context .card-context-icon.icon-bookmark-added {
  fill: #0A84FF;
}
.compact-cards .card-outer .card-context .card-context-icon.icon-download {
  fill: #12BC00;
}
.compact-cards .card-outer .card-context .card-context-icon.icon-pocket {
  fill: #EF4056;
}
.compact-cards .card-outer .card-context .card-context-label {
  display: none;
}
@media not all and (min-width: 1122px) {
  .compact-cards .hide-for-narrow {
    display: none;
  }
}

/* stylelint-disable max-nesting-depth */
.collapsible-section {
  padding: 10px 25px;
}
.collapsible-section .section-title-container {
  margin: 0;
}
.collapsible-section .section-title-container.has-subtitle {
  display: flex;
  flex-direction: column;
}
@media (min-width: 866px) {
  .collapsible-section .section-title-container.has-subtitle {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}
.collapsible-section .section-title {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  color: var(--newtab-text-primary-color);
}
.collapsible-section .section-title.grey-title {
  color: var(--newtab-text-primary-color);
  display: inline-block;
  fill: var(--newtab-text-primary-color);
  vertical-align: middle;
}
.collapsible-section .section-title .section-title-contents {
  vertical-align: top;
}
@media (max-width: 609px) {
  .collapsible-section .section-title .section-title-contents {
    display: block;
  }
  .collapsible-section .section-title .section-title-contents .learn-more-link-wrapper {
    display: block;
    text-align: center;
  }
  .collapsible-section .section-title .section-title-contents .learn-more-link-wrapper .learn-more-link {
    margin-inline-start: 0;
  }
}
.collapsible-section .section-sub-title {
  font-size: inherit;
  color: var(--newtab-text-secondary-color);
  opacity: 0.3;
}
.collapsible-section .section-top-bar {
  min-height: 19px;
  margin-bottom: 13px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 609px) {
  .collapsible-section .section-top-bar {
    flex-direction: column;
    gap: var(--space-small);
    align-items: flex-start;
  }
}
.collapsible-section.active {
  background: var(--newtab-element-hover-color);
  border-radius: 4px;
}
.collapsible-section .learn-more-link {
  font-size: var(--font-size-small);
  margin-inline-start: 12px;
}
.collapsible-section .learn-more-link a {
  color: var(--newtab-primary-action-background);
}
.collapsible-section .section-body-fallback {
  height: 266px;
}
.collapsible-section .section-body {
  margin: 0 -7px;
  padding: 0 7px;
}
.collapsible-section .section-body.animating {
  overflow: hidden;
  pointer-events: none;
}
.collapsible-section[data-section-id=topsites] .section-top-bar {
  display: none;
}
@media (min-width: 610px) and (max-width: 865px) {
  .collapsible-section[data-section-id=topstories] .card-outer:first-child {
    display: none;
  }
}
.layout-variant-a .collapsible-section .button-topic-selection, .layout-variant-b .collapsible-section .button-topic-selection {
  display: none;
}
@media (min-width: 724px) {
  .layout-variant-a .collapsible-section .button-topic-selection, .layout-variant-b .collapsible-section .button-topic-selection {
    display: block;
  }
}
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button), .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button) {
  background-color: var(--newtab-weather-background-color);
}
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover, .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover {
  background-color: var(--newtab-button-static-hover-background);
}
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover:active, .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover:active {
  background-color: var(--newtab-button-static-active-background);
}
@media (prefers-contrast) {
  .lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button), .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button) {
    background-color: var(--background-color-box);
  }
}

/* stylelint-disable max-nesting-depth */
.discoverystream-admin-toggle {
  position: fixed;
  top: 50px;
  inset-inline-end: var(--space-xlarge);
  border: 0;
  background: none;
  z-index: 4;
  border-radius: 2px;
}
.discoverystream-admin-toggle .icon-devtools {
  background-image: url("chrome://global/skin/icons/developer.svg");
  padding: 15px;
}
.discoverystream-admin-toggle:dir(rtl) {
  transform: scaleX(-1);
}
.discoverystream-admin-toggle:hover {
  background: var(--newtab-element-hover-color);
}
.discoverystream-admin-toggle.expanded {
  background: rgba(0, 0, 0, 0.2);
}

.discoverystream-admin {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  background: var(--newtab-background-color);
  height: 100%;
  overflow-y: scroll;
  margin: 0 auto;
  padding-inline-start: 240px;
  color: var(--newtab-text-primary-color);
  z-index: 3;
}
.discoverystream-admin.collapsed {
  display: none;
}
.discoverystream-admin .sidebar {
  inset-inline-start: 0;
  position: fixed;
  width: 240px;
  padding: 30px 20px;
}
.discoverystream-admin .sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.discoverystream-admin .sidebar li a {
  padding: 10px 34px;
  display: block;
  color: var(--lwt-sidebar-text-color);
}
.discoverystream-admin .sidebar li a:hover {
  background: var(--newtab-background-color-secondary);
}
.discoverystream-admin h1 {
  font-size: var(--font-size-xxlarge);
}
.discoverystream-admin h2 .button,
.discoverystream-admin p .button {
  font-size: inherit;
  padding: 6px 12px;
  margin-inline-start: 5px;
  margin-bottom: 0;
}
.discoverystream-admin .general-textarea {
  direction: ltr;
  width: 740px;
  height: 500px;
  overflow: auto;
  resize: none;
  border-radius: 4px;
  display: flex;
}
.discoverystream-admin .wnp-textarea {
  direction: ltr;
  width: 740px;
  height: 500px;
  overflow: auto;
  resize: none;
  border-radius: 4px;
  display: flex;
}
.discoverystream-admin .json-button {
  display: inline-flex;
  font-size: var(--font-size-small);
  padding: 4px 10px;
  margin-bottom: 6px;
  margin-inline-end: 4px;
}
.discoverystream-admin .json-button:hover {
  background-color: var(--newtab-element-hover-color);
  box-shadow: none;
}
.discoverystream-admin .toggle-wrapper {
  margin-block: var(--space-large);
  width: 200px;
}
.discoverystream-admin .details-section {
  margin-block: var(--space-large);
}
.discoverystream-admin .details-section summary {
  font-size: var(--font-size-large);
}
.discoverystream-admin table {
  border-collapse: collapse;
  width: 100%;
}
.discoverystream-admin table.minimal-table {
  border-collapse: collapse;
  border: 1px solid var(--newtab-border-color);
}
.discoverystream-admin table.minimal-table td {
  padding: 8px;
}
.discoverystream-admin table.minimal-table td:first-child {
  width: 1%;
  white-space: nowrap;
}
.discoverystream-admin table.minimal-table td:not(:first-child) {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
}
.discoverystream-admin table.errorReporting tr {
  border: 1px solid var(--newtab-background-color-secondary);
}
.discoverystream-admin table.errorReporting td {
  padding: 4px;
}
.discoverystream-admin table.errorReporting td[rowspan] {
  border: 1px solid var(--newtab-background-color-secondary);
}
.discoverystream-admin .large-data-container {
  max-height: 500px;
  overflow-y: scroll;
}
.discoverystream-admin .sourceLabel {
  background: var(--newtab-background-color-secondary);
  padding: 2px 5px;
  border-radius: 3px;
}
.discoverystream-admin .sourceLabel.isDisabled {
  background: rgba(215, 0, 34, 0.3);
  color: var(--newtab-status-error);
}
.discoverystream-admin .message-item:first-child td {
  border-top: 1px solid var(--newtab-border-color);
}
.discoverystream-admin .message-item td {
  vertical-align: top;
  padding: 8px;
  border-bottom: 1px solid var(--newtab-border-color);
}
.discoverystream-admin .message-item td.min {
  width: 1%;
  white-space: nowrap;
}
.discoverystream-admin .message-item td.message-summary {
  width: 60%;
}
.discoverystream-admin .message-item td.button-column {
  width: 15%;
}
.discoverystream-admin .message-item td:first-child {
  border-inline-start: 1px solid var(--newtab-border-color);
}
.discoverystream-admin .message-item td:last-child {
  border-inline-end: 1px solid var(--newtab-border-color);
}
.discoverystream-admin .message-item.blocked .message-id,
.discoverystream-admin .message-item.blocked .message-summary {
  opacity: 0.5;
}
.discoverystream-admin .message-item.blocked .message-id {
  opacity: 0.5;
}
.discoverystream-admin .message-item .message-id {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
  font-size: var(--font-size-small);
}
.discoverystream-admin .providerUrl {
  font-size: var(--font-size-small);
}
.discoverystream-admin pre {
  background: var(--newtab-background-color-secondary);
  margin: 0;
  padding: 8px;
  font-size: var(--font-size-small);
  max-width: 750px;
  overflow: auto;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
}
.discoverystream-admin .errorState {
  border: 1px solid var(--newtab-status-error);
}
.discoverystream-admin .helpLink {
  padding: 10px;
  display: flex;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  align-items: center;
}
.discoverystream-admin .helpLink a {
  text-decoration: underline;
}
.discoverystream-admin .helpLink .icon {
  min-width: 18px;
  min-height: 18px;
}
.discoverystream-admin .ds-component {
  margin-bottom: 20px;
}
.discoverystream-admin .modalOverlayInner {
  height: 80%;
}
.discoverystream-admin .clearButton {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  display: flex;
}
.discoverystream-admin .clearButton:hover {
  background: var(--newtab-element-hover-color);
}
.discoverystream-admin .collapsed {
  display: none;
}
.discoverystream-admin .icon {
  display: inline-table;
  cursor: pointer;
  width: 18px;
  height: 18px;
}
.discoverystream-admin .button:disabled, .discoverystream-admin .button:disabled:active {
  opacity: 0.5;
  cursor: unset;
  box-shadow: none;
}
.discoverystream-admin .impressions-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.discoverystream-admin .impressions-section .impressions-item {
  display: flex;
  flex-flow: column nowrap;
  padding: 8px;
  border: 1px solid var(--newtab-border-color);
  border-radius: 5px;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-inner-box {
  display: flex;
  flex-flow: row nowrap;
  gap: 8px;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-category {
  font-size: var(--font-size-large);
  white-space: nowrap;
  flex-grow: 0.1;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-buttons button {
  margin: 0;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-editor {
  display: flex;
  flex-grow: 1.5;
}
.discoverystream-admin .impressions-section .impressions-item .impressions-editor .general-textarea {
  width: auto;
  flex-grow: 1;
}
.discoverystream-admin .weather-section {
  margin-block-end: 24px;
}
.discoverystream-admin .weather-section form {
  display: flex;
}
.discoverystream-admin .weather-section form label {
  margin-inline-end: 12px;
}

.pocket-logged-in-cta {
  font-size: var(--font-size-small);
  margin-inline-end: 20px;
  display: flex;
  align-items: flex-start;
}
.pocket-logged-in-cta .pocket-cta-button {
  white-space: nowrap;
  background: var(--newtab-primary-action-background);
  letter-spacing: -0.34px;
  color: #FFF;
  border-radius: 4px;
  cursor: pointer;
  max-width: 130px;
  margin-top: -1px;
  min-height: 18px;
  padding: 0 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-inline-end: 10px;
}
.pocket-logged-in-cta .pocket-cta-button,
.pocket-logged-in-cta .cta-text {
  vertical-align: top;
}

.more-recommendations {
  display: flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2307692308;
}
.more-recommendations::after {
  background: url("chrome://global/skin/icons/arrow-right-12.svg") no-repeat center center;
  content: "";
  -moz-context-properties: fill;
  display: inline-block;
  fill: var(--newtab-primary-action-background);
  height: 16px;
  margin-inline-start: 5px;
  vertical-align: top;
  width: 12px;
}
.more-recommendations:dir(rtl)::after {
  background-image: url("chrome://global/skin/icons/arrow-left-12.svg");
}

.discovery-stream.ds-layout {
  --gridColumnGap: 48px;
  --gridRowGap: 24px;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: var(--gridColumnGap);
  grid-row-gap: var(--gridRowGap);
  margin: 0 auto;
}
.discovery-stream.ds-layout .ds-column-12 {
  grid-column-start: auto;
  grid-column-end: span 12;
}
.discovery-stream.ds-layout .ds-column-11 {
  grid-column-start: auto;
  grid-column-end: span 11;
}
.discovery-stream.ds-layout .ds-column-10 {
  grid-column-start: auto;
  grid-column-end: span 10;
}
.discovery-stream.ds-layout .ds-column-9 {
  grid-column-start: auto;
  grid-column-end: span 9;
}
.discovery-stream.ds-layout .ds-column-8 {
  grid-column-start: auto;
  grid-column-end: span 8;
}
.discovery-stream.ds-layout .ds-column-7 {
  grid-column-start: auto;
  grid-column-end: span 7;
}
.discovery-stream.ds-layout .ds-column-6 {
  grid-column-start: auto;
  grid-column-end: span 6;
}
.discovery-stream.ds-layout .ds-column-5 {
  grid-column-start: auto;
  grid-column-end: span 5;
}
.discovery-stream.ds-layout .ds-column-4 {
  grid-column-start: auto;
  grid-column-end: span 4;
}
.discovery-stream.ds-layout .ds-column-3 {
  grid-column-start: auto;
  grid-column-end: span 3;
}
.discovery-stream.ds-layout .ds-column-2 {
  grid-column-start: auto;
  grid-column-end: span 2;
}
.discovery-stream.ds-layout .ds-column-1 {
  grid-column-start: auto;
  grid-column-end: span 1;
}
.discovery-stream.ds-layout .ds-column-grid {
  display: flex;
  flex-direction: column;
  grid-row-gap: var(--gridRowGap);
}
.discovery-stream.ds-layout .ds-column-grid > div:empty {
  display: none;
}

.ds-header {
  margin: 8px 0;
}
.ds-header .ds-context {
  font-weight: normal;
}

.ds-header,
.ds-layout .section-title span {
  color: var(--newtab-contextual-text-primary-color);
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
}
.lightWallpaper .ds-header,
.lightWallpaper .ds-layout .section-title span {
  color-scheme: light;
}
.darkWallpaper .ds-header,
.darkWallpaper .ds-layout .section-title span {
  color-scheme: dark;
}
.ds-header .icon,
.ds-layout .section-title span .icon {
  fill: var(--newtab-text-secondary-color);
}

.collapsible-section.ds-layout {
  margin: auto;
}
.lightWallpaper .collapsible-section.ds-layout .section-top-bar .learn-more-link {
  color-scheme: light;
}
.darkWallpaper .collapsible-section.ds-layout .section-top-bar .learn-more-link {
  color-scheme: dark;
}
.collapsible-section.ds-layout .section-top-bar .learn-more-link a {
  color: var(--newtab-primary-action-background);
  font-weight: var(--font-weight-bold);
}
.collapsible-section.ds-layout .section-top-bar .learn-more-link a:is(:focus, :hover) {
  text-decoration: none;
}

.activity-stream.modal-open {
  overflow: hidden;
}

.modalOverlayOuter {
  background: var(--newtab-overlay-color);
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  z-index: 1100;
  overflow: auto;
}
.modalOverlayOuter.active {
  display: flex;
}

.modalOverlayInner {
  min-width: min-content;
  width: 100%;
  max-width: 960px;
  position: relative;
  margin: auto;
  background: var(--newtab-background-color-secondary);
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  display: none;
  z-index: 1100;
}
@media (width <= 960px) {
  .modalOverlayInner {
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: none;
    border-radius: 0;
  }
}
.modalOverlayInner.active {
  display: block;
}
.modalOverlayInner h2 {
  color: var(--newtab-text-primary-color);
  text-align: center;
  margin-top: 30px;
  font-size: var(--font-size-xxlarge);
}
@media (width <= 960px) {
  .modalOverlayInner h2 {
    margin-top: 100px;
  }
}
@media (width <= 850px) {
  .modalOverlayInner h2 {
    margin-top: 30px;
  }
}
.modalOverlayInner .footer {
  border-top: 1px solid var(--newtab-border-color);
  border-radius: 4px;
  height: 70px;
  width: 100%;
  position: absolute;
  bottom: 0;
  text-align: center;
  background-color: #FFF;
}
@media (width <= 850px) and (height <= 730px) {
  .modalOverlayInner .footer {
    position: sticky;
  }
}
@media (width <= 650px) and (height <= 600px) {
  .modalOverlayInner .footer {
    position: sticky;
  }
}
.modalOverlayInner .footer .modalButton {
  margin-top: 20px;
  min-width: 150px;
  height: 30px;
  padding: 4px 30px 6px;
  font-size: inherit;
}
.modalOverlayInner .footer .modalButton:focus, .modalOverlayInner .footer .modalButton.active, .modalOverlayInner .footer .modalButton:hover {
  box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
  transition: box-shadow 150ms;
}

.notification-wrapper {
  position: fixed;
  inset-inline-end: var(--space-medium);
  inset-block-end: var(--space-medium);
  z-index: 10;
}

.notification-feed-item {
  position: relative;
  animation: toastSlideInSlideOut 4s ease-in-out forwards;
}

@keyframes toastSlideInSlideOut {
  0%, 100% {
    opacity: 0;
    top: 50%;
  }
  15%, 85% {
    opacity: 1;
    top: 0;
  }
}
.ds-onboarding-container,
.ds-card-grid .ds-card {
  background: var(--newtab-background-color-secondary);
  border-radius: 4px;
}
.ds-onboarding-container:not(.placeholder),
.ds-card-grid .ds-card:not(.placeholder) {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.ds-onboarding-container:not(.placeholder) .img-wrapper .img img,
.ds-onboarding-container:not(.placeholder) .img-wrapper .img .placeholder-image,
.ds-card-grid .ds-card:not(.placeholder) .img-wrapper .img img,
.ds-card-grid .ds-card:not(.placeholder) .img-wrapper .img .placeholder-image {
  border-radius: 8px 8px 0 0;
}

.ds-onboarding-container {
  padding-inline-start: 16px;
  padding-inline-end: 16px;
  margin-bottom: 24px;
  position: relative;
}
@media (min-width: 610px) {
  .ds-onboarding-container {
    padding-inline-end: 48px;
  }
}
@media (min-width: 866px) {
  .ds-onboarding-container {
    padding-inline-end: 56px;
  }
}
.ds-onboarding-container .ds-onboarding {
  position: static;
  display: flex;
}
.ds-onboarding-container .ds-onboarding .ds-dismiss-button {
  inset-inline-end: 8px;
  top: 8px;
}
.ds-onboarding-container header {
  display: flex;
  margin: 32px 0 8px;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  color: #EF4056;
}
[lwt-newtab-brighttext] .ds-onboarding-container header {
  color: var(--newtab-background-color-primary);
}
@media (min-width: 610px) {
  .ds-onboarding-container header {
    margin: 16px 0 8px;
    display: block;
    height: 24px;
  }
}
.ds-onboarding-container p {
  margin: 8px 0 16px;
  font-size: var(--font-size-small);
}
.ds-onboarding-container .icon-pocket {
  fill: #EF4056;
  margin-top: 3px;
  margin-inline-end: 8px;
  height: 22px;
  width: 22px;
  background-image: url("chrome://global/skin/icons/pocket.svg");
  background-size: contain;
}
[lwt-newtab-brighttext] .ds-onboarding-container .icon-pocket {
  fill: var(--newtab-text-primary-color);
}
@media (forced-colors: active) {
  [lwt-newtab-brighttext] .ds-onboarding-container .icon-pocket {
    fill: CurrentColor;
  }
}
@media (forced-colors: active) {
  .ds-onboarding-container .icon-pocket {
    fill: CurrentColor;
  }
}
@media (min-width: 610px) {
  .ds-onboarding-container .icon-pocket {
    margin-top: -5px;
    margin-inline-start: -2px;
    margin-inline-end: 15px;
    height: 30px;
    width: 30px;
  }
}
.ds-onboarding-container .ds-onboarding-graphic {
  background-image: image-set(url("chrome://newtab/content/data/content/assets/pocket-onboarding.avif"), url("chrome://newtab/content/data/content/assets/pocket-onboarding@2x.avif") 2x);
  border-radius: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 120px;
  width: 200px;
  margin-top: 16px;
  margin-bottom: 16px;
  margin-inline-start: 54px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 866px) {
  .ds-onboarding-container .ds-onboarding-graphic {
    display: block;
  }
}

.ds-card-grid {
  display: grid;
  grid-gap: 24px;
  position: relative;
}
.ds-card-grid.ds-card-grid-compact {
  grid-gap: 20px;
}
.ds-card-grid.ad-sizing-variant-a, .ds-card-grid.ad-sizing-variant-b {
  row-gap: 24px;
  column-gap: 18px;
}
@media (min-width: 610px) and (max-width: 866px) {
  .ds-card-grid.ds-card-grid-recent-saves .ds-card:last-child:nth-child(2n-1) {
    display: none;
  }
}
.ds-card-grid .ds-card-link:focus {
  border: 0;
  outline: var(--focus-outline);
  transition: none;
  border-radius: 8px;
}
.ds-column-5 .ds-card-grid, .ds-column-6 .ds-card-grid, .ds-column-7 .ds-card-grid, .ds-column-8 .ds-card-grid {
  grid-template-columns: repeat(2, 1fr);
}
.ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 610px) {
  .ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 866px) {
  .ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ds-column-9 .ds-card-grid .title, .ds-column-10 .ds-card-grid .title, .ds-column-11 .ds-card-grid .title, .ds-column-12 .ds-card-grid .title {
  font-size: var(--font-size-large);
}
.ds-column-9 .ds-card-grid .excerpt, .ds-column-10 .ds-card-grid .excerpt, .ds-column-11 .ds-card-grid .excerpt, .ds-column-12 .ds-card-grid .excerpt {
  font-size: 15;
  -webkit-line-clamp: 3;
  line-height: 24;
}
.ds-card-grid.empty {
  grid-template-columns: auto;
}
.ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 610px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 866px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1122px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card.placeholder {
  min-height: 247px;
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-footer {
  margin-top: 8px;
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .source,
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-sponsored-label,
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .status-message .story-context-label {
  color: var(--newtab-text-secondary-color);
  -webkit-line-clamp: 2;
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .source,
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-sponsored-label {
  font-size: var(--font-size-small);
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .status-message .story-context-label {
  font-size: var(--font-size-small);
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-badge-icon {
  margin-inline-end: 2px;
  margin-bottom: 2px;
  height: 14px;
  width: 14px;
  background-size: 14px;
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .title {
  font-size: inherit;
}
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .info-wrap {
  flex-grow: 0;
}
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 610px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 866px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (height <= 1065px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt {
    display: none;
  }
}
@media (max-width: 1122px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder {
    min-height: 247px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer {
    margin-top: 8px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
    color: var(--newtab-text-secondary-color);
    -webkit-line-clamp: 2;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label {
    font-size: var(--font-size-small);
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
    font-size: var(--font-size-small);
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon {
    margin-inline-end: 2px;
    margin-bottom: 2px;
    height: 14px;
    width: 14px;
    background-size: 14px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title {
    font-size: inherit;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap {
    flex-grow: 0;
  }
}
@media (min-width: 1122px) and (height <= 964px) {
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder {
    min-height: 247px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer {
    margin-top: 8px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
    color: var(--newtab-text-secondary-color);
    -webkit-line-clamp: 2;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label {
    font-size: var(--font-size-small);
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
    font-size: var(--font-size-small);
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon {
    margin-inline-end: 2px;
    margin-bottom: 2px;
    height: 14px;
    width: 14px;
    background-size: 14px;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title {
    font-size: inherit;
  }
  .ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap {
    flex-grow: 0;
  }
}

.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder),
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) {
  box-shadow: none;
  background: none;
}
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus,
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus {
  box-shadow: none;
}
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus .img-wrapper .img img,
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus .img-wrapper .img img {
  border: 0;
  outline: var(--focus-outline);
}
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .img-wrapper .img img,
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .img-wrapper .img img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .meta,
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .meta {
  padding: 12px 0 0;
}

.ds-layout .ds-sub-header {
  margin-top: 24px;
}
.ds-layout .ds-sub-header .section-title-container {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  display: flex;
}
.ds-layout .ds-sub-header .section-sub-link {
  color: var(--newtab-primary-action-background);
  font-size: inherit;
  cursor: pointer;
}
.ds-layout .ds-sub-header .section-sub-link:hover {
  text-decoration: underline;
}
.ds-layout .ds-sub-header .section-sub-link:active {
  color: var(--newtab-primary-element-active-color);
}

.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites {
  position: relative;
}
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
  width: 266px;
  margin-inline: auto;
}
@media (min-width: 610px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
    width: 266px;
  }
}
@media (min-width: 724px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
    width: 510px;
  }
}
@media (min-width: 1122px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
    width: 986px;
  }
}
@media (min-width: 866px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
    display: inline-block;
  }
}

.has-sections-grid.layout-variant-a .ds-outer-wrapper-breakpoint-override .ds-layout-topsites,
.has-sections-grid.layout-variant-b .ds-outer-wrapper-breakpoint-override .ds-layout-topsites {
  position: relative;
}
.has-sections-grid.layout-variant-a .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper,
.has-sections-grid.layout-variant-b .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
  margin-inline: auto;
  width: 100%;
}
.has-sections-grid.layout-variant-a .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow,
.has-sections-grid.layout-variant-b .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
  display: none;
}
@media (min-width: 866px) {
  .has-sections-grid.layout-variant-a .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow,
.has-sections-grid.layout-variant-b .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
    display: none;
  }
}
@media (min-width: 1122px) {
  .has-sections-grid.layout-variant-a .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow,
.has-sections-grid.layout-variant-b .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
    display: inline-block;
  }
}

.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
  width: auto;
}
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .ds-card {
  width: 100%;
  height: 100%;
}
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
  width: 346px;
  margin: 0 auto;
}
@media (min-width: 610px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 346px;
  }
}
@media (min-width: 724px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 659px;
  }
}
@media (min-width: 1122px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    width: 989px;
  }
}
@media (min-width: 1390px) {
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main {
    width: auto;
  }
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
    display: flex;
    flex-direction: column;
    width: 1311px;
  }
  .has-sections-grid .ds-outer-wrapper-breakpoint-override main .ds-highlights .card-outer {
    min-width: 216px;
  }
}

.ds-section-wrapper {
  padding-inline: 0;
  position: relative;
}
.ds-section-wrapper .ds-section {
  padding-block-end: var(--space-medium);
}
.ds-section-wrapper .ds-section:last-child {
  padding-block-end: 0;
}
.ds-section-wrapper .ds-section .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: var(--space-small) var(--space-medium);
}
.ds-section-wrapper .ds-section .section-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xlarge);
  color: var(--newtab-contextual-text-primary-color);
  margin-block: 0;
}
.lightWallpaper .ds-section-wrapper .ds-section .section-title {
  color-scheme: light;
}
.darkWallpaper .ds-section-wrapper .ds-section .section-title {
  color-scheme: dark;
}
@media (min-width: 724px) {
  .ds-section-wrapper .ds-section .section-title {
    font-size: var(--font-size-xxlarge);
  }
}
.ds-section-wrapper .ds-section .section-subtitle {
  color: var(--newtab-contextual-text-primary-color);
  margin-block: var(--space-xsmall) 0;
  font-size: var(--font-size-root);
}
.lightWallpaper .ds-section-wrapper .ds-section .section-subtitle {
  color-scheme: light;
}
.darkWallpaper .ds-section-wrapper .ds-section .section-subtitle {
  color-scheme: dark;
}
.ds-section-wrapper .section-context-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: var(--space-small);
}
.lightWallpaper .ds-section-wrapper .section-context-wrapper {
  color-scheme: light;
}
.darkWallpaper .ds-section-wrapper .section-context-wrapper {
  color-scheme: dark;
}
.ds-section-wrapper .section-follow .section-button-following-text {
  display: none;
}
.ds-section-wrapper .section-follow .section-button-unfollow-text {
  display: none;
}
.ds-section-wrapper .section-follow.following .section-button-follow-text {
  display: none;
}
.ds-section-wrapper .section-follow.following .section-button-following-text {
  display: block;
}
.ds-section-wrapper .section-follow.following:hover .section-button-following-text {
  display: none;
}
.ds-section-wrapper .section-follow.following:hover .section-button-unfollow-text {
  display: block;
}

.ds-section-grid.ds-card-grid {
  grid-gap: var(--space-large);
  grid-template-columns: repeat(1, 300px);
}
@media (min-width: 610px) {
  .ds-section-grid.ds-card-grid .col-1-position-0 {
    order: 0;
  }
  .ds-section-grid.ds-card-grid .col-1-position-1 {
    order: 1;
  }
  .ds-section-grid.ds-card-grid .col-1-position-2 {
    order: 2;
  }
  .ds-section-grid.ds-card-grid .col-1-position-3 {
    order: 3;
  }
  .ds-section-grid.ds-card-grid .col-1-position-4 {
    order: 4;
  }
  .ds-section-grid.ds-card-grid .col-1-position-5 {
    order: 5;
  }
  .ds-section-grid.ds-card-grid .col-1-position-6 {
    order: 6;
  }
  .ds-section-grid.ds-card-grid .col-1-small {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui {
    padding: unset;
  }
  .ds-section-grid.ds-card-grid .col-1-small .card-stp-thumbs-buttons-wrapper {
    display: none;
  }
  .ds-section-grid.ds-card-grid .col-1-small .ds-card-link {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    gap: var(--space-medium);
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-1-small .img-wrapper {
    width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 5/6;
  }
  .ds-section-grid.ds-card-grid .col-1-small .img-wrapper .ds-image.img {
    width: 100%;
    height: 100%;
    padding-top: 0;
    min-width: 100%;
  }
  .ds-section-grid.ds-card-grid .col-1-small .img-wrapper .ds-image.img img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
    object-fit: cover;
  }
  .ds-section-grid.ds-card-grid .col-1-small:not(.placeholder) .img-wrapper > .ds-image.img > img {
    width: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-1-small .meta {
    padding: 0;
    align-self: flex-start;
    min-height: 125px;
  }
  .ds-section-grid.ds-card-grid .col-1-small .meta .info-wrap .title {
    font-size: var(--font-size-small);
    margin-block: var(--space-xsmall) 0;
    -webkit-line-clamp: 4;
  }
  .ds-section-grid.ds-card-grid .col-1-small .meta .sections-card-footer {
    margin-block-start: var(--space-xxsmall);
  }
  .ds-section-grid.ds-card-grid .col-1-small .card-stp-button-hover-background {
    padding-block-start: unset;
  }
  .ds-section-grid.ds-card-grid .col-1-small .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-1-medium {
    grid-row: span 2;
    grid-column: span 1;
    flex-direction: column;
    padding: 0;
    align-items: initial;
    gap: initial;
  }
  .ds-section-grid.ds-card-grid .col-1-medium .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-1-medium .card-stp-thumbs-buttons-wrapper {
    display: block;
  }
  .ds-section-grid.ds-card-grid .col-1-medium .ds-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .ds-section-grid.ds-card-grid .col-1-medium .img-wrapper {
    width: 100%;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: initial;
  }
  .ds-section-grid.ds-card-grid .col-1-medium:not(.placeholder) .img-wrapper > .ds-image.img > img {
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  }
  .ds-section-grid.ds-card-grid .col-1-medium .meta {
    padding: var(--space-medium) var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-1-medium .meta .info-wrap .title {
    -webkit-line-clamp: 3;
    margin-block: 0 var(--space-small);
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-1-medium .meta .info-wrap .excerpt {
    display: block;
    -webkit-line-clamp: 3;
  }
  .ds-section-grid.ds-card-grid .col-1-large {
    grid-row: span 2;
    grid-column: span 2;
  }
}
@media (min-width: 610px) and (724px <= width < 1122px), (min-width: 610px) and (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui {
    align-content: flex-start;
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .ds-card-link {
    flex-direction: row;
    gap: var(--space-xlarge);
    padding: var(--space-xxlarge);
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .img-wrapper {
    width: 265px;
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .ds-image.img {
    aspect-ratio: 1/1;
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .ds-image.img img {
    border-radius: var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .meta {
    padding: 0;
    min-height: 220px;
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .meta .title {
    -webkit-line-clamp: 3;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    margin-block: 0 var(--space-small);
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .meta .excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .card-stp-button-hover-background {
    inset-inline-start: 0;
  }
}
@media (min-width: 610px) {
  .ds-section-grid.ds-card-grid .col-1-show-excerpt .meta .info-wrap .excerpt {
    display: block;
  }
}
@media (min-width: 610px) {
  .ds-section-grid.ds-card-grid .col-1-hide-excerpt .meta .info-wrap .excerpt {
    display: none;
  }
}
@media (min-width: 724px) {
  .ds-section-grid.ds-card-grid {
    grid-template-columns: repeat(2, 300px);
  }
  .ds-section-grid.ds-card-grid .col-2-position-0 {
    order: 0;
  }
  .ds-section-grid.ds-card-grid .col-2-position-1 {
    order: 1;
  }
  .ds-section-grid.ds-card-grid .col-2-position-2 {
    order: 2;
  }
  .ds-section-grid.ds-card-grid .col-2-position-3 {
    order: 3;
  }
  .ds-section-grid.ds-card-grid .col-2-position-4 {
    order: 4;
  }
  .ds-section-grid.ds-card-grid .col-2-position-5 {
    order: 5;
  }
  .ds-section-grid.ds-card-grid .col-2-position-6 {
    order: 6;
  }
  .ds-section-grid.ds-card-grid .col-2-small {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui {
    padding: unset;
  }
  .ds-section-grid.ds-card-grid .col-2-small .card-stp-thumbs-buttons-wrapper {
    display: none;
  }
  .ds-section-grid.ds-card-grid .col-2-small .ds-card-link {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    gap: var(--space-medium);
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-2-small .img-wrapper {
    width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 5/6;
  }
  .ds-section-grid.ds-card-grid .col-2-small .img-wrapper .ds-image.img {
    width: 100%;
    height: 100%;
    padding-top: 0;
    min-width: 100%;
  }
  .ds-section-grid.ds-card-grid .col-2-small .img-wrapper .ds-image.img img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
    object-fit: cover;
  }
  .ds-section-grid.ds-card-grid .col-2-small:not(.placeholder) .img-wrapper > .ds-image.img > img {
    width: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-2-small .meta {
    padding: 0;
    align-self: flex-start;
    min-height: 125px;
  }
  .ds-section-grid.ds-card-grid .col-2-small .meta .info-wrap .title {
    font-size: var(--font-size-small);
    margin-block: var(--space-xsmall) 0;
    -webkit-line-clamp: 4;
  }
  .ds-section-grid.ds-card-grid .col-2-small .meta .sections-card-footer {
    margin-block-start: var(--space-xxsmall);
  }
  .ds-section-grid.ds-card-grid .col-2-small .card-stp-button-hover-background {
    padding-block-start: unset;
  }
  .ds-section-grid.ds-card-grid .col-2-small .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-2-medium {
    grid-row: span 2;
    grid-column: span 1;
    flex-direction: column;
    padding: 0;
    align-items: initial;
    gap: initial;
  }
  .ds-section-grid.ds-card-grid .col-2-medium .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-2-medium .card-stp-thumbs-buttons-wrapper {
    display: block;
  }
  .ds-section-grid.ds-card-grid .col-2-medium .ds-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .ds-section-grid.ds-card-grid .col-2-medium .img-wrapper {
    width: 100%;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: initial;
  }
  .ds-section-grid.ds-card-grid .col-2-medium:not(.placeholder) .img-wrapper > .ds-image.img > img {
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  }
  .ds-section-grid.ds-card-grid .col-2-medium .meta {
    padding: var(--space-medium) var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-2-medium .meta .info-wrap .title {
    -webkit-line-clamp: 3;
    margin-block: 0 var(--space-small);
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-2-medium .meta .info-wrap .excerpt {
    display: block;
    -webkit-line-clamp: 3;
  }
  .ds-section-grid.ds-card-grid .col-2-large {
    grid-row: span 2;
    grid-column: span 2;
  }
}
@media (min-width: 724px) and (724px <= width < 1122px), (min-width: 724px) and (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui {
    align-content: flex-start;
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-card-link {
    flex-direction: row;
    gap: var(--space-xlarge);
    padding: var(--space-xxlarge);
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .img-wrapper {
    width: 265px;
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-image.img {
    aspect-ratio: 1/1;
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-image.img img {
    border-radius: var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta {
    padding: 0;
    min-height: 220px;
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .title {
    -webkit-line-clamp: 3;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    margin-block: 0 var(--space-small);
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background {
    inset-inline-start: 0;
  }
}
@media (min-width: 724px) {
  .ds-section-grid.ds-card-grid .col-2-show-excerpt .meta .info-wrap .excerpt {
    display: block;
  }
}
@media (min-width: 724px) {
  .ds-section-grid.ds-card-grid .col-2-hide-excerpt .meta .info-wrap .excerpt {
    display: none;
  }
}
@media (min-width: 1122px) {
  .ds-section-grid.ds-card-grid {
    grid-template-columns: repeat(3, 300px);
    gap: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-3-position-0 {
    order: 0;
  }
  .ds-section-grid.ds-card-grid .col-3-position-1 {
    order: 1;
  }
  .ds-section-grid.ds-card-grid .col-3-position-2 {
    order: 2;
  }
  .ds-section-grid.ds-card-grid .col-3-position-3 {
    order: 3;
  }
  .ds-section-grid.ds-card-grid .col-3-position-4 {
    order: 4;
  }
  .ds-section-grid.ds-card-grid .col-3-position-5 {
    order: 5;
  }
  .ds-section-grid.ds-card-grid .col-3-position-6 {
    order: 6;
  }
  .ds-section-grid.ds-card-grid .col-3-small {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui {
    padding: unset;
  }
  .ds-section-grid.ds-card-grid .col-3-small .card-stp-thumbs-buttons-wrapper {
    display: none;
  }
  .ds-section-grid.ds-card-grid .col-3-small .ds-card-link {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    gap: var(--space-medium);
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-3-small .img-wrapper {
    width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 5/6;
  }
  .ds-section-grid.ds-card-grid .col-3-small .img-wrapper .ds-image.img {
    width: 100%;
    height: 100%;
    padding-top: 0;
    min-width: 100%;
  }
  .ds-section-grid.ds-card-grid .col-3-small .img-wrapper .ds-image.img img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
    object-fit: cover;
  }
  .ds-section-grid.ds-card-grid .col-3-small:not(.placeholder) .img-wrapper > .ds-image.img > img {
    width: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-3-small .meta {
    padding: 0;
    align-self: flex-start;
    min-height: 125px;
  }
  .ds-section-grid.ds-card-grid .col-3-small .meta .info-wrap .title {
    font-size: var(--font-size-small);
    margin-block: var(--space-xsmall) 0;
    -webkit-line-clamp: 4;
  }
  .ds-section-grid.ds-card-grid .col-3-small .meta .sections-card-footer {
    margin-block-start: var(--space-xxsmall);
  }
  .ds-section-grid.ds-card-grid .col-3-small .card-stp-button-hover-background {
    padding-block-start: unset;
  }
  .ds-section-grid.ds-card-grid .col-3-small .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-3-medium {
    grid-row: span 2;
    grid-column: span 1;
    flex-direction: column;
    padding: 0;
    align-items: initial;
    gap: initial;
  }
  .ds-section-grid.ds-card-grid .col-3-medium .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-3-medium .card-stp-thumbs-buttons-wrapper {
    display: block;
  }
  .ds-section-grid.ds-card-grid .col-3-medium .ds-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .ds-section-grid.ds-card-grid .col-3-medium .img-wrapper {
    width: 100%;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: initial;
  }
  .ds-section-grid.ds-card-grid .col-3-medium:not(.placeholder) .img-wrapper > .ds-image.img > img {
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  }
  .ds-section-grid.ds-card-grid .col-3-medium .meta {
    padding: var(--space-medium) var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-3-medium .meta .info-wrap .title {
    -webkit-line-clamp: 3;
    margin-block: 0 var(--space-small);
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-3-medium .meta .info-wrap .excerpt {
    display: block;
    -webkit-line-clamp: 3;
  }
  .ds-section-grid.ds-card-grid .col-3-large {
    grid-row: span 2;
    grid-column: span 2;
  }
}
@media (min-width: 1122px) and (724px <= width < 1122px), (min-width: 1122px) and (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui {
    align-content: flex-start;
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-card-link {
    flex-direction: row;
    gap: var(--space-xlarge);
    padding: var(--space-xxlarge);
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .img-wrapper {
    width: 265px;
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-image.img {
    aspect-ratio: 1/1;
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-image.img img {
    border-radius: var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta {
    padding: 0;
    min-height: 220px;
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .title {
    -webkit-line-clamp: 3;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    margin-block: 0 var(--space-small);
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background {
    inset-inline-start: 0;
  }
}
@media (min-width: 1122px) {
  .ds-section-grid.ds-card-grid .col-3-show-excerpt .meta .info-wrap .excerpt {
    display: block;
  }
}
@media (min-width: 1122px) {
  .ds-section-grid.ds-card-grid .col-3-hide-excerpt .meta .info-wrap .excerpt {
    display: none;
  }
}
@media (min-width: 1390px) {
  .ds-section-grid.ds-card-grid {
    grid-template-columns: repeat(4, 300px);
  }
  .ds-section-grid.ds-card-grid .col-4-position-0 {
    order: 0;
  }
  .ds-section-grid.ds-card-grid .col-4-position-1 {
    order: 1;
  }
  .ds-section-grid.ds-card-grid .col-4-position-2 {
    order: 2;
  }
  .ds-section-grid.ds-card-grid .col-4-position-3 {
    order: 3;
  }
  .ds-section-grid.ds-card-grid .col-4-position-4 {
    order: 4;
  }
  .ds-section-grid.ds-card-grid .col-4-position-5 {
    order: 5;
  }
  .ds-section-grid.ds-card-grid .col-4-position-6 {
    order: 6;
  }
  .ds-section-grid.ds-card-grid .col-4-small {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui {
    padding: unset;
  }
  .ds-section-grid.ds-card-grid .col-4-small .card-stp-thumbs-buttons-wrapper {
    display: none;
  }
  .ds-section-grid.ds-card-grid .col-4-small .ds-card-link {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    gap: var(--space-medium);
    padding: var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-4-small .img-wrapper {
    width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 5/6;
  }
  .ds-section-grid.ds-card-grid .col-4-small .img-wrapper .ds-image.img {
    width: 100%;
    height: 100%;
    padding-top: 0;
    min-width: 100%;
  }
  .ds-section-grid.ds-card-grid .col-4-small .img-wrapper .ds-image.img img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
    object-fit: cover;
  }
  .ds-section-grid.ds-card-grid .col-4-small:not(.placeholder) .img-wrapper > .ds-image.img > img {
    width: 100%;
    border-radius: var(--border-radius-medium) var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-4-small .meta {
    padding: 0;
    align-self: flex-start;
    min-height: 125px;
  }
  .ds-section-grid.ds-card-grid .col-4-small .meta .info-wrap .title {
    font-size: var(--font-size-small);
    margin-block: var(--space-xsmall) 0;
    -webkit-line-clamp: 4;
  }
  .ds-section-grid.ds-card-grid .col-4-small .meta .sections-card-footer {
    margin-block-start: var(--space-xxsmall);
  }
  .ds-section-grid.ds-card-grid .col-4-small .card-stp-button-hover-background {
    padding-block-start: unset;
  }
  .ds-section-grid.ds-card-grid .col-4-small .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-4-medium {
    grid-row: span 2;
    grid-column: span 1;
    flex-direction: column;
    padding: 0;
    align-items: initial;
    gap: initial;
  }
  .ds-section-grid.ds-card-grid .col-4-medium .card-stp-button-position-wrapper {
    inset-inline-end: 10px;
  }
  .ds-section-grid.ds-card-grid .col-4-medium .card-stp-thumbs-buttons-wrapper {
    display: block;
  }
  .ds-section-grid.ds-card-grid .col-4-medium .ds-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .ds-section-grid.ds-card-grid .col-4-medium .img-wrapper {
    width: 100%;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: initial;
  }
  .ds-section-grid.ds-card-grid .col-4-medium:not(.placeholder) .img-wrapper > .ds-image.img > img {
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  }
  .ds-section-grid.ds-card-grid .col-4-medium .meta {
    padding: var(--space-medium) var(--space-large);
  }
  .ds-section-grid.ds-card-grid .col-4-medium .meta .info-wrap .title {
    -webkit-line-clamp: 3;
    margin-block: 0 var(--space-small);
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-4-medium .meta .info-wrap .excerpt {
    display: block;
    -webkit-line-clamp: 3;
  }
  .ds-section-grid.ds-card-grid .col-4-large {
    grid-row: span 2;
    grid-column: span 2;
  }
}
@media (min-width: 1390px) and (724px <= width < 1122px), (min-width: 1390px) and (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui {
    align-content: flex-start;
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-card-link {
    flex-direction: row;
    gap: var(--space-xlarge);
    padding: var(--space-xxlarge);
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .img-wrapper {
    width: 265px;
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-image.img {
    aspect-ratio: 1/1;
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-image.img img {
    border-radius: var(--border-radius-medium);
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta {
    padding: 0;
    min-height: 220px;
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .title {
    -webkit-line-clamp: 3;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    margin-block: 0 var(--space-small);
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--font-size-root);
  }
  .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background {
    inset-inline-start: 0;
  }
}
@media (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-4-show-excerpt .meta .info-wrap .excerpt {
    display: block;
  }
}
@media (min-width: 1390px) {
  .ds-section-grid.ds-card-grid .col-4-hide-excerpt .meta .info-wrap .excerpt {
    display: none;
  }
}

.ds-dismiss.ds-dismiss-ds-collection .ds-dismiss-button {
  margin: 15px 0 0;
  inset-inline-end: 25px;
}
.ds-dismiss.ds-dismiss-ds-collection.hovering {
  background: var(--newtab-element-hover-color);
}

.ds-collection-card-grid {
  padding: 10px 25px 25px;
  margin: 0 0 20px;
}
.ds-collection-card-grid .story-footer {
  display: none;
}
.ds-collection-card-grid .ds-header {
  padding: 0 40px 0 0;
  margin-bottom: 12px;
}
.ds-collection-card-grid .ds-header .title {
  color: var(--newtab-text-primary-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-large);
}
.ds-collection-card-grid .ds-header .ds-context {
  color: var(--newtab-text-secondary-color);
  font-weight: normal;
  font-size: var(--font-size-small);
}

/* stylelint-disable max-nesting-depth */
.ds-highlights .section .section-list {
  grid-gap: var(--gridRowGap);
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 610px) {
  .ds-highlights .section .section-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 866px) {
  .ds-highlights .section .section-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ds-highlights .section .section-list .card-outer {
  height: 175px;
}
.ds-highlights .section .section-list .card-outer .card-host-name {
  font-size: var(--font-size-small);
  line-height: 20px;
  margin-bottom: 2px;
  padding-bottom: 0;
  text-transform: unset;
}
.ds-highlights .section .section-list .card-outer .card-title {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  line-height: 20px;
  max-height: 20px;
}
.ds-highlights .section .section-list .card-outer a {
  text-decoration: none;
}
.ds-highlights .section .section-list .card-outer .context-menu-button {
  background-color: var(--newtab-button-static-background);
}
.ds-highlights .section .section-list .card-outer .context-menu-button:hover {
  background-color: var(--newtab-button-static-hover-background);
}
.ds-highlights .section .section-list .card-outer .context-menu-button:hover:active {
  background-color: var(--newtab-button-static-active-background);
}
.ds-highlights .section .section-list .card-outer .context-menu-button:focus-visible {
  background-color: var(--newtab-button-static-focus-background);
}
.ds-highlights .hide-for-narrow {
  display: block;
}

.ds-hr {
  border: 0;
  border-top: 1px solid #D7D7DB;
  height: 0;
}
[lwt-newtab-brighttext] .ds-hr {
  border-top: 1px solid #4A4A4F;
}

/* stylelint-disable max-nesting-depth */
.ds-navigation {
  color: var(--newtab-contextual-text-primary-color);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  padding: 4px 0;
}
@media (min-width: 1122px) {
  .ds-navigation {
    line-height: 32px;
  }
}
.ds-navigation.ds-navigation-centered {
  text-align: center;
}
.ds-navigation.ds-navigation-right-aligned {
  text-align: end;
}
.lightWallpaper .ds-navigation {
  color-scheme: light;
}
.darkWallpaper .ds-navigation {
  color-scheme: dark;
}
.ds-navigation ul {
  display: inline;
  margin: 0;
  padding: 0;
}
.ds-navigation ul li {
  display: inline-block;
}
.ds-navigation ul li::after {
  content: "·";
  padding: 6px;
}
.ds-navigation ul li:last-child::after {
  content: none;
}
.ds-navigation ul li a:hover, .ds-navigation ul li a:active {
  text-decoration: none;
}
.ds-navigation ul li a:active {
  color: var(--newtab-primary-element-active-color);
}
.ds-navigation .ds-navigation-header {
  padding-inline-end: 6px;
}
.ds-navigation .ds-navigation-privacy {
  padding-inline-start: 6px;
  float: inline-end;
}
.ds-navigation .ds-navigation-privacy:hover {
  text-decoration: none;
}
.ds-navigation.ds-navigation-new-topics {
  display: block;
  padding-top: 32px;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-header {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  display: inline-block;
  margin-bottom: 8px;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family {
  text-align: center;
  font-size: var(--font-size-small);
  margin: 16px auto 28px;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family span {
  margin: 0 6px;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .firefox-logo,
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .pocket-logo {
  height: 20px;
  width: 20px;
  background-size: cover;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .firefox-logo {
  background-image: url("chrome://newtab/content/data/content/assets/firefox.svg");
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .pocket-logo {
  background-image: url("chrome://global/skin/icons/pocket.svg");
  fill: #EF4056;
}
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .ds-navigation-family-message {
  display: block;
}
@media (min-width: 610px) {
  .ds-navigation.ds-navigation-new-topics .ds-navigation-family .ds-navigation-family-message {
    display: inline;
  }
}
@media (min-width: 610px) {
  .ds-navigation.ds-navigation-new-topics .ds-navigation-family {
    margin-top: 43px;
  }
}
.ds-navigation.ds-navigation-new-topics ul {
  display: grid;
  grid-gap: 0 24px;
  grid-auto-flow: column;
  grid-template: repeat(8, 1fr)/repeat(1, 1fr);
}
.ds-navigation.ds-navigation-new-topics ul li {
  border-top: 1px solid var(--newtab-border-color);
  line-height: 24px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
}
.ds-navigation.ds-navigation-new-topics ul li::after {
  content: "";
  padding: 0;
}
.ds-navigation.ds-navigation-new-topics ul li:nth-last-child(2), .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(3) {
  display: none;
}
.ds-navigation.ds-navigation-new-topics ul li:nth-last-child(1) {
  border-bottom: 1px solid var(--newtab-border-color);
}
@media (min-width: 610px) {
  .ds-navigation.ds-navigation-new-topics ul {
    grid-template: repeat(3, 1fr)/repeat(2, 1fr);
  }
  .ds-navigation.ds-navigation-new-topics ul li:nth-child(3) {
    border-bottom: 1px solid var(--newtab-border-color);
  }
}
@media (min-width: 866px) {
  .ds-navigation.ds-navigation-new-topics ul {
    grid-template: repeat(2, 1fr)/repeat(3, 1fr);
  }
  .ds-navigation.ds-navigation-new-topics ul li:nth-child(odd) {
    border-bottom: 0;
  }
  .ds-navigation.ds-navigation-new-topics ul li:nth-child(even) {
    border-bottom: 1px solid var(--newtab-border-color);
  }
}
@media (min-width: 1122px) {
  .ds-navigation.ds-navigation-new-topics ul {
    grid-template: repeat(2, 1fr)/repeat(4, 1fr);
  }
  .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(2), .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(3) {
    display: block;
  }
}

.ds-section-title {
  text-align: center;
  margin-top: 24px;
}
.ds-section-title .title {
  color: var(--newtab-text-primary-color);
  font-size: var(--font-size-xxlarge);
  font-weight: normal;
}
.ds-section-title .subtitle {
  font-size: inherit;
  color: var(--newtab-text-secondary-color);
  margin-top: 4px;
}

/* stylelint-disable max-nesting-depth */
.outer-wrapper .ds-top-sites .collapsible-section {
  margin-bottom: var(--space-large);
}
.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(.active, :focus) .tile {
  border: 0;
  outline: var(--focus-outline);
}
.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(:hover) .top-site-inner {
  box-shadow: 0 0 0 5px var(--newtab-background-color-secondary);
  transition: box-shadow 150ms;
  border-radius: 4px;
  outline: none;
}
.outer-wrapper .ds-top-sites .top-sites .top-sites-list {
  margin: 0 -12px;
}
.layout-variant-a .outer-wrapper .ds-top-sites .top-sites .top-sites-list, .layout-variant-b .outer-wrapper .ds-top-sites .top-sites .top-sites-list {
  width: fit-content;
  margin: 0 auto;
}

.ds-column-5 .ds-top-sites .top-site-outer,
.ds-column-6 .ds-top-sites .top-site-outer,
.ds-column-7 .ds-top-sites .top-site-outer,
.ds-column-8 .ds-top-sites .top-site-outer {
  padding: 0 10px;
}
.ds-column-5 .ds-top-sites .top-sites-list,
.ds-column-6 .ds-top-sites .top-sites-list,
.ds-column-7 .ds-top-sites .top-sites-list,
.ds-column-8 .ds-top-sites .top-sites-list {
  margin: 0 -10px;
}
.ds-column-5 .ds-top-sites .top-site-inner,
.ds-column-6 .ds-top-sites .top-site-inner,
.ds-column-7 .ds-top-sites .top-site-inner,
.ds-column-8 .ds-top-sites .top-site-inner {
  --leftPanelIconWidth: 84.67px;
}
.ds-column-5 .ds-top-sites .top-site-inner .tile,
.ds-column-6 .ds-top-sites .top-site-inner .tile,
.ds-column-7 .ds-top-sites .top-site-inner .tile,
.ds-column-8 .ds-top-sites .top-site-inner .tile {
  width: var(--leftPanelIconWidth);
  height: var(--leftPanelIconWidth);
}
.ds-column-5 .ds-top-sites .top-site-inner .title,
.ds-column-6 .ds-top-sites .top-site-inner .title,
.ds-column-7 .ds-top-sites .top-site-inner .title,
.ds-column-8 .ds-top-sites .top-site-inner .title {
  width: var(--leftPanelIconWidth);
}

.ds-column-1 .ds-top-sites .top-site-outer,
.ds-column-2 .ds-top-sites .top-site-outer,
.ds-column-3 .ds-top-sites .top-site-outer,
.ds-column-4 .ds-top-sites .top-site-outer {
  padding: 0 8px;
}
.ds-column-1 .ds-top-sites .top-sites-list,
.ds-column-2 .ds-top-sites .top-sites-list,
.ds-column-3 .ds-top-sites .top-sites-list,
.ds-column-4 .ds-top-sites .top-sites-list {
  margin: 0 -8px;
}
.ds-column-1 .ds-top-sites .top-site-inner,
.ds-column-2 .ds-top-sites .top-site-inner,
.ds-column-3 .ds-top-sites .top-site-inner,
.ds-column-4 .ds-top-sites .top-site-inner {
  --rightPanelIconWidth: 82.67px;
}
.ds-column-1 .ds-top-sites .top-site-inner .tile,
.ds-column-2 .ds-top-sites .top-site-inner .tile,
.ds-column-3 .ds-top-sites .top-site-inner .tile,
.ds-column-4 .ds-top-sites .top-site-inner .tile {
  width: var(--rightPanelIconWidth);
  height: var(--rightPanelIconWidth);
}
.ds-column-1 .ds-top-sites .top-site-inner .title,
.ds-column-2 .ds-top-sites .top-site-inner .title,
.ds-column-3 .ds-top-sites .top-site-inner .title,
.ds-column-4 .ds-top-sites .top-site-inner .title {
  width: var(--rightPanelIconWidth);
}

.ds-card .context-menu-button,
.ds-signup .context-menu-button {
  background-clip: padding-box;
  background-color: var(--newtab-button-background);
  background-image: url("chrome://global/skin/icons/more.svg");
  background-position: 50.1%;
  border: 0;
  outline: 1px solid var(--newtab-border-color);
  outline-width: 0;
  border-radius: 100%;
  cursor: pointer;
  color: var(--button-text-color);
  fill: var(--newtab-button-text);
  height: 27px;
  inset-inline-end: -13.5px;
  opacity: 0;
  position: absolute;
  top: -13.5px;
  transform: scale(0.25);
  transition-duration: 150ms;
  transition-property: transform, opacity;
  width: 27px;
}
.ds-card .context-menu-button:is(:active, :focus-visible, :hover),
.ds-signup .context-menu-button:is(:active, :focus-visible, :hover) {
  opacity: 1;
  transform: scale(1);
}
.ds-card .context-menu-button:is(:hover),
.ds-signup .context-menu-button:is(:hover) {
  background-color: var(--newtab-button-hover-background);
}
.ds-card .context-menu-button:is(:focus-visible),
.ds-signup .context-menu-button:is(:focus-visible) {
  outline-color: var(--newtab-button-focus-border);
  background-color: var(--newtab-button-focus-background);
  outline-width: 4px;
}
.ds-card .context-menu-button:is(:active),
.ds-signup .context-menu-button:is(:active) {
  background-color: var(--newtab-button-active-background);
}
.ds-card .context-menu,
.ds-signup .context-menu {
  opacity: 0;
}
.ds-card.active .context-menu,
.ds-signup.active .context-menu {
  opacity: 1;
}
.ds-card.last-item .context-menu,
.ds-signup.last-item .context-menu {
  margin-inline-end: 5px;
  margin-inline-start: auto;
  inset-inline-end: 0;
  inset-inline-start: auto;
}
.ds-card.last-item .context-menu,
.ds-signup.last-item .context-menu {
  opacity: 1;
}
.ds-card:is(:hover, :focus, .active),
.ds-signup:is(:hover, :focus, .active) {
  outline: none;
}
.ds-card:is(:hover, :focus, .active) .context-menu-button,
.ds-signup:is(:hover, :focus, .active) .context-menu-button {
  opacity: 1;
  transform: scale(1);
  transition-delay: 333ms;
}

.ds-card {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: auto;
}
.ds-card.placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--space-small);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}
.ds-card.placeholder .placeholder-fill {
  background: var(--newtab-button-active-background);
  border-radius: var(--border-radius-small);
}
.ds-card.placeholder .placeholder-image {
  width: 100%;
  height: 140px;
  border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
}
.ds-card.placeholder .placeholder-label {
  width: 40%;
  height: var(--size-item-small);
  margin-bottom: var(--space-small);
  margin-inline: var(--space-large);
}
.ds-card.placeholder .placeholder-header {
  width: 80%;
  height: 20px;
  margin-inline: var(--space-large);
}
.ds-card.placeholder .placeholder-description {
  height: 60px;
  margin-inline: var(--space-large);
  margin-block-end: var(--space-large);
}
.ds-card.placeholder-seen::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--newtab-background-color-secondary) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .ds-card.placeholder-seen::before {
    animation: loading 1.5s infinite;
  }
}
@keyframes loading {
  0% {
    inset-inline-start: -100%;
  }
  50%, 100% {
    inset-inline-start: 100%;
  }
}
.ds-card .img-wrapper {
  width: 100%;
  position: relative;
}
.ds-card .card-stp-button-hover-background {
  opacity: 0;
  width: 100%;
  position: absolute;
  top: 0;
  height: 0;
  transition: opacity;
  transition-duration: 0s;
  padding-block-start: 50%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px 8px 0 0;
}
.ds-card .card-stp-button-hover-background .card-stp-button-position-wrapper {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  display: flex;
  justify-content: end;
  align-items: center;
}
.ds-card .card-stp-button-hover-background .context-menu-position-container {
  position: relative;
}
.ds-card .card-stp-button-hover-background .context-menu {
  margin-inline-start: 18.5px;
  inset-inline-start: auto;
  position: absolute;
  top: 20.25px;
}
.ds-card .card-stp-button-hover-background button,
.ds-card .card-stp-button-hover-background .context-menu {
  pointer-events: auto;
}
.ds-card .card-stp-button-hover-background button {
  cursor: pointer;
}
.ds-card .context-menu-button {
  position: static;
  transition: none;
  border-radius: 3px;
  background-color: var(--newtab-button-static-background);
}
.ds-card .context-menu-button:hover {
  background-color: var(--newtab-button-static-hover-background);
}
.ds-card .context-menu-button:hover:active {
  background-color: var(--newtab-button-static-active-background);
}
.ds-card .context-menu-button:focus-visible {
  outline: 2px solid var(--newtab-button-focus-border);
  background-color: var(--newtab-button-static-focus-background);
}
.ds-card.last-item .card-stp-button-hover-background .context-menu {
  margin-inline-start: auto;
  margin-inline-end: 18.5px;
}
.ds-card.active .card-stp-button-hover-background, .ds-card:focus-within .card-stp-button-hover-background, .ds-card:hover .card-stp-button-hover-background {
  display: block;
  opacity: 1;
  transition-duration: 0.3s;
}
.ds-card.active .card-stp-button-hover-background .context-menu-button, .ds-card:focus-within .card-stp-button-hover-background .context-menu-button, .ds-card:hover .card-stp-button-hover-background .context-menu-button {
  opacity: 1;
  transform: scale(1);
}
.ds-card.active h3, .ds-card:focus-within h3, .ds-card:hover h3 {
  color: var(--newtab-primary-action-background);
}
.ds-card:active h3 {
  color: var(--newtab-primary-element-active-color);
}
.ds-card .img {
  aspect-ratio: 2/1;
}
.ds-card .img img {
  border-radius: 4px;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.ds-card .ds-card-link {
  display: flex;
  flex-direction: column;
  align-items: initial;
  text-decoration: none;
  grid-template-columns: auto 1fr;
  gap: inherit;
  flex-grow: 1;
}
.ds-card .ds-card-link:focus {
  border: 0;
  outline: var(--focus-outline);
  transition: none;
}
.ds-card .ds-card-topic {
  position: absolute;
  z-index: 1;
  background: light-dark(#F0F0F4, var(--newtab-background-color-secondary));
  border-radius: var(--border-radius-small);
  color: var(--newtab-text-primary-color);
  padding: var(--space-small);
  margin: var(--space-small);
  font-size: var(--font-size-small);
}
.ds-card .meta {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  flex-grow: 1;
}
.ds-card .meta .info-wrap {
  flex-grow: 1;
}
.ds-card .meta .title {
  font-size: var(--font-size-large);
  -webkit-line-clamp: 3;
  line-height: normal;
  margin-block: 0;
  font-weight: var(--font-weight-bold);
}
.ds-card .meta .excerpt {
  font-size: var(--font-size-small);
  -webkit-line-clamp: 3;
  line-height: normal;
}
.ds-card .meta .source-wrapper {
  display: flex;
  margin-block-end: var(--space-xxsmall);
  align-items: center;
}
.ds-card .meta .source-wrapper img {
  border-radius: var(--border-radius-small);
  margin-inline-end: var(--space-small);
}
.ds-card .meta .source {
  -webkit-line-clamp: 1;
  font-size: var(--font-size-small);
  color: var(--newtab-text-secondary-color);
}
.ds-card .meta .source span {
  display: inline-block;
}
.ds-card .meta .new-sponsored-label {
  font-size: var(--font-size-small);
  margin-bottom: 2px;
}
.ds-card.ds-card-title-lines-2 .meta .title {
  font-size: var(--font-size-large);
  -webkit-line-clamp: 2;
  line-height: normal;
}
.ds-card.ds-card-title-lines-1 .meta .title {
  font-size: var(--font-size-large);
  -webkit-line-clamp: 1;
  line-height: normal;
}
.ds-card.ds-card-desc-lines-2 .meta .excerpt {
  font-size: var(--font-size-small);
  -webkit-line-clamp: 2;
  line-height: normal;
}
.ds-card.ds-card-desc-lines-1 .meta .excerpt {
  font-size: var(--font-size-small);
  -webkit-line-clamp: 1;
  line-height: normal;
}
.ds-card.ds-card-compact-image .img {
  padding-top: 47%;
}
.ds-card.ds-card-image-gradient img {
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0), black 40px);
}
.ds-card.ds-card-image-gradient .meta {
  padding: 3px 15px 11px;
}
.ds-card.ds-card-cta-button.variant-a .img, .ds-card.ds-card-cta-button.variant-b .img {
  padding-top: 52.4%;
}
.ds-card.ds-card-cta-button.variant-a .story-sponsored-label, .ds-card.ds-card-cta-button.variant-b .story-sponsored-label {
  margin: var(--space-small) 0 0;
}
.ds-card.ds-card-cta-button.variant-a .source, .ds-card.ds-card-cta-button.variant-b .source {
  text-decoration: underline;
}
.ds-card.ds-card-cta-button.variant-a .story-footer, .ds-card.ds-card-cta-button.variant-b .story-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 var(--space-small);
  margin-top: 0;
}
.ds-card.ds-card-cta-button.variant-a .story-cta-button, .ds-card.ds-card-cta-button.variant-b .story-cta-button {
  cursor: inherit;
  background: var(--button-background-color);
  border-radius: var(--border-radius-small);
  border: none;
  padding: var(--space-xsmall) 16px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  min-height: var(--size-item-large);
  min-width: 97px;
  color: var(--newtab-text-primary-color);
  margin-top: var(--space-small);
}
.ds-card.ds-card-cta-button.variant-a .story-cta-button:hover, .ds-card.ds-card-cta-button.variant-b .story-cta-button:hover {
  background: var(--button-background-color-hover);
}
.ds-card.ds-card-cta-button.variant-a .cta-header, .ds-card.ds-card-cta-button.variant-b .cta-header {
  background: var(--button-background-color);
  font-size: var(--font-size-root);
  font-weight: var(--font-weight-bold);
  text-align: end;
  padding: var(--space-xsmall) 16px;
  color: var(--newtab-text-primary-color);
  min-height: var(--size-item-large);
}
.ds-card h3 {
  font-size: var(--font-size-large);
  color: var(--newtab-text-primary-color);
}
.ds-card p {
  font-size: var(--font-size-small);
  color: var(--newtab-text-primary-color);
  margin: 0;
}

.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle, .ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle {
  box-shadow: none;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .ds-image, .ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .ds-image, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .ds-image, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .ds-image {
  padding-block-start: 83.4%;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .card-stp-button-hover-background, .ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .card-stp-button-hover-background, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .card-stp-button-hover-background, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .card-stp-button-hover-background {
  padding-block-start: 83.4%;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle {
  background: none;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .img-wrapper .ds-image img, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .img-wrapper .ds-image img {
  border-radius: var(--border-radius-medium);
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta {
  padding-inline: 0;
  padding-block: var(--space-medium);
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title {
  text-transform: uppercase;
  font-size: var(--font-size-small);
  font-weight: normal;
  color: var(--newtab-contextual-text-secondary-color);
}
.lightWallpaper .ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title, .lightWallpaper .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title {
  color-scheme: light;
}
.darkWallpaper .ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title, .darkWallpaper .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .title {
  color-scheme: dark;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .excerpt, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .meta .excerpt {
  display: none;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .card-stp-button-hover-background, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle .card-stp-button-hover-background {
  border-radius: var(--border-radius-medium);
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui .img-wrapper .ds-image img, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui .img-wrapper .ds-image img {
  border-radius: var(--border-radius-large);
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui:hover, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui:hover {
  box-shadow: none;
}
.ds-card-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui:hover .img-wrapper .ds-image img, .ds-section-grid.ad-sizing-variant-a .ds-card.ds-spoc-rectangle.sections-card-ui:hover .img-wrapper .ds-image img {
  box-shadow: 0 2px 14px 0 var(--newtab-section-card-box-shadow-color);
}
.ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle {
  border: var(--border-width) solid var(--border-color-deemphasized);
}
.ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .meta, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .meta {
  padding-block-start: var(--space-small);
  padding-block-end: var(--space-medium);
}
.ds-card-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .meta .title, .ds-section-grid.ad-sizing-variant-b .ds-card.ds-spoc-rectangle .meta .title {
  text-transform: capitalize;
}

.sections-card-ui.placeholder {
  box-shadow: 0 2px 6px #15141A24;
  border-radius: var(--border-radius-large);
}
.ds-card-grid .sections-card-ui {
  background: var(--newtab-background-card);
}
.ds-card-grid .sections-card-ui:not(.placeholder) {
  box-shadow: 0 1px 2px 0 rgba(58, 57, 68, 0.2);
  border-radius: var(--border-radius-large);
}
.ds-card-grid .sections-card-ui:not(.placeholder).active, .ds-card-grid .sections-card-ui:not(.placeholder):focus-within, .ds-card-grid .sections-card-ui:not(.placeholder):hover {
  box-shadow: 0 2px 14px 0 var(--newtab-section-card-box-shadow-color);
}
.ds-card-grid .sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}
.ds-card-grid .sections-card-ui .meta {
  padding: var(--space-large);
}
.ds-card-grid .sections-card-ui .meta .title {
  -webkit-line-clamp: 3;
  font-size: var(--font-size-root);
  margin-bottom: var(--space-small);
  font-weight: var(--font-weight-bold);
}
.ds-card-grid .sections-card-ui .meta .excerpt {
  -webkit-line-clamp: 3;
  font-size: var(--font-size-small);
}
.ds-card-grid .sections-card-ui .meta .source {
  -webkit-line-clamp: 1;
  color: var(--newtab-text-secondary-text);
  font-size: var(--font-size-small);
}
.ds-card-grid .sections-card-ui .meta .story-footer {
  justify-content: flex-start;
  display: grid;
  height: 28px;
  align-content: center;
  margin-top: var(--space-small);
}
.ds-card-grid .sections-card-ui .meta .story-footer .story-sponsored-label {
  color: var(--newtab-text-secondary-text);
}
.ds-card-grid .sections-card-ui .meta .story-sponsored-label {
  line-height: unset;
  font-size: var(--font-size-small);
}
.ds-card-grid .sections-card-ui .sections-card-footer {
  margin-block-start: var(--space-small);
  position: relative;
  min-height: 28px;
}
.ds-card-grid .sections-card-ui .ds-card-topic {
  display: grid;
  align-content: center;
  height: 28px;
  font-size: var(--font-size-small);
  color: var(--newtab-text-topic-label-color);
  margin: initial;
  padding: initial;
  background-color: initial;
}
.ds-card-grid .sections-card-ui .card-stp-button-hover-background {
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  background-color: transparent;
}
.ds-card-grid .sections-card-ui .ds-card-link:focus {
  border-radius: var(--border-radius-large);
}

.story-footer {
  color: var(--newtab-text-secondary-color);
  inset-inline-start: 0;
  margin-top: 12px;
  display: flex;
  gap: var(--space-large);
  position: relative;
  pointer-events: none;
}
.story-footer .story-sponsored-label span {
  display: inline-block;
}
.story-footer .story-sponsored-label,
.story-footer .status-message {
  -webkit-line-clamp: 1;
  font-size: var(--font-size-small);
  color: var(--newtab-text-secondary-color);
}
.story-footer .status-message {
  display: flex;
  align-items: center;
  height: 24px;
}
.story-footer .status-message .story-badge-icon {
  fill: var(--newtab-text-secondary-color);
  height: 16px;
  margin-inline-end: 6px;
}
.story-footer .status-message .story-badge-icon.icon-bookmark-removed {
  background-image: url("chrome://newtab/content/data/content/assets/icon-removed-bookmark.svg");
}
.story-footer .status-message .story-context-label {
  color: var(--newtab-text-secondary-color);
  flex-grow: 1;
  font-size: var(--font-size-small);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-animate-enter {
  opacity: 0;
}

.story-animate-enter-active {
  opacity: 1;
  transition: opacity 150ms ease-in 300ms;
}
.story-animate-enter-active .story-badge-icon,
.story-animate-enter-active .story-context-label {
  animation: color 3s ease-out 0.3s;
}
@keyframes color {
  0% {
    color: var(--newtab-status-success);
    fill: var(--newtab-status-success);
  }
  100% {
    color: var(--newtab-text-secondary-color);
    fill: var(--newtab-text-secondary-color);
  }
}

.story-animate-exit {
  position: absolute;
  top: 0;
  opacity: 1;
}

.story-animate-exit-active {
  opacity: 0;
  transition: opacity 250ms ease-in;
}

.ds-image {
  display: block;
  position: relative;
  opacity: 0;
}
.ds-image.use-transition {
  transition: opacity 0.8s;
}
.ds-image.loaded {
  opacity: 1;
}
.ds-image img,
.ds-image .placeholder-image,
.ds-image .broken-image {
  background-color: var(--newtab-element-secondary-color);
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}
.ds-image .placeholder-image {
  overflow: hidden;
  background-color: var(--placeholderBackgroundColor);
}
.ds-image .placeholder-image::before {
  content: "";
  background-image: url("chrome://newtab/content/data/content/assets/pocket-swoosh.svg");
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(var(--placeholderBackgroundRotation));
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  margin-left: var(--placeholderBackgroundOffsetx);
  margin-top: var(--placeholderBackgroundOffsety);
  background-size: var(--placeholderBackgroundScale);
}

.ds-dismiss {
  position: relative;
  border-radius: 8px;
  transition-duration: 250ms;
  transition-property: background;
}
.ds-dismiss:hover .ds-dismiss-button {
  opacity: 1;
}
.ds-dismiss .ds-dismiss-button {
  border: 0;
  cursor: pointer;
  height: 32px;
  width: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  border-radius: 50%;
  background-color: transparent;
}
.ds-dismiss .ds-dismiss-button .icon {
  fill: var(--newtab-text-primary-color);
}
@media (forced-colors: active) {
  .ds-dismiss .ds-dismiss-button .icon {
    fill: CurrentColor;
  }
}
.ds-dismiss .ds-dismiss-button:hover {
  background: var(--newtab-element-hover-color);
}
.ds-dismiss .ds-dismiss-button:active {
  background: var(--newtab-element-active-color);
}
.ds-dismiss .ds-dismiss-button:focus {
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
}

.ds-message {
  margin: 8px 0 0;
}
.ds-message .title {
  display: flex;
  align-items: center;
}
.ds-message .title .glyph {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  -moz-context-properties: fill;
  fill: var(--newtab-text-secondary-color);
  background-position: center center;
  background-size: 16px;
  background-repeat: no-repeat;
}
.ds-message .title .title-text {
  font-size: var(--font-size-small);
  color: var(--newtab-text-secondary-color);
  font-weight: var(--font-weight-bold);
  padding-right: 12px;
}
.ds-message .title .link {
  font-size: var(--font-weight-small);
}
.ds-message .title .link:hover, .ds-message .title .link:focus {
  text-decoration: underline;
}

.impression-observer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-empty-state {
  border: 1px solid var(--newtab-border-color);
  border-radius: 4px;
  display: flex;
  height: 160px;
  width: 100%;
}
@media (min-width: 1390px) {
  .section-empty-state {
    width: 936px;
  }
}
.section-empty-state .empty-state-message {
  color: var(--newtab-text-secondary-color);
  font-size: var(--font-size-small);
  text-align: center;
  margin: auto;
  max-width: 936px;
}
.section-empty-state .try-again-button {
  margin-top: 12px;
  padding: 6px 32px;
  border-radius: 2px;
  border: 0;
  background: var(--newtab-button-secondary-color);
  color: var(--newtab-text-primary-color);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.section-empty-state .try-again-button:not(.waiting):focus {
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.3);
  transition: box-shadow 150ms;
  border-radius: 4px;
  outline: none;
}
[lwt-newtab-brighttext] .section-empty-state .try-again-button:not(.waiting):focus {
  box-shadow: 0 0 0 5px rgba(69, 161, 255, 0.4);
  transition: box-shadow 150ms;
  border-radius: 4px;
  outline: none;
}
.section-empty-state .try-again-button:not(.waiting):hover {
  box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
  transition: box-shadow 150ms;
  border-radius: 4px;
  outline: none;
}
.section-empty-state .try-again-button::after {
  content: "";
  height: 20px;
  width: 20px;
  animation: spinner 1s linear infinite;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  mask-image: url("chrome://newtab/content/data/content/assets/spinner.svg");
  mask-size: 20px;
  background: var(--newtab-text-secondary-color);
}
.section-empty-state .try-again-button.waiting {
  cursor: initial;
  background: var(--newtab-element-secondary-color);
  color: transparent;
  transition: background 0.2s ease;
}
.section-empty-state .try-again-button.waiting::after {
  transition: opacity 0.2s ease;
  opacity: 1;
}
.section-empty-state h2 {
  font-size: inherit;
  font-weight: var(--font-weight-bold);
  margin: 0;
}
.section-empty-state p {
  margin: 0;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
.ds-dismiss-ds-text-promo {
  max-width: 744px;
  margin: auto;
  overflow: hidden;
}
.ds-dismiss-ds-text-promo.hovering {
  background: var(--newtab-element-hover-color);
}
.ds-dismiss-ds-text-promo .ds-dismiss-button {
  margin-inline: 0 18px;
  margin-block: 18px 0;
}

.ds-text-promo {
  max-width: 640px;
  margin: 0;
  padding: 18px;
}
@media (min-width: 610px) {
  .ds-text-promo {
    display: flex;
    margin: 18px 24px;
    padding: 0 32px 0 0;
  }
}
.ds-text-promo .ds-image {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin: 0 0 18px;
}
@media (min-width: 610px) {
  .ds-text-promo .ds-image {
    margin: 4px 12px 0 0;
  }
}
.ds-text-promo .ds-image img {
  border-radius: 4px;
}
.ds-text-promo h3 {
  color: var(--newtab-text-primary-color);
  margin: 0;
  font-weight: var(--font-weight-bold);
  font-size: inherit;
}
.ds-text-promo .subtitle {
  font-size: var(--font-size-small);
  margin: 0;
  color: var(--newtab-text-primary-color);
}

.ds-chevron-link {
  color: var(--newtab-primary-action-background);
  display: inline-block;
  outline: 0;
}
.ds-chevron-link:hover {
  text-decoration: underline;
}
.ds-chevron-link:active {
  color: var(--newtab-primary-element-active-color);
}
.ds-chevron-link:active::after {
  background-color: var(--newtab-primary-element-active-color);
}
.ds-chevron-link:focus {
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
  border-radius: 2px;
}
.ds-chevron-link::after {
  background-color: var(--newtab-primary-action-background);
  content: " ";
  mask: url("chrome://global/skin/icons/arrow-right-12.svg") 0 -8px no-repeat;
  margin: 0 0 0 4px;
  width: 5px;
  height: 8px;
  text-decoration: none;
  display: inline-block;
}

.card-stp-thumbs-buttons-wrapper {
  margin-block-start: var(--space-medium);
  z-index: 1;
  visibility: hidden;
  opacity: 0;
}
.sections-card-ui .card-stp-thumbs-buttons-wrapper {
  margin-block-start: 0;
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.card-stp-thumbs-buttons-wrapper .card-stp-thumbs-buttons {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: end;
  gap: var(--space-medium);
}
.card-stp-thumbs-buttons-wrapper .card-stp-thumbs-button {
  pointer-events: auto;
  opacity: 0.8;
  -moz-context-properties: fill;
  cursor: pointer;
}
.card-stp-thumbs-buttons-wrapper .card-stp-thumbs-button:hover, .card-stp-thumbs-buttons-wrapper .card-stp-thumbs-button:focus-visible {
  opacity: 1;
}
.card-stp-thumbs-buttons-wrapper .icon-thumbs-up,
.card-stp-thumbs-buttons-wrapper .icon-thumbs-down {
  display: block;
  border: 0;
  background-color: transparent;
  background-size: var(--icon-size-default);
  background-position: center;
  padding: var(--space-small);
  fill: var(--icon-color);
  transition: fill 0.3s ease-in-out;
}
.card-stp-thumbs-buttons-wrapper .icon-thumbs-up:hover,
.card-stp-thumbs-buttons-wrapper .icon-thumbs-down:hover {
  fill: var(--text-color-deemphasized);
}
.card-stp-thumbs-buttons-wrapper .icon-thumbs-up:hover:active,
.card-stp-thumbs-buttons-wrapper .icon-thumbs-down:hover:active {
  fill: var(--color-accent-primary);
}
.card-stp-thumbs-buttons-wrapper .icon-thumbs-up.is-active,
.card-stp-thumbs-buttons-wrapper .icon-thumbs-down.is-active {
  animation: iconBounce 0.2s ease-in-out;
  fill: var(--color-accent-primary);
}

.ds-card.active .card-stp-thumbs-buttons-wrapper, .ds-card:focus-within .card-stp-thumbs-buttons-wrapper, .ds-card:hover .card-stp-thumbs-buttons-wrapper {
  visibility: visible;
  opacity: 1;
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.6);
  }
}
.thumbs-ui-compact.no-search main {
  margin-block-start: var(--space-xxlarge);
}
.thumbs-ui-compact section {
  margin-bottom: 0;
}
.thumbs-ui-compact .collapsible-section {
  padding: 0 25px;
  margin-bottom: var(--space-xxlarge);
}
.thumbs-ui-compact .search-wrapper {
  padding: 0;
  margin-block: var(--space-xxlarge);
}
.thumbs-ui-compact .search-wrapper .logo-and-wordmark {
  margin-block-end: var(--space-xxlarge);
}
.thumbs-ui-compact .search-wrapper .logo-and-wordmark-wrapper {
  margin-block-end: var(--space-xxlarge);
}
.layout-variant-a .thumbs-ui-compact .search-wrapper .logo-and-wordmark-wrapper, .layout-variant-b .thumbs-ui-compact .search-wrapper .logo-and-wordmark-wrapper {
  margin-block-end: 0;
}
@media (height <= 700px) {
  .thumbs-ui-compact .search-wrapper {
    padding: 0;
    margin-block-start: 0;
  }
}
@media (height > 700px) {
  .thumbs-ui-compact .search-wrapper {
    padding: 0;
  }
}
.thumbs-ui-compact.fixed-search .search-wrapper {
  margin-block-start: 0;
}
.thumbs-ui-compact.fixed-search .search-wrapper .logo-and-wordmark-wrapper {
  margin-block-end: 0;
}
.thumbs-ui-compact .top-site-outer {
  margin-block-end: 0;
}
.thumbs-ui-compact .top-site-outer .layout-variant-a, .layout-variant-b .thumbs-ui-compact .top-site-outer {
  margin-block-end: var(--space-medium);
}
.shortcuts-refresh .thumbs-ui-compact .top-site-outer {
  margin-block-end: 0;
}

.ds-signup {
  max-width: 300px;
  margin: 0 auto;
  padding: 8px;
  position: relative;
  text-align: center;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
}
.ds-signup:hover {
  background: var(--newtab-element-hover-color);
  border-radius: 4px;
}
.ds-signup .icon-mail {
  height: 40px;
  width: 40px;
  margin-inline-end: 8px;
  fill: var(--newtab-text-secondary-color);
  background-size: 30px;
  flex-shrink: 0;
}
.ds-signup .ds-signup-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ds-signup .ds-signup-content .ds-chevron-link {
  margin-top: 4px;
  box-shadow: none;
  display: block;
  white-space: nowrap;
}
@media (min-width: 866px) {
  .ds-signup {
    min-width: 756px;
    width: max-content;
    text-align: start;
  }
  .ds-signup .ds-signup-content {
    flex-direction: row;
  }
  .ds-signup .ds-signup-content .ds-chevron-link {
    margin-top: 0;
    display: inline;
  }
}

.ds-privacy-modal .modal-link {
  display: flex;
  align-items: center;
  margin: 0 0 8px;
  border: 0;
  padding: 0;
  color: var(--newtab-primary-action-background);
  width: max-content;
}
.ds-privacy-modal .modal-link:hover {
  text-decoration: underline;
  cursor: pointer;
}
.ds-privacy-modal .modal-link::before {
  -moz-context-properties: fill;
  fill: var(--newtab-primary-action-background);
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  margin-inline-end: 8px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 16px;
}
.ds-privacy-modal .modal-link.modal-link-privacy::before {
  background-image: url("chrome://global/skin/icons/info.svg");
}
.ds-privacy-modal .modal-link.modal-link-manage::before {
  background-image: url("chrome://global/skin/icons/settings.svg");
}
.ds-privacy-modal .privacy-notice {
  max-width: 572px;
  padding: 40px;
  margin: auto;
}

.ds-privacy-link {
  text-align: center;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
}
.ds-privacy-link a:hover {
  text-decoration: none;
}

/* stylelint-disable max-nesting-depth */
.ds-topics-widget {
  display: flex;
  position: relative;
  flex-direction: column;
}
.ds-topics-widget .ds-topics-widget-header {
  font-size: var(--font-size-large);
}
.ds-topics-widget hr {
  background-color: color-mix(in srgb, var(--newtab-border-color) 52%, transparent);
  height: 1px;
  border: 0;
  margin: 10px 0 0;
}
.ds-topics-widget .ds-topics-widget-list-container {
  flex-grow: 1;
}
.ds-topics-widget .ds-topics-widget-list-container ul {
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  grid-gap: 10px;
  flex-wrap: wrap;
}
.ds-topics-widget .ds-topics-widget-list-container ul li {
  display: flex;
}
.ds-topics-widget .ds-topics-widget-list-container ul li a {
  font-size: var(--font-size-small);
  text-decoration: none;
  padding: 8px 15px;
  background: var(--newtab-background-color-secondary);
  border: 1px solid color-mix(in srgb, var(--newtab-border-color) 52%, transparent);
  color: var(--newtab-text-primary-color);
  border-radius: 8px;
}
.ds-topics-widget .ds-topics-widget-list-container ul li a:hover {
  background: var(--newtab-element-hover-color);
}
.ds-topics-widget .ds-topics-widget-list-container ul li a:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background);
  transition: box-shadow 150ms;
}
.ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
  display: flex;
}
@media (min-width: 610px) {
  .ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
    display: none;
  }
}
@media (min-width: 1122px) {
  .ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
    display: flex;
  }
}
.ds-topics-widget .ds-topics-widget-button {
  margin: 14px 0 0;
  font-size: inherit;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--newtab-primary-action-background-pocket);
  border: 0;
}
.ds-topics-widget .ds-topics-widget-button:hover {
  background: var(--newtab-primary-element-hover-pocket-color);
}
.ds-topics-widget .ds-topics-widget-button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--newtab-primary-action-background-pocket-dimmed), 0 0 0 1px var(--newtab-primary-action-background-pocket);
  transition: box-shadow 150ms;
}

.feature-highlight {
  position: relative;
  pointer-events: auto;
  z-index: 1;
}
.feature-highlight .feature-highlight-modal {
  position: absolute;
  display: flex;
  opacity: 0;
  visibility: hidden;
  cursor: default;
  justify-content: space-between;
  border-radius: var(--border-radius-small);
  background: var(--newtab-background-color-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  width: 298px;
  transition: opacity 0.3s, visibility 0.3s;
}
.feature-highlight .feature-highlight-modal .icon-dismiss {
  flex-shrink: 0;
  background-size: 12px;
  height: 12px;
  width: 12px;
  margin: var(--space-medium);
  color: var(--icon-color);
  border: none;
}
.feature-highlight .feature-highlight-modal .message-icon {
  margin-block: var(--space-large);
  margin-inline: var(--space-large) var(--space-medium);
}
.feature-highlight .feature-highlight-modal.opened {
  opacity: 1;
  visibility: visible;
}
.feature-highlight .feature-highlight-modal::after {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  background: var(--newtab-background-color-secondary);
  box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.15);
}
.feature-highlight .feature-highlight-modal.inset-block-start {
  inset-block-end: 100%;
  margin-bottom: var(--space-xlarge);
}
.feature-highlight .feature-highlight-modal.inset-block-start::after {
  inset-block-end: -12px;
  transform: rotate(45deg);
}
.feature-highlight .feature-highlight-modal.inset-block-end {
  inset-block-start: 100%;
  margin-top: var(--space-xlarge);
}
.feature-highlight .feature-highlight-modal.inset-block-end::after {
  inset-block-start: -12px;
  transform: rotate(225deg);
}
.feature-highlight .feature-highlight-modal.inset-inline-start {
  inset-inline-end: calc(var(--space-xxlarge) * -1);
}
.feature-highlight .feature-highlight-modal.inset-inline-start::after {
  inset-inline-end: calc(var(--space-xxlarge) - 12px);
}
.feature-highlight .feature-highlight-modal.inset-inline-end {
  inset-inline-start: calc(var(--space-xxlarge) * -1);
}
.feature-highlight .feature-highlight-modal.inset-inline-end::after {
  inset-inline-start: calc(var(--space-xxlarge) - 12px);
}
.feature-highlight .feature-highlight-modal p {
  font-size: var(--font-size-small);
  font-weight: normal;
  margin: var(--space-large) 0;
  flex-grow: 1;
}
.feature-highlight .toggle-button {
  border: none;
  padding: 0;
}
.feature-highlight .toggle-button.isHidden {
  display: none;
}

.download-firefox-feature-highlight .icon.icon-dismiss {
  background: transparent url("chrome://global/skin/icons/close.svg");
  background-size: var(--size-item-small);
  height: var(--size-item-small);
  width: var(--size-item-small);
  position: absolute;
  margin: 0;
  inset-block-start: calc(var(--space-medium) + 2px);
  inset-inline-end: calc(var(--space-medium) + 2px);
}
@media (prefers-color-scheme: dark) {
  .download-firefox-feature-highlight .icon.icon-dismiss {
    --dark-icon-color: var(--color-gray-70);
    color: var(--dark-icon-color);
  }
}
.download-firefox-feature-highlight .icon.icon-dismiss:hover {
  --dark-icon-hover: var(--color-gray-60);
  color: var(--dark-icon-hover);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal {
  --arrow-size: 24px;
  padding: var(--space-large);
  width: 271px;
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .content-wrapper {
  margin-block: 0;
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .content-wrapper img {
  display: block;
  margin: 0 auto var(--space-large);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .message-icon {
  display: none;
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end {
  margin-top: var(--space-xxlarge);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end {
  inset-inline-start: calc(var(--arrow-size) * -2);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end::after {
  inset-inline-start: calc(var(--space-xxlarge) - 14px);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start {
  inset-inline-end: calc(var(--arrow-size) / 2 * -1 - 6px);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start::after {
  inset-inline-end: calc(var(--space-xxlarge) - 12px);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal::after {
  height: var(--arrow-size);
  width: var(--arrow-size);
  box-shadow: 4px -4px 6px -2px rgba(0, 0, 0, 0.15);
  transform: rotate(-45deg);
  pointer-events: none;
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal p {
  margin: 0;
  padding: 0;
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .title {
  font-weight: var(--font-weight-bold);
  margin-block: var(--space-small);
}
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .subtitle {
  margin-block: 0;
}

.sponsored-content-highlight {
  float: inline-end;
}
.sponsored-content-highlight .sponsored-message-icon {
  background-image: url("chrome://newtab/content/data/content/assets/sponsor-message-icon.svg");
  background-size: 18px;
  height: 18px;
  width: 18px;
}
.sponsored-content-highlight .icon-help {
  cursor: pointer;
  height: 20px;
  width: 20px;
  background-size: 20px;
  color: var(--icon-color);
  vertical-align: text-bottom;
}
.lightWallpaper .sponsored-content-highlight .icon-help {
  color-scheme: light;
}
.darkWallpaper .sponsored-content-highlight .icon-help {
  color-scheme: dark;
}
.sponsored-content-highlight .feature-highlight-modal.inset-inline-start::after {
  margin-inline-end: 11px;
}
.sponsored-content-highlight .feature-highlight-modal.inset-inline-end::after {
  margin-inline-start: 9px;
}

.wallpaper-feature-highlight .icon.icon-dismiss {
  background: transparent url("chrome://global/skin/icons/close.svg");
  background-size: var(--size-item-small);
  height: var(--size-item-small);
  width: var(--size-item-small);
  position: absolute;
  margin: 0;
  inset-block-start: calc(var(--space-large) + 2px);
  inset-inline-end: calc(var(--space-large) + 2px);
}
@media (prefers-color-scheme: dark) {
  .wallpaper-feature-highlight .icon.icon-dismiss {
    --dark-icon-color: var(--color-gray-70);
    color: var(--dark-icon-color);
  }
}
.wallpaper-feature-highlight .icon.icon-dismiss:hover {
  --dark-icon-hover: var(--color-gray-60);
  color: var(--dark-icon-hover);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal {
  --arrow-size: 24px;
  width: auto;
  padding: var(--space-large);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .content-wrapper {
  margin-block: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .message-icon {
  display: none;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end {
  inset-inline-start: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end::after {
  inset-inline-start: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start {
  inset-inline-end: 50px;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start::after {
  inset-inline-end: calc(var(--arrow-size) / 2 * -1);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end {
  margin-top: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end::after {
  inset-block-start: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-start {
  inset-block-end: 0;
  margin-block-end: 0;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-start::after {
  inset-block-end: var(--arrow-size);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .title {
  font-weight: var(--font-weight-bold);
  margin-block: var(--space-xsmall);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .subtitle {
  margin-block: 0 var(--space-xsmall);
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .button-wrapper {
  display: block;
  text-align: end;
}
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal::after {
  height: var(--arrow-size);
  width: var(--arrow-size);
  box-shadow: 4px -4px 6px -2px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* stylelint-disable max-nesting-depth */
.modalOverlayOuter.active:has(.topic-selection-container) {
  background-color: rgba(21, 20, 26, 0.5);
}

.topic-selection-container {
  --transition: 0.6s opacity, 0.6s scale, 0.6s rotate, 0.6s translate;
  position: relative;
  border-radius: var(--space-small);
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
  padding: var(--size-item-large);
  max-width: 745px;
  height: auto;
}
.topic-selection-container .dismiss-button {
  position: absolute;
  appearance: none;
  border: none;
  z-index: 2;
  top: 0;
  inset-inline: auto 0;
  border-radius: var(--border-radius-small);
  padding: 0;
  margin: var(--space-small);
  display: block;
  float: inline-end;
  background: url("chrome://global/skin/icons/close.svg") no-repeat center/16px;
  height: var(--size-item-large);
  width: var(--size-item-large);
  align-self: end;
  min-height: var(--size-item-large);
  min-width: var(--size-item-large);
  -moz-context-properties: fill;
  fill: currentColor;
  transition: var(--transition);
}
.topic-selection-container .dismiss-button:hover {
  background-color: var(--button-background-color-hover);
}
.topic-selection-container .dismiss-button:hover:active {
  background-color: var(--button-background-color-active);
}
.topic-selection-container .title {
  text-align: center;
  font-size: var(--font-size-xlarge);
  font-weight: var(--font-weight-bold);
  margin-block-end: var(--space-small);
}
.topic-selection-container .subtitle {
  text-align: center;
  margin-block: 0 var(--space-xlarge);
}
.topic-selection-container .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topic-selection-container .modal-footer > a {
  color: var(--link-color);
}
.topic-selection-container .modal-footer > a:hover {
  color: var(--link-color-hover);
}
.topic-selection-container .modal-footer > a:hover:active {
  color: var(--link-color-active);
}
.topic-selection-container .modal-footer > a:visited {
  color: var(--link-color-visited);
}
.topic-selection-container .modal-footer .button-group {
  gap: var(--space-medium);
  display: flex;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-item-small);
  margin: var(--size-item-large) auto;
  justify-content: center;
  width: fit-content;
}
.topic-list .topic-item {
  align-items: center;
  border-radius: 40px;
  border: var(--border-width) solid var(--border-color-interactive);
  display: flex;
  justify-self: center;
  max-width: fit-content;
  padding-block: 6px;
  padding-inline: 6px var(--size-item-small);
  position: relative;
}
.topic-list .topic-item:hover {
  cursor: pointer;
  background-color: var(--button-background-color-hover);
}
.topic-list .topic-item:active {
  background-color: var(--button-background-color-active);
}
.topic-list .topic-item:has(input:checked) {
  border-color: var(--color-accent-primary);
}
.topic-list .topic-item:focus-within {
  outline-offset: 2px;
  outline: 2px solid var(--color-accent-primary);
}
.topic-list .topic-item .topic-item-label {
  margin-inline-end: var(--space-small);
}
.topic-list .topic-item .topic-custom-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 100%;
  background-color: var(--newtab-button-static-background);
  margin-inline-end: var(--space-large);
}
.topic-list .topic-item .topic-custom-checkbox .topic-icon {
  font-size: var(--font-size-xlarge);
}
.topic-list .topic-item .topic-custom-checkbox .topic-checked {
  display: none;
}
.topic-list .topic-item input[type=checkbox] {
  height: 100%;
  opacity: 0;
  position: absolute;
  width: 90%;
}
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox {
  background-color: var(--color-accent-primary);
  position: relative;
}
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox .topic-icon {
  display: none;
}
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox .topic-checked {
  color: var(--color-white);
  -moz-context-properties: fill;
  display: block;
  fill: currentColor;
  background: url("chrome://global/skin/icons/check.svg");
  background-size: cover;
  width: 26px;
  height: 26px;
}

.list-feed {
  grid-column: span 1/-1;
  grid-row: span 2;
  height: 100%;
}
.list-feed.span-1 {
  grid-row: span 1;
}
.list-feed.span-2 {
  grid-row: span 2;
}
.list-feed.full-height {
  display: flex;
}
.list-feed.full-height .list-feed-content {
  flex: 1;
}
.list-feed.full-height .list-feed-content .list-feed-card {
  flex: 1;
}
@media (min-width: 610px) {
  .list-feed.span-1 {
    grid-row: span 1/-1;
  }
  .list-feed.span-2 {
    grid-row: span 2/-1;
  }
}
@media (min-width: 610px) {
  .layout-variant-a .list-feed.span-1, .layout-variant-b .list-feed.span-1 {
    grid-row: span 1;
  }
  .layout-variant-a .list-feed.span-2, .layout-variant-b .list-feed.span-2 {
    grid-row: span 2;
  }
}
@media (min-width: 724px) {
  .layout-variant-a .list-feed.span-1, .layout-variant-b .list-feed.span-1 {
    grid-row: span 1/-1;
  }
  .layout-variant-a .list-feed.span-2, .layout-variant-b .list-feed.span-2 {
    grid-row: span 2/-1;
  }
}
.list-feed .list-feed-inner-wrapper {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: var(--newtab-background-color-secondary);
  border-radius: var(--border-radius-medium);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.list-feed .list-feed-title {
  padding-inline-start: var(--space-medium);
  padding-block: var(--space-small);
  font-size: var(--font-size-small);
  color: var(--newtab-text-primary-color);
  font-weight: var(--font-weight-bold);
  margin: 0;
}
.list-feed .list-feed-title .icon {
  margin-inline-end: var(--space-small);
  transform: none;
  fill: var(--newtab-text-primary-color);
  vertical-align: text-bottom;
}
.list-feed .list-feed-content {
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: var(--border-width);
}
.list-feed .fakespot-dropdown {
  background: transparent;
  border: none;
  border-radius: var(--border-radius-small);
  -moz-context-properties: fill;
  fill: currentColor;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  margin-block: var(--space-xsmall);
  padding-block: var(--space-small);
  padding-inline-start: var(--space-medium);
  position: relative;
  max-width: 18ch;
  text-overflow: ellipsis;
}
@media (min-width: 1122px) {
  .list-feed .fakespot-dropdown {
    max-width: none;
    background-image: url("chrome://browser/skin/gift.svg");
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: left var(--space-medium) center;
    padding-inline-start: var(--space-xxlarge);
  }
}
.list-feed .fakespot-dropdown:hover {
  background-color: var(--newtab-button-hover-background);
}

.fakespot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fakespot-heading .dropdown-wrapper {
  display: flex;
  position: relative;
  width: 100%;
}
.fakespot-heading .fakespot-desc {
  padding-inline: var(--space-medium);
  margin-block: 0 var(--space-small);
  font-size: var(--font-size-small);
}
.fakespot-heading .context-menu-wrapper .context-menu-button {
  background-clip: padding-box;
  background-color: var(--newtab-button-background);
  background-image: url("chrome://global/skin/icons/more.svg");
  background-position: 50.1%;
  border: 0;
  outline: 1px solid var(--newtab-border-color);
  outline-width: 0;
  border-radius: 100%;
  cursor: pointer;
  color: var(--button-text-color);
  fill: var(--newtab-button-text);
  height: 27px;
  inset-inline-end: -13.5px;
  opacity: 0;
  position: absolute;
  top: -13.5px;
  transform: scale(0.25);
  transition-duration: 150ms;
  transition-property: transform, opacity;
  width: 27px;
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:active, :focus-visible, :hover) {
  opacity: 1;
  transform: scale(1);
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:hover) {
  background-color: var(--newtab-button-hover-background);
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:focus-visible) {
  outline-color: var(--newtab-button-focus-border);
  background-color: var(--newtab-button-focus-background);
  outline-width: 4px;
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:active) {
  background-color: var(--newtab-button-active-background);
}
.fakespot-heading .context-menu-wrapper .context-menu {
  inset-inline-start: auto;
  inset-inline-end: var(--space-small);
  inset-block-start: var(--space-xxlarge);
}
.fakespot-heading .context-menu-wrapper .context-menu-button {
  opacity: 1;
  transform: scale(1);
  background-color: transparent;
  border-radius: var(--border-radius-small);
  box-shadow: none;
  inset-inline-end: var(--space-small);
  inset-block-start: var(--space-small);
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:hover) {
  background-color: var(--newtab-button-hover-background);
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:focus-visible) {
  outline-color: var(--newtab-button-focus-border);
  background-color: var(--newtab-button-focus-background);
  outline-width: 2px;
}
.fakespot-heading .context-menu-wrapper .context-menu-button:is(:active) {
  background-color: var(--newtab-button-active-background);
}

.fakespot-footer {
  align-items: center;
  border-block-start: var(--border-width) solid var(--border-color-deemphasized);
  border-end-start-radius: var(--border-radius-medium);
  border-end-end-radius: var(--border-radius-medium);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-medium);
}
.fakespot-footer p {
  font-size: var(--font-size-small);
  margin-block-start: 0;
}
.fakespot-footer .fakespot-cta {
  background-color: var(--button-background-color-primary);
  border: var(--button-border);
  border-color: var(--button-border-color-primary);
  border-radius: var(--button-border-radius);
  color: var(--button-text-color-primary);
  font-size: var(--font-size-small);
  font-weight: var(--button-font-weight);
  padding: var(--button-padding);
  text-decoration: none;
  text-align: center;
  align-self: stretch;
}
.fakespot-footer .fakespot-cta:hover {
  background-color: var(--button-background-color-primary-hover);
  border-color: var(--button-border-color-primary-hover);
  color: var(--button-text-color-primary-hover);
}
.fakespot-footer .fakespot-cta:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.layout-variant-a .ds-card-grid .list-feed-content .ds-card.list-feed-card,
.layout-variant-b .ds-card-grid .list-feed-content .ds-card.list-feed-card {
  height: 135px;
}
@media (min-width: 1122px) {
  .layout-variant-a .ds-card-grid .list-feed-content .ds-card.list-feed-card,
.layout-variant-b .ds-card-grid .list-feed-content .ds-card.list-feed-card {
    height: 140px;
  }
}
.layout-variant-a .ds-card.placeholder.list-card-placeholder .placeholder-image,
.layout-variant-b .ds-card.placeholder.list-card-placeholder .placeholder-image {
  height: 75px;
  width: 75px;
}
.layout-variant-a .ds-card.placeholder.list-card-placeholder .placeholder-header, .layout-variant-a .ds-card.placeholder.list-card-placeholder .placeholder-description,
.layout-variant-b .ds-card.placeholder.list-card-placeholder .placeholder-header,
.layout-variant-b .ds-card.placeholder.list-card-placeholder .placeholder-description {
  height: 20px;
}

.ds-card.placeholder.list-card-placeholder {
  box-shadow: unset;
  padding-inline-end: var(--space-large);
  padding-block: var(--space-large) var(--space-small);
  flex: 1;
}
.ds-card.placeholder.list-card-placeholder .placeholder-image {
  height: 55px;
  width: 55px;
  position: absolute;
  border-radius: var(--border-radius-medium);
  inset-inline-end: var(--space-large);
}
@media (min-width: 1122px) {
  .ds-card.placeholder.list-card-placeholder .placeholder-image {
    height: 75px;
    width: 75px;
  }
}
.ds-card.placeholder.list-card-placeholder .placeholder-label {
  margin-bottom: unset;
}
.ds-card.placeholder.list-card-placeholder .placeholder-header, .ds-card.placeholder.list-card-placeholder .placeholder-description {
  width: 60%;
  height: 12px;
}
@media (min-width: 1122px) {
  .ds-card.placeholder.list-card-placeholder .placeholder-image {
    height: 75px;
    width: 75px;
  }
  .ds-card.placeholder.list-card-placeholder .placeholder-header, .ds-card.placeholder.list-card-placeholder .placeholder-description {
    height: 20px;
  }
}

.ds-card-grid .list-feed-content .ds-card.list-feed-card {
  background-color: var(--newtab-background-color-secondary);
  border-block-start: var(--border-width) solid var(--border-color-deemphasized);
  border-radius: 0;
  box-shadow: none;
  flex-direction: row-reverse;
  min-height: 135px;
  gap: var(--space-large);
  position: relative;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card.fakespot {
  flex-direction: row;
  min-height: 75px;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .ds-card-link {
  inset-block-start: 0;
  inset-inline-start: 0;
  border-radius: 0;
  flex-direction: row;
  padding-inline: var(--space-large);
  padding-block: var(--space-large) var(--space-small);
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .meta {
  padding: 0;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .meta .story-footer {
  margin-block-start: var(--space-xsmall);
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .meta .source {
  margin-bottom: 1px;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .meta .title {
  font-size: var(--font-size-small);
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .excerpt {
  display: none;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .card-stp-button-hover-background {
  border-radius: 0;
  height: 100%;
  opacity: 1;
  background-color: transparent;
  padding-block-start: 0;
  inset-inline-start: 0;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .card-stp-button-hover-background .card-stp-button-position-wrapper {
  inset-block-end: var(--space-small);
  inset-inline-end: var(--space-large);
  align-items: flex-end;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .card-stp-button-hover-background .context-menu-button {
  opacity: 1;
  transform: scale(1);
  background-color: transparent;
  box-shadow: none;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .img-wrapper {
  flex-shrink: 0;
  height: 55px;
  width: 55px;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card .img-wrapper img {
  height: auto;
  border-radius: var(--border-radius-medium);
}
@media (min-width: 1122px) {
  .ds-card-grid .list-feed-content .ds-card.list-feed-card .img-wrapper {
    height: 75px;
    width: 75px;
  }
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:last-child:not(.fakespot) {
  border-end-start-radius: var(--border-radius-medium);
  border-end-end-radius: var(--border-radius-medium);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:last-child:not(.fakespot) .card-stp-button-hover-background {
  border-end-start-radius: var(--border-radius-medium);
  border-end-end-radius: var(--border-radius-medium);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:hover, .ds-card-grid .list-feed-content .ds-card.list-feed-card:focus-within {
  background-color: var(--newtab-element-secondary-color);
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:hover .card-stp-button-hover-background, .ds-card-grid .list-feed-content .ds-card.list-feed-card:focus-within .card-stp-button-hover-background {
  background: transparent;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:hover .card-stp-button-position-wrapper, .ds-card-grid .list-feed-content .ds-card.list-feed-card:focus-within .card-stp-button-position-wrapper {
  align-items: flex-end;
}
.ds-card-grid .list-feed-content .ds-card.list-feed-card:hover .context-menu-button:hover, .ds-card-grid .list-feed-content .ds-card.list-feed-card:hover .context-menu-button:focus, .ds-card-grid .list-feed-content .ds-card.list-feed-card:focus-within .context-menu-button:hover, .ds-card-grid .list-feed-content .ds-card.list-feed-card:focus-within .context-menu-button:focus {
  background-color: var(--newtab-button-background);
}

.ad-banner-wrapper {
  --billboard-width: 970px;
  --billboard-height: 250px;
  --leaderboard-width: 728px;
  --leaderboard-height: 90px;
  position: relative;
  grid-column: 1/-1;
  overflow: hidden;
  width: 100%;
  inset-inline-start: 50%;
  transform: translate3d(-50%, 0, 0);
}
.ad-banner-wrapper:has(.ad-banner-inner.billboard) {
  min-width: 970px;
}
@media (width <= 1015px) {
  .ad-banner-wrapper:has(.ad-banner-inner.billboard) {
    min-width: auto;
  }
}
.ad-banner-wrapper:has(.ad-banner-inner.leaderboard) {
  min-width: 728px;
}
@media (width <= 758px) {
  .ad-banner-wrapper:has(.ad-banner-inner.leaderboard) {
    min-width: auto;
  }
}
.ad-banner-wrapper .ad-banner-inner {
  margin-inline: auto;
}
.ad-banner-wrapper .ad-banner-inner.leaderboard {
  max-width: var(--leaderboard-width);
}
.ad-banner-wrapper .ad-banner-inner.leaderboard .ad-banner-content {
  height: var(--leaderboard-height);
}
.ad-banner-wrapper .ad-banner-inner.leaderboard .ad-banner-sponsored {
  width: var(--leaderboard-width);
}
@media (width <= 758px) {
  .ad-banner-wrapper .ad-banner-inner.leaderboard {
    display: none;
  }
}
.ad-banner-wrapper .ad-banner-inner.billboard {
  width: var(--billboard-width);
}
.ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-content {
  height: var(--billboard-height);
}
.ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-sponsored {
  width: var(--billboard-width);
}
@media (width <= 1015px) {
  .ad-banner-wrapper .ad-banner-inner.billboard {
    display: none;
  }
}
.ad-banner-wrapper .ad-banner-inner .ad-banner-link {
  display: inline-block;
}
.ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored {
  margin-block: var(--space-small) 0;
}
.lightWallpaper .ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored {
  color-scheme: light;
}
.darkWallpaper .ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored {
  color-scheme: dark;
}
.ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored span {
  text-transform: uppercase;
  font-size: var(--font-size-small);
  color: var(--newtab-contextual-text-secondary-color);
}

.ads-context-menu-wrapper {
  margin-block-start: var(--space-xsmall);
  text-align: end;
}

.ads-context-menu {
  float: right;
  position: relative;
}
.ads-context-menu .context-menu {
  /* Position the menu just under and to the right of the context menu button */
  inset-inline-end: 100%;
  inset-inline-start: auto;
  margin-inline-end: calc(-0.98 * var(--size-item-large));
  top: calc(2.25 * var(--size-item-small));
}
.ads-context-menu > moz-button {
  padding-block-end: var(--space-small);
}
.lightWallpaper .ads-context-menu > moz-button {
  color-scheme: light;
}
.darkWallpaper .ads-context-menu > moz-button {
  color-scheme: dark;
}
.ads-context-menu > moz-button::part(button) {
  background-color: transparent;
}
.ads-context-menu > moz-button::part(button):hover {
  background-color: var(--button-background-color-hover);
}
.ads-context-menu > moz-button::part(button):active {
  background-color: var(--button-background-color-active);
}

.context-menu-open > moz-button::part(button) {
  background-color: var(--button-background-color);
}

.section-context-menu {
  position: relative;
}
.section-context-menu .context-menu {
  /* Fix the context menu width */
  width: calc(4 * var(--size-item-large));
  /* Position the context menu on top of the card grid, below the menu button. */
  top: calc(2.5 * var(--size-item-small));
  inset-inline-start: calc(-6.25 * var(--size-item-small));
}

.lightWallpaper .inline-selection-wrapper.ds-section {
  color-scheme: light;
}
.darkWallpaper .inline-selection-wrapper.ds-section {
  color-scheme: dark;
}
.inline-selection-wrapper.ds-section .section-heading {
  margin-block: var(--space-medium);
}
.inline-selection-wrapper.ds-section .section-subtitle {
  color: var(--newtab-contextual-text-primary-color);
}
.inline-selection-wrapper.ds-section .learn-more-copy {
  margin-block-end: 0;
}
.inline-selection-wrapper.ds-section .topic-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  row-gap: calc(1.25 * var(--space-small));
  column-gap: var(--space-small);
  justify-content: flex-start;
  margin: var(--space-small) 0;
  padding-inline-start: 0;
  width: fit-content;
}
.inline-selection-wrapper.ds-section .topic-list li {
  align-items: center;
  display: flex;
  justify-self: flex-start;
  max-width: fit-content;
  position: relative;
}
.inline-selection-wrapper.ds-section .topic-list li > label {
  background-color: var(--background-color-canvas);
  border: var(--border-width) solid var(--border-color-interactive);
  border-radius: 40px;
  color: var(--newtab-contextual-text-primary-color);
  padding: var(--space-small) calc(1.25 * var(--space-small)) var(--space-small) var(--space-xsmall);
}
.inline-selection-wrapper.ds-section .topic-list li > label input[type=checkbox] {
  outline: none;
  appearance: none;
}
.inline-selection-wrapper.ds-section .topic-list li > label .topic-item-icon {
  -moz-context-properties: fill;
  fill: currentColor;
  margin-inline-start: var(--space-small);
  margin-block-start: calc(-0.75 * var(--space-xsmall));
}
.inline-selection-wrapper.ds-section .topic-list li > label:hover {
  background-color: var(--newtab-button-static-hover-background);
  cursor: pointer;
}
.inline-selection-wrapper.ds-section .topic-list li > label:hover:active {
  background-color: var(--newtab-button-static-active-background);
}
.inline-selection-wrapper.ds-section .topic-list li > label:has(input:checked) {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--button-text-color-primary);
}
.inline-selection-wrapper.ds-section .topic-list li > label:has(input:checked) .topic-item-icon {
  color: var(--button-text-color-primary);
}
.inline-selection-wrapper.ds-section .topic-list li > label:focus-within {
  outline-offset: var(--focus-outline-offset);
  outline: var(--focus-outline);
}

.report-content-form {
  width: 500px;
  height: 230px;
  box-shadow: var(--box-shadow-level-4);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--newtab-border-color);
}
.report-content-form form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.report-content-form form moz-radio-group {
  height: 100%;
}
.report-content-form::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.personalized-card-wrapper {
  background-color: var(--background-color-canvas);
  border: 2px solid var(--border-color-card);
  color: var(--text-color);
  padding: var(--space-medium) var(--space-xlarge);
  border-radius: var(--border-radius-large);
  margin: var(--space-xlarge) 0;
  position: relative;
}
.personalized-card-wrapper .personalized-card-dismiss {
  text-align: end;
  margin-bottom: var(--space-small);
  margin-inline-end: calc(var(--space-medium) * -1);
}
.personalized-card-wrapper .personalized-card-inner {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr;
  align-items: start;
}
.personalized-card-wrapper .personalized-card-inner img {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  justify-self: center;
  align-self: start;
}
.personalized-card-wrapper .personalized-card-inner h2, .personalized-card-wrapper .personalized-card-inner p {
  margin-top: 0;
}
.personalized-card-wrapper .personalized-card-inner h2 {
  font-size: var(--font-size-xxlarge);
  font-weight: var(--font-weight-bold);
}
.personalized-card-wrapper .personalized-card-inner .personalized-card-link {
  color: var(--link-color);
  font-size: var(--font-size-small);
}
@media (max-width: 724px) {
  .personalized-card-wrapper .personalized-card-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .personalized-card-wrapper .personalized-card-inner img {
    justify-self: initial;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-link {
    margin-top: 8px;
    margin-bottom: 15px;
  }
}
@media (min-width: 724px) {
  .personalized-card-wrapper .personalized-card-inner {
    grid-template-columns: 0.2fr 1fr 1fr;
    gap: 20px;
  }
  .personalized-card-wrapper .personalized-card-inner h2 {
    width: 200px;
  }
  .personalized-card-wrapper .personalized-card-inner img {
    width: 80px;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-cta {
    grid-column: 2/span 2;
    grid-row: span 2;
    margin-top: -30px;
    width: 195px;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-link {
    margin-top: -60px;
    grid-column: 3;
  }
}
@media (min-width: 1122px) {
  .personalized-card-wrapper .personalized-card-inner {
    grid-template-columns: 0.2fr 1fr 1fr 1fr;
    gap: 10px;
  }
  .personalized-card-wrapper .personalized-card-inner img {
    width: 100px;
  }
  .personalized-card-wrapper .personalized-card-inner h2 {
    grid-column: 2;
    width: initial;
  }
  .personalized-card-wrapper .personalized-card-inner p {
    grid-column: 3;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-cta {
    grid-column: 4;
    margin-top: initial;
    width: 220px;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-link {
    grid-column: 4;
    margin-top: -50px;
  }
}
@media (min-width: 1122px) and (max-width: 1390px) {
  .personalized-card-wrapper .personalized-card-inner h2 {
    max-width: 200px;
  }
  .personalized-card-wrapper .personalized-card-inner p {
    width: 300px;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-cta {
    margin-inline-end: 40px;
  }
  .personalized-card-wrapper .personalized-card-inner .personalized-card-link {
    width: 290px;
    margin-top: -60px;
  }
}
Back to Home