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

body {
  margin: 0;
  font-family: var(--publication-font-family, Georgia, "Times New Roman", serif);
  background: var(--publication-bg, #fff);
  color: var(--publication-text, #2b2b2f);
}

.page-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 72px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, var(--publication-content-width, 760px)) 280px;
  gap: 48px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--publication-title-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--publication-title-font-size, clamp(26px, 3.84vw, 40px));
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: break-spaces;
}

.meta {
  font: 500 var(--publication-date-font-size, 13px)/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--publication-muted, #8b92a0);
}

.author-line {
  margin-top: 18px;
  display: inline-block;
  font-family: var(--publication-font-family, Georgia, "Times New Roman", serif);
  font-size: var(--publication-author-font-size, 24px);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

.author-line--verified-only {
  display: flex;
  text-decoration: none;
}

.verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  cursor: default;
  flex-shrink: 0;
}

.author-line--verified-only .verified-badge {
  margin-left: 0;
}

.verified-badge::after {
  content: "Верифицированный аккаунт";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #2b2b2f;
  color: #fff;
  font: 500 13px/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 10;
}

.verified-badge::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #2b2b2f;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 10;
}

.verified-badge:hover::after,
.verified-badge:hover::before,
.verified-badge:focus::after,
.verified-badge:focus::before {
  opacity: 1;
}

.page-article {
  margin-top: 18px;
  font-family: var(--publication-font-family, Georgia, "Times New Roman", serif);
  font-size: var(--publication-body-font-size, 18px);
  line-height: var(--publication-line-height, 1.4);
  overflow-wrap: anywhere;
}

.page-article a {
  color: var(--publication-link, #245bda);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  transition: color 140ms ease;
}

.page-article a:hover {
  color: var(--publication-link, #1c48b2);
  text-decoration: none;
}

.page-article p {
  margin: 0;
  white-space: break-spaces;
}

.page-article ul,
.page-article ol {
  margin: 0 0 var(--publication-paragraph-spacing, 20px);
  padding-left: 1.35em;
  white-space: normal;
}

.page-article li + li {
  margin-top: 0.35em;
}

.page-article p + p {
  margin-top: var(--publication-paragraph-spacing, 20px);
}

.page-article p + ul,
.page-article p + ol {
  margin-top: var(--publication-paragraph-spacing, 20px);
}

.page-article h2 {
  margin: 28px 0 0;
  font-family: var(--publication-title-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(22px, 3.04vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: break-spaces;
}

.page-article h3 {
  margin: 24px 0 0;
  font-family: var(--publication-title-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.16;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: break-spaces;
}

.page-article h2 + p,
.page-article h2 + blockquote,
.page-article h2 + figure,
.page-article h2 + .document-asset,
.page-article h2 + ul,
.page-article h2 + ol {
  margin-top: 28px;
}

.page-article h3 + p,
.page-article h3 + blockquote,
.page-article h3 + figure,
.page-article h3 + .document-asset,
.page-article h3 + ul,
.page-article h3 + ol {
  margin-top: 24px;
}

.page-article blockquote {
  margin: 18px 0 0;
  padding: 0 0 0 24px;
  border-left: calc(var(--publication-border-width, 1px) + 2px) solid var(--publication-quote-border, rgba(43, 43, 47, 0.18));
  color: var(--publication-text, #4a4f59);
  font-style: italic;
  white-space: break-spaces;
}

.page-article blockquote + p,
.page-article p + blockquote,
.page-article figure + p,
.page-article p + figure,
.page-article .document-asset + p,
.page-article p + .document-asset {
  margin-top: 30px;
}

.page-article .video-embed {
  position: relative;
  width: 100%;
  margin: 30px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--publication-block-radius, 14px);
  background: #111;
}

.page-article .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-article .paywall-unlocked-content {
  margin-top: var(--publication-paragraph-spacing, 20px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-article .paywall-unlocked-content--enter {
  opacity: 0;
  transform: translateY(6px);
}

.page-article .paywall-unlocked-content p {
  margin: 0;
}

.page-article .paywall-unlocked-content p + p {
  margin-top: var(--publication-paragraph-spacing, 20px);
}

.page-article .paywall-unlocked-content p + ul,
.page-article .paywall-unlocked-content p + ol {
  margin-top: var(--publication-paragraph-spacing, 20px);
}

.page-article .paywall-unlocked-content h2 {
  margin: 28px 0 0;
}

.page-article .paywall-unlocked-content h3 {
  margin: 24px 0 0;
}

.page-article .paywall-unlocked-content h2 + p,
.page-article .paywall-unlocked-content h2 + blockquote,
.page-article .paywall-unlocked-content h2 + figure,
.page-article .paywall-unlocked-content h2 + ul,
.page-article .paywall-unlocked-content h2 + ol {
  margin-top: 28px;
}

.page-article .paywall-unlocked-content h3 + p,
.page-article .paywall-unlocked-content h3 + blockquote,
.page-article .paywall-unlocked-content h3 + figure,
.page-article .paywall-unlocked-content h3 + ul,
.page-article .paywall-unlocked-content h3 + ol {
  margin-top: 24px;
}

.page-article .paywall-unlocked-content blockquote + p,
.page-article .paywall-unlocked-content p + blockquote,
.page-article .paywall-unlocked-content figure + p,
.page-article .paywall-unlocked-content p + figure {
  margin-top: 30px;
}

.page-article .paywall-block {
  margin-top: 30px;
  padding: 18px 20px;
  min-height: 120px;
  border: var(--publication-border-width, 2px) solid var(--publication-paywall-border, rgba(38, 36, 34, 0.45));
  border-radius: var(--publication-block-radius, 14px);
  background: var(--publication-paywall-bg, #fbfbfc);
  opacity: 1;
  transition: opacity 180ms ease;
}

.page-article .paywall-block--revealing {
  opacity: 0;
}

.page-article .paywall-block__title {
  margin: 0 0 8px;
  font: 700 20px/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--publication-accent, #262422);
}

.page-article .paywall-block__lead {
  margin: 0 0 14px;
  font: 500 16px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--publication-muted, #4a4f59);
}

.page-article .paywall-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: var(--publication-border-width, 2px) solid var(--publication-accent, #262422);
  border-radius: 999px;
  background: #fff;
  color: var(--publication-accent, #262422);
  font: 700 15px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.page-article .paywall-block__button:hover {
  background: var(--publication-accent, #262422);
  color: #fff;
}

.page-article .paywall-block__button:active {
  border-color: #1a1918;
  background: #1f1d1b;
}

.page-article .ad-example-block {
  position: relative;
  margin: 30px 0;
  padding: 16px 18px 18px;
  border: var(--publication-border-width, 2px) solid var(--publication-paywall-border, rgba(38, 36, 34, 0.3));
  border-radius: var(--publication-block-radius, 14px);
  background: var(--publication-paywall-bg, #fbfbfc);
  color: var(--publication-muted, #4a4f59);
}

.page-article .ad-example-block__text {
  margin: 0;
  font: 500 16px/1.45 var(--publication-font-family, Georgia, serif);
}

.page-article .ad-example-block__text a {
  color: var(--publication-link, #245bda);
}

.page-article .ad-example-block__badge {
  position: absolute;
  right: 16px;
  bottom: -11px;
  padding: 3px 8px;
  border: 1px solid var(--publication-paywall-border, rgba(38, 36, 34, 0.3));
  border-radius: 4px;
  background: var(--publication-bg, #fff);
  color: var(--publication-muted, #8b92a0);
  font: 500 10px/1.2 ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .page-article .paywall-unlocked-content,
  .page-article .paywall-block {
    transition: none;
  }

  .page-article .paywall-unlocked-content--enter {
    opacity: 1;
    transform: none;
  }
}

.paywall-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 18, 20, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.paywall-modal-backdrop[hidden] {
  display: none !important;
}

.paywall-modal-card {
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid #d9dbe2;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 15, 20, 0.24);
  padding: 22px;
}

.paywall-modal-title {
  margin: 0 0 10px;
  font: 500 22px/1.15 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.paywall-modal-lead {
  margin: 0 0 14px;
  color: #3c4048;
  font: 500 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.paywall-modal-seller {
  margin: 0 0 12px;
  color: #4f5561;
  font: 500 12px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.paywall-modal-form {
  display: grid;
  gap: 10px;
}

.paywall-modal-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.paywall-modal-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd4de;
  border-radius: 10px;
  padding: 0 12px;
  font: 500 15px/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b2b2f;
}

.paywall-modal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 2px;
  color: #2b2b2f;
  font: 500 14px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.paywall-modal-consent input[type="checkbox"] {
  margin-top: 2px;
}

.paywall-modal-consent a {
  color: #245bda;
}

.paywall-modal-status {
  margin: 2px 0 0;
  color: #16743b;
  font: 600 14px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.paywall-modal-status[data-state="error"] {
  color: #b83a3a;
}

.paywall-modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.paywall-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #262422;
  min-height: 44px;
  padding: 0 18px;
  font: 700 16px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.paywall-modal-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.paywall-modal-btn--secondary {
  background: #fff;
  color: #262422;
}

.paywall-modal-btn--primary {
  background: #262422;
  color: #fff;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

.page-article figure {
  margin: 30px 0 0;
}

.page-article img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  height: auto;
  object-fit: contain;
  border-radius: var(--publication-block-radius, 18px);
  background: #f0f0f0;
  margin: 0 auto;
}

.document-asset {
  margin-top: 30px;
}

.document-asset a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: var(--publication-link, #245bda);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  font: 600 18px/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.document-asset a:hover {
  color: var(--publication-link, #1c48b2);
  text-decoration: none;
}

.publication-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 40px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #ececef;
}

.page-article .publication-report-link,
.page-article .publication-report-link:link,
.page-article .publication-report-link:visited,
.page-article .publication-report-link:active {
  display: inline-block;
  color: var(--publication-muted, #a3a9b4);
  text-decoration: none;
  text-underline-offset: 0.12em;
  font: 400 12px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 140ms ease;
}

.page-article .publication-report-link:hover {
  text-decoration: underline;
  color: var(--publication-muted, #a3a9b4);
}

.page-article .publication-made-with-link,
.page-article .publication-made-with-link:link,
.page-article .publication-made-with-link:visited,
.page-article .publication-made-with-link:active,
.page-article .publication-made-with-link:hover {
  color: var(--publication-muted, #a3a9b4);
  font-weight: 600;
}

.publication-footer-links[hidden] {
  display: none;
}

a {
  color: inherit;
}

.page-tools {
  justify-self: end;
  display: grid;
  gap: 12px;
  width: min(100%, 300px);
  min-width: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-tools-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7e7ea;
  border-radius: 20px;
  background: #fff;
  color: #262422;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.04), 0 8px 24px rgba(15, 15, 20, 0.05);
}

/* On wider screens the sheet and the bar are only grouping wrappers: their
   children are laid out directly in the card in the order below. */
.page-tools-sheet,
.page-tools-bar {
  display: contents;
}

.page-tools-head {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  min-width: 0;
}

.page-tools-bar .page-action {
  order: 2;
}

.page-tools-sheet .page-secondary {
  order: 3;
}

.page-tools-footer {
  order: 4;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #ececef;
  text-align: center;
}

.page-tools-footer[hidden],
.page-tools-backdrop,
.page-tools-more {
  display: none;
}

.page-tools-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17603a;
  font: 500 13px/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-tools-state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e5f;
}

.page-tools[hidden] {
  display: none;
}

.page-account {
  min-width: 0;
  color: #262422;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.account-link {
  display: inline-block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-link--button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.account-link--button:hover,
.account-link:hover {
  text-decoration: underline;
}

.page-action {
  display: flex;
  min-width: 0;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #262422;
  border-radius: 999px;
  text-decoration: none;
  font: 700 17px/1.1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: #262422;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color 140ms ease, color 140ms ease;
}

.action-pill:hover {
  background: #f2f2f3;
}

.action-pill:focus-visible {
  outline: 2px solid #262422;
  outline-offset: 3px;
}

.page-secondary-link,
.page-secondary-text,
.page-secondary-value,
.page-owner-link,
.page-secondary-copy,
.page-shortlink,
.page-secondary-copy-row {
  color: #8b92a0;
  font: 400 14px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.page-secondary-link,
.page-owner-link {
  display: inline-block;
  margin: 0;
  text-decoration: none;
  transition: color 140ms ease;
}

.page-secondary-link:hover,
.page-owner-link:hover {
  color: #5f6775;
  text-decoration: underline;
}

.page-promo {
  min-width: 0;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-promo[hidden] {
  display: none;
}

.page-promo-link {
  display: inline-block;
  color: #5f6368;
  text-decoration: none;
  font: 500 13px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  transition: color 140ms ease;
}

.page-promo-link:hover {
  color: #5f6775;
  text-decoration: underline;
}

.page-promo-link + .page-promo-link {
  display: block;
  margin-top: 4px;
}

.page-promo-link-emphasis {
  font-weight: 800;
  color: #262422;
}

.page-advertising-program {
  display: grid;
  width: 100%;
  justify-items: start;
  gap: 5px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e5e8ed;
}

.page-advertising-program__label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  color: #667386;
  font: 600 13px/1.42 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}

.page-advertising-program__checkbox {
  grid-column: 2;
  grid-row: 1;
  appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  margin: 0;
  border: 1px solid #b8c1cc;
  border-radius: 999px;
  background: #d7dde5;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.page-advertising-program__copy {
  grid-column: 1;
  grid-row: 1;
}

.page-advertising-program__checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(39, 48, 62, 0.22);
  transition: transform 160ms ease;
}

.page-advertising-program__checkbox:checked {
  border-color: #8bc7a7;
  background: #72b991;
}

.page-advertising-program--preview-active .page-advertising-program__checkbox {
  border-color: #8bc7a7;
  background: #72b991;
}

.page-advertising-program__checkbox:checked::after {
  transform: translateX(14px);
}

.page-advertising-program--preview-active .page-advertising-program__checkbox::after {
  transform: translateX(14px);
}

.page-advertising-program__checkbox:focus-visible {
  outline: 2px solid #88a8dd;
  outline-offset: 2px;
}

.page-advertising-program--active .page-advertising-program__label {
  color: #4d8063;
}

.page-advertising-program__details,
.advertising-program-modal__details {
  border: 0;
  padding: 0;
  background: transparent;
  color: #718095;
  font: 500 12px/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.page-advertising-program__details {
  display: inline;
  width: auto;
  margin-left: 0;
  font: inherit;
}

.advertising-program-modal__details {
  display: inline;
  margin: 0;
  color: #376cc5;
  font: inherit;
}

.advertising-program-modal .paywall-modal-title {
  margin-bottom: 12px;
}

.advertising-program-modal .paywall-modal-lead {
  margin-bottom: 12px;
}

.advertising-program-modal .paywall-modal-consent {
  margin: 6px 0;
  padding: 6px 0;
}

.advertising-program-modal .paywall-modal-actions {
  margin-top: 6px;
}

.advertising-program-modal__status {
  margin-top: 2px;
  padding: 9px 11px;
  border: 1px solid #c8e5d3;
  border-radius: 10px;
  background: #f1f9f4;
  color: #4d8063;
  font-weight: 600;
}

.advertising-program-modal__status--info {
  margin-bottom: 12px;
  border-color: #d8e0ec;
  background: #f5f7fb;
  color: #65748a;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .page-promo-link-emphasis {
    background: linear-gradient(90deg, #d33a2c, #7c3aed, #245bda);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.page-secondary {
  min-width: 0;
  display: grid;
  gap: 12px;
  color: #8b92a0;
  text-align: left;
  overflow-wrap: anywhere;
}

.page-secondary[hidden] {
  display: none;
}

.page-links {
  display: grid;
  min-width: 0;
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  overflow: hidden;
}

.page-secondary-group {
  display: grid;
  gap: 2px;
  margin: 0;
}

.page-secondary-copy-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  padding: 10px 8px 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: default;
}

.page-secondary-copy-row + .page-secondary-copy-row {
  border-top: 1px solid #e7e7ea;
}

/* Label and value stack in the first column; the copy button spans both rows. */
.page-copy-value-row {
  display: contents;
}

.page-secondary-copy-row .page-shortlink-label,
.page-copy-value-row .page-shortlink {
  grid-column: 1;
}

.page-copy-value-row .page-shortlink {
  min-width: 0;
  overflow: hidden;
  color: #262422;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-copy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f2f2f3;
  color: #262422;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.page-copy-button:hover,
.page-secondary-copy-row--copied .page-copy-button {
  background: #e4e4e7;
}

.page-copy-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(38, 36, 34, 0.24);
}

.page-copy-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.page-new-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
  color: #3c4043;
  font-weight: 500;
  font-size: 15px;
}

.page-new-record svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.page-copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  max-width: min(320px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 8px;
  background: #262422;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.22);
  font: 700 14px/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.page-copy-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-copy-toast {
    transition: none;
  }
}

.page-secondary-label,
.page-shortlink-label {
  color: #5f6368;
  font: 400 12px/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 36px 20px 64px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-tools {
    justify-self: start;
    width: min(100%, 360px);
  }

  .page-copy-toast {
    right: 16px;
    bottom: 16px;
  }

  .author-line {
    line-height: 1.18;
    text-underline-offset: 6px;
  }

  .paywall-modal-card {
    padding: 18px;
  }

  .paywall-modal-backdrop {
    align-items: flex-start;
  }

  .paywall-modal-title {
    font-size: 22px;
  }

  .paywall-modal-row {
    grid-template-columns: 1fr;
  }

  .paywall-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* Phones: the owner tools collapse into a bottom bar ("more" + edit); links,
   account and footer open as a bottom sheet from the "more" button. */
@media (max-width: 720px) {
  body.has-page-tools .page-shell {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .page-tools {
    justify-self: stretch;
    width: 100%;
  }

  .page-tools-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-tools-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--cookie-banner-offset, 0px);
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #ececef;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 15, 20, 0.06);
  }

  .page-tools-bar .page-action {
    flex: 1;
  }

  .page-tools-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: #262422;
    cursor: pointer;
  }

  .page-tools-more svg {
    width: 22px;
    height: 22px;
  }

  .page-tools-more[aria-expanded="true"] {
    border-color: #262422;
    background: #f2f2f3;
  }

  .page-tools-sheet {
    display: none;
  }

  .page-tools--sheet-open .page-tools-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--cookie-banner-offset, 0px);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -12px 32px rgba(15, 15, 20, 0.16);
  }

  .page-tools--sheet-open .page-tools-sheet::before {
    content: "";
    flex: none;
    align-self: center;
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: #d4d4d8;
  }

  .page-tools-head {
    padding: 0 4px;
  }

  .page-tools--sheet-open .page-tools-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(20, 20, 22, 0.38);
  }

  .page-copy-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .page-new-record {
    min-height: 44px;
  }

  .page-copy-toast {
    bottom: calc(96px + var(--cookie-banner-offset, 0px) + env(safe-area-inset-bottom));
  }
}
