/*
Theme Name: Ronix UI
Theme URI: https://ronixui.com/
Author: Ronix UI
Author URI: https://ronixui.com/
Description: A fast, app-like, mobile-first single-page WordPress theme for an original MIUI and HyperOS theme guide.
Version: 2.4.4
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ronix-ui
Domain Path: /languages
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, rtl-language-support, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --flg-ink: #10242a;
  --flg-text: #34484d;
  --flg-muted: #6a7c80;
  --flg-line: #dce8e6;
  --flg-paper: #fcfefd;
  --flg-bg: #f2f7f6;
  --flg-soft: #eaf3f1;
  --flg-accent: #087d7e;
  --flg-accent-deep: #056266;
  --flg-accent-soft: #e2f3f1;
  --flg-action: #087d7e;
  --flg-action-hover: #056266;
  --flg-on-action: #ffffff;
  --flg-mint: #24a47c;
  --flg-warm: #ec9b46;
  --flg-warm-soft: #fff1df;
  --flg-warning: #fff8db;
  --flg-warning-text: #4f4a31;
  --flg-warning-line: #eee0a1;
  --flg-avatar-bg: #10242a;
  --flg-header-bg: rgba(248, 252, 251, 0.9);
  --flg-menu-bg: rgba(252, 254, 253, 0.98);
  --flg-glass-bg: rgba(252, 254, 253, 0.8);
  --flg-glass-edge: rgba(255, 255, 255, 0.94);
  --flg-glass-glow: rgba(8, 125, 126, 0.1);
  --flg-focus: #087d7e;
  --flg-radius-sm: 12px;
  --flg-radius: 22px;
  --flg-radius-lg: 32px;
  --flg-shadow: 0 22px 70px rgba(17, 56, 57, 0.09);
  --flg-header: 74px;
  --flg-content: 1040px;
  --flg-wide: 1360px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --flg-ink: #edf8f6;
  --flg-text: #c9dcda;
  --flg-muted: #91aaa7;
  --flg-line: #29413f;
  --flg-paper: #101e21;
  --flg-bg: #0a1418;
  --flg-soft: #182b2d;
  --flg-accent: #79d5cf;
  --flg-accent-deep: #a1e7e1;
  --flg-accent-soft: #183b3c;
  --flg-action: #147f80;
  --flg-action-hover: #0f696d;
  --flg-on-action: #ffffff;
  --flg-mint: #63d3ad;
  --flg-warm: #f2b56f;
  --flg-warm-soft: #3a2d1e;
  --flg-warning: #332e16;
  --flg-warning-text: #f4e8a3;
  --flg-warning-line: #6b5f27;
  --flg-avatar-bg: #234447;
  --flg-header-bg: rgba(10, 20, 24, 0.9);
  --flg-menu-bg: rgba(16, 30, 33, 0.98);
  --flg-glass-bg: rgba(20, 39, 41, 0.82);
  --flg-glass-edge: rgba(121, 213, 207, 0.16);
  --flg-glass-glow: rgba(121, 213, 207, 0.09);
  --flg-focus: #79d5cf;
  --flg-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --wp--preset--color--ink: #edf8f6;
  --wp--preset--color--paper: #101e21;
  --wp--preset--color--soft: #182b2d;
  --wp--preset--color--accent: #79d5cf;
  --wp--preset--color--mint: #63d3ad;
  color-scheme: dark;
}

:root[data-theme="dark"] .article-content .has-black-color,
:root[data-theme="dark"] .entry-content .has-black-color,
:root[data-theme="dark"] .article-content [style*="color: #000"],
:root[data-theme="dark"] .entry-content [style*="color: #000"],
:root[data-theme="dark"] .article-content [style*="color:#000"],
:root[data-theme="dark"] .entry-content [style*="color:#000"],
:root[data-theme="dark"] .article-content [style*="color: rgb(0, 0, 0)"],
:root[data-theme="dark"] .entry-content [style*="color: rgb(0, 0, 0)"] {
  color: var(--flg-ink) !important;
}

:root[data-theme="dark"] .article-content .has-white-background-color,
:root[data-theme="dark"] .entry-content .has-white-background-color,
:root[data-theme="dark"] .article-content [style*="background-color: #fff"],
:root[data-theme="dark"] .entry-content [style*="background-color: #fff"],
:root[data-theme="dark"] .article-content [style*="background-color:#fff"],
:root[data-theme="dark"] .entry-content [style*="background-color:#fff"],
:root[data-theme="dark"] .article-content [style*="background-color: rgb(255, 255, 255)"],
:root[data-theme="dark"] .entry-content [style*="background-color: rgb(255, 255, 255)"] {
  background-color: var(--flg-soft) !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--flg-header) + 26px);
}

body {
  margin: 0;
  color: var(--flg-text);
  background:
    radial-gradient(circle at 8% 2%, rgba(8, 125, 126, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 30%, rgba(236, 155, 70, 0.06), transparent 24rem),
    var(--flg-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", "Nirmala UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  transition: color 160ms ease, background-color 160ms ease;
}

img,
picture,
video,
iframe,
embed,
object,
canvas,
svg {
  max-width: 100%;
}

img,
picture,
video {
  display: block;
  height: auto;
}

a {
  color: var(--flg-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--flg-accent-deep);
}

button,
input,
textarea,
select {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--flg-focus);
  outline-offset: 3px;
}

::selection {
  color: var(--flg-on-action);
  background: var(--flg-action);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--flg-ink);
  font-weight: 790;
  line-height: 1.16;
  letter-spacing: -0.038em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
}

h2 {
  margin: 1.75em 0 0.65em;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
}

h3 {
  margin: 1.55em 0 0.55em;
  font-size: clamp(1.28rem, 2.5vw, 1.65rem);
}

h4 {
  margin: 1.7em 0 0.55em;
  font-size: 1.17rem;
}

p,
ul,
ol,
blockquote,
table,
figure {
  margin-top: 0;
  margin-bottom: 1.25em;
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: 0.46em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  color: var(--flg-on-action);
  background: var(--flg-action);
  border-radius: 9px;
}

.app-width {
  width: min(calc(100% - 40px), var(--flg-wide));
  margin-inline: auto;
}

.reading-progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--flg-accent), #7395ff);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.app-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--flg-header);
  overflow: hidden;
  background: var(--flg-header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--flg-line) 82%, transparent);
  box-shadow: 0 8px 30px rgba(16, 36, 42, 0.035);
  backdrop-filter: blur(20px) saturate(145%);
}

.admin-bar .app-header {
  top: 32px;
}

.admin-bar .theme-toggle {
  top: calc(32px + (var(--flg-header) - 44px) / 2);
}

.app-header-inner {
  display: grid;
  min-height: var(--flg-header);
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.app-brand-wrap {
  min-width: 0;
}

.app-brand {
  display: inline-flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--flg-ink);
  text-decoration: none;
}

.app-brand:hover {
  color: var(--flg-ink);
}

.app-mark {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--flg-action), #36aaa2);
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 9px 22px rgba(8, 125, 126, 0.24);
  place-items: center;
}

.app-mark::before,
.app-mark::after,
.app-mark span {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
}

.app-mark::before {
  width: 24px;
  height: 24px;
}

.app-mark::after {
  width: 15px;
  height: 15px;
}

.app-mark span {
  width: 6px;
  height: 6px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--flg-ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand-copy small {
  max-width: 260px;
  overflow: hidden;
  margin-top: 4px;
  color: var(--flg-muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-logo-link {
  display: flex;
  max-width: min(220px, calc(100vw - 92px));
  min-width: 0;
  min-height: 44px;
  align-items: center;
}

.custom-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}

.desktop-navigation {
  justify-self: end;
}

.desktop-navigation ul {
  display: flex;
  padding: 4px;
  margin: 0;
  align-items: center;
  background: color-mix(in srgb, var(--flg-soft) 72%, transparent);
  border: 1px solid var(--flg-line);
  border-radius: 15px;
  gap: 2px;
  list-style: none;
}

.desktop-navigation li {
  margin: 0;
}

.desktop-navigation a {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 15px;
  align-items: center;
  color: var(--flg-muted);
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-navigation a:hover,
.desktop-navigation a:focus-visible,
.desktop-navigation .current-menu-item > a,
.desktop-navigation .current_page_item > a {
  color: var(--flg-accent);
  background: var(--flg-paper);
  box-shadow: 0 5px 15px rgba(16, 36, 42, 0.07);
}

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--flg-ink);
  background: var(--flg-soft);
  border: 1px solid var(--flg-line);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  place-items: center;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.menu-lines::before {
  transform: translateY(-6px);
}

.menu-lines::after {
  transform: translateY(4px);
}

.mobile-menu[open] .menu-lines {
  background: transparent;
}

.mobile-menu[open] .menu-lines::before {
  transform: translateY(1px) rotate(45deg);
}

.mobile-menu[open] .menu-lines::after {
  transform: translateY(-1px) rotate(-45deg);
}

.mobile-menu nav {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 28px));
  padding: 10px;
  background: var(--flg-menu-bg);
  border: 1px solid var(--flg-line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20, 29, 53, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu li {
  margin: 0;
}

.mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--flg-text);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 680;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a {
  color: var(--flg-accent);
  background: var(--flg-accent-soft);
}

.app-main {
  min-height: 65vh;
  padding: clamp(24px, 4vw, 48px) 0 clamp(58px, 7vw, 92px);
}

.app-layout {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.toc-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  position: relative;
  display: block;
  padding: 8px 9px 8px 15px;
  color: var(--flg-muted);
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.toc-list a::before {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 4px;
  height: 4px;
  background: var(--flg-muted);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--flg-accent);
  background: var(--flg-accent-soft);
}

.toc-list a.is-active::before {
  height: 14px;
  background: var(--flg-accent);
  border-radius: 4px;
}

.toc-list .toc-subitem a {
  padding-left: 26px;
  font-size: 0.69rem;
}

.toc-list .toc-subitem a::before {
  left: 14px;
}

.article-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--flg-paper);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius-lg);
  box-shadow: var(--flg-shadow);
}

.article-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: clamp(28px, 7vw, 78px);
  left: clamp(28px, 7vw, 78px);
  height: 4px;
  background: linear-gradient(90deg, var(--flg-accent), var(--flg-mint) 58%, var(--flg-warm));
  border-radius: 0 0 8px 8px;
  content: "";
}

.article-hero {
  position: relative;
  padding: clamp(38px, 4.5vw, 58px) clamp(28px, 7vw, 78px) clamp(30px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(8, 125, 126, 0.1), transparent 46%),
    radial-gradient(circle at 94% 10%, rgba(236, 155, 70, 0.11), transparent 17rem),
    var(--flg-paper);
  border-bottom: 1px solid var(--flg-line);
}

.article-hero::after {
  position: absolute;
  top: -112px;
  right: -72px;
  width: 280px;
  height: 280px;
  border: 32px double rgba(8, 125, 126, 0.07);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.breadcrumb {
  display: flex;
  margin-bottom: clamp(26px, 4vw, 42px);
  align-items: center;
  gap: 8px;
  color: var(--flg-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--flg-muted);
  text-decoration: none;
}

.article-topic {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 15px;
  color: var(--flg-accent);
  background: var(--flg-accent-soft);
  border: 1px solid var(--flg-line);
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 830;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.article-intro {
  position: relative;
  z-index: 1;
  max-width: 860px;
  color: var(--flg-text);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.64;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.article-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
  gap: 8px;
  color: var(--flg-muted);
  font-size: 0.72rem;
  font-weight: 590;
}

.article-meta > span {
  display: inline-flex;
  min-height: 38px;
  padding: 5px 11px;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--flg-paper) 82%, transparent);
  border: 1px solid var(--flg-line);
  border-radius: 999px;
}

.meta-author {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  color: var(--flg-muted);
  border-radius: 10px;
  text-decoration: none;
}

.meta-author:hover,
.meta-author:focus-visible {
  color: var(--flg-accent);
}

.article-meta > span:not(:first-child)::before {
  display: none;
}

.mini-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--flg-avatar-bg);
  border-radius: 9px 9px 9px 3px;
  font-size: 0.58rem;
  font-weight: 800;
  place-items: center;
}

.featured-image {
  margin: 0;
  background: var(--flg-paper);
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-toc {
  display: none;
}

.article-content {
  max-width: var(--flg-content);
  padding: clamp(30px, 4vw, 48px) clamp(28px, 5vw, 52px) clamp(42px, 5vw, 58px);
  margin-inline: auto;
  overflow-wrap: break-word;
}

.article-content > *,
.entry-content > *,
.entry-summary > *,
.comment-content > * {
  min-width: 0;
  max-width: 100%;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content > p:empty,
.entry-content > p:empty {
  display: none;
}

.article-content img:not(.emoji),
.article-content picture,
.article-content picture img {
  max-width: 100%;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.article-content figure,
.article-content .wp-block-image {
  max-width: 100%;
  overflow: visible;
}

.article-content iframe,
.article-content video,
.entry-content iframe,
.entry-content video {
  width: 100%;
  max-width: 100%;
}

.article-content .wp-block-embed,
.article-content .wp-block-embed__wrapper,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content .wp-block-columns,
.article-content .wp-block-group,
.article-content .wp-block-media-text,
.entry-content .wp-block-columns,
.entry-content .wp-block-group,
.entry-content .wp-block-media-text {
  min-width: 0;
  max-width: 100%;
}

.article-content pre,
.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content h2,
.article-content h3,
.article-content h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: calc(var(--flg-header) + 24px);
}

.article-content h2,
.entry-content h2 {
  padding-inline-start: 17px;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.72em;
  border-inline-start: 4px solid var(--flg-accent);
}

.article-content h3,
.entry-content h3 {
  margin-top: clamp(1.55rem, 3vw, 2.3rem);
  margin-bottom: 0.58em;
}

.article-content h4,
.entry-content h4 {
  margin-top: 1.45rem;
}

.article-content > h2:first-child,
.entry-content > h2:first-child,
.article-content > :is(h2, h3, h4) + :is(h2, h3, h4),
.entry-content > :is(h2, h3, h4) + :is(h2, h3, h4) {
  margin-top: 0;
}

.article-content > :is(p, ul, ol, figure, table, .wp-block-group, .wp-block-columns) + h2,
.entry-content > :is(p, ul, ol, figure, table, .wp-block-group, .wp-block-columns) + h2 {
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.article-content a {
  overflow-wrap: anywhere;
  font-weight: 570;
}

.article-content blockquote {
  padding: 18px 21px;
  margin-left: 0;
  color: var(--flg-text);
  background: linear-gradient(115deg, var(--flg-accent-soft), transparent 86%);
  border: 1px solid var(--flg-line);
  border-inline-start: 4px solid var(--flg-accent);
  border-radius: 0 var(--flg-radius-sm) var(--flg-radius-sm) 0;
  font-size: 1.06rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content hr {
  height: 1px;
  margin: 2.4em 0;
  background: var(--flg-line);
  border: 0;
}

.article-content .wp-block-table,
.article-content > table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.8em;
  border: 1px solid var(--flg-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 36, 42, 0.045);
  -webkit-overflow-scrolling: touch;
}

.article-content table,
.wp-block-table table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-content > table {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--flg-line);
}

.article-content th {
  color: var(--flg-ink);
  background: var(--flg-accent-soft);
  font-size: 0.75rem;
  font-weight: 780;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content figure img,
.article-content .wp-block-image img {
  border-radius: var(--flg-radius-sm);
}

.article-content figcaption,
.wp-caption-text {
  margin-top: 9px;
  color: var(--flg-muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.article-content details,
.wp-block-details {
  padding: 17px 18px;
  margin-bottom: 10px;
  background: var(--flg-soft);
  border: 1px solid var(--flg-line);
  border-radius: 14px;
}

.article-content details:last-of-type,
.wp-block-details:last-of-type {
  border-bottom: 1px solid var(--flg-line);
}

.article-content summary {
  position: relative;
  padding-right: 40px;
  color: var(--flg-ink);
  cursor: pointer;
  font-weight: 720;
  line-height: 1.45;
  list-style: none;
}

.article-content summary::-webkit-details-marker {
  display: none;
}

.article-content summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--flg-accent);
  background: var(--flg-accent-soft);
  border-radius: 8px;
  content: "+";
  place-items: center;
  transform: translateY(-50%);
}

.article-content details[open] summary::after {
  content: "−";
}

.article-content details > *:not(summary) {
  margin-top: 14px;
}

.article-content .wp-block-button__link,
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 19px;
  align-items: center;
  justify-content: center;
  color: var(--flg-on-action);
  background: var(--flg-action);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 10px 24px rgba(8, 125, 126, 0.2);
  font-size: 0.88rem;
  font-weight: 740;
  text-decoration: none;
}

.article-content .wp-block-button__link:hover,
.button:hover {
  color: var(--flg-on-action);
  background: var(--flg-action-hover);
}

.article-content .is-style-outline .wp-block-button__link {
  color: var(--flg-accent);
  background: transparent;
  border: 1px solid currentColor;
  box-shadow: none;
}

.content-note,
.article-content .is-style-flg-note {
  padding: 19px 21px;
  color: var(--flg-text);
  background: var(--flg-accent-soft);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius-sm);
}

.alignwide {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: min(calc(100vw - 30px), 1280px);
  max-width: 1280px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.page-links {
  padding-top: 26px;
  margin-top: 38px;
  border-top: 1px solid var(--flg-line);
}

.empty-editor-notice {
  padding: 22px;
  color: var(--flg-warning-text);
  background: var(--flg-warning);
  border: 1px solid var(--flg-warning-line);
  border-radius: var(--flg-radius-sm);
  font-size: 0.88rem;
}

.empty-editor-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--flg-ink);
}

.article-footer {
  max-width: var(--flg-content);
  padding: 0 clamp(28px, 5vw, 52px) clamp(42px, 6vw, 70px);
  margin-inline: auto;
}

.author-box {
  display: grid;
  padding: 24px;
  background: var(--flg-soft);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius);
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.author-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--flg-avatar-bg);
  border-radius: 17px;
  font-size: 0.78rem;
  font-weight: 820;
  place-items: center;
}

.author-avatar-link {
  display: block;
  align-self: start;
  border-radius: 17px;
  text-decoration: none;
}

.author-label {
  display: block;
  margin-bottom: 3px;
  color: var(--flg-muted);
  font-size: 0.63rem;
  font-weight: 770;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.author-box h2 {
  margin: 0 0 3px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.author-box h2 a {
  color: var(--flg-ink);
  text-decoration: none;
}

.author-box h2 a:hover,
.author-box h2 a:focus-visible {
  color: var(--flg-accent);
}

.author-role {
  margin-bottom: 8px;
  color: var(--flg-accent);
  font-size: 0.76rem;
  font-weight: 680;
}

.author-bio {
  margin: 0;
  color: var(--flg-muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.author-bio p {
  margin-bottom: 0.65em;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

.author-profile-link,
.author-website {
  display: inline-flex;
  min-height: 44px;
  margin-top: 12px;
  align-items: center;
  gap: 6px;
  color: var(--flg-accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.author-profile-link:hover,
.author-website:hover {
  color: var(--flg-accent-deep);
}

.site-footer {
  position: relative;
  padding: clamp(34px, 4vw, 52px) 0 26px;
  overflow: hidden;
  color: var(--flg-muted);
  background:
    radial-gradient(circle at 8% 4%, var(--flg-glass-glow), transparent 30rem),
    radial-gradient(circle at 92% 100%, rgba(236, 155, 70, 0.08), transparent 26rem),
    var(--flg-bg);
  border-top: 1px solid var(--flg-line);
  font-size: 0.75rem;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flg-accent), transparent);
  content: "";
  transform: translateX(-50%);
}

.footer-panels {
  display: grid;
  padding-bottom: 24px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(16px, 2vw, 24px);
}

.footer-panels--single {
  grid-template-columns: minmax(0, 1fr);
}

.footer-panels > *,
.footer-bottom > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-widget-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 14px;
}

.footer-glass-widget {
  position: relative;
  min-height: 0;
  min-width: 0;
  padding: clamp(22px, 2.5vw, 32px);
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--flg-glass-edge), transparent 42%),
    var(--flg-glass-bg);
  border: 1px solid var(--flg-glass-edge);
  border-radius: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 18px 48px rgba(17, 56, 57, 0.09);
  backdrop-filter: blur(18px) saturate(130%);
}

.footer-identity {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-identity::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 34px double color-mix(in srgb, var(--flg-accent) 9%, transparent);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.footer-navigation-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 5px;
  background: linear-gradient(90deg, var(--flg-mint), var(--flg-warm));
  border-radius: 0 0 0 8px;
  content: "";
}

.footer-panel-heading {
  margin-bottom: clamp(16px, 2vw, 22px);
}

.footer-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.footer-widget {
  min-width: 0;
}

.footer-widget-title,
.footer-glass-widget .wp-block-heading {
  position: relative;
  margin: 0 0 12px;
  color: var(--flg-muted);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 13px;
  color: var(--flg-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--flg-on-action);
  background: linear-gradient(145deg, var(--flg-action), #36aaa2);
  border-radius: 16px 16px 16px 6px;
  box-shadow: 0 10px 24px rgba(8, 125, 126, 0.2);
  place-items: center;
}

.footer-brand-mark::before,
.footer-brand-mark::after,
.footer-brand-mark span {
  position: absolute;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
}

.footer-brand-mark::before {
  width: 27px;
  height: 27px;
}

.footer-brand-mark::after {
  width: 17px;
  height: 17px;
}

.footer-brand-mark span {
  width: 7px;
  height: 7px;
}

.footer-brand:hover,
.footer-glass-widget a:hover {
  color: var(--flg-accent);
}

.footer-logo-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
}

.footer-logo {
  width: auto;
  max-width: min(100%, 320px);
  max-height: 68px;
}

.footer-identity p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 15px 0 0;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  line-height: 1.62;
}

.footer-widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-pages-column .footer-widget > ul,
.footer-pages-column nav > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
}

.footer-policy-links {
  margin-top: 6px !important;
}

.footer-widget .search-form {
  display: grid;
  margin-top: 0;
}

.footer-widget li {
  margin: 0;
}

.footer-widget li + li {
  margin-top: 2px;
}

.footer-widget nav a,
.footer-widget li > a {
  position: relative;
  display: flex;
  min-height: 44px;
  padding: 6px 30px 6px 0;
  align-items: center;
  color: var(--flg-text);
  border-bottom: 1px solid var(--flg-line);
  font-weight: 680;
  line-height: 1.4;
  text-decoration: none;
}

.footer-widget nav a::after,
.footer-widget li > a::after {
  position: absolute;
  right: 3px;
  color: var(--flg-accent);
  content: "↗";
  font-size: 0.85rem;
  transition: transform 160ms ease;
}

.footer-widget nav a:hover::after,
.footer-widget li > a:hover::after {
  transform: translate(2px, -2px);
}

.footer-recent-posts li {
  padding-bottom: 4px;
}

.footer-recent-posts li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-recent-posts time,
.footer-widget .wp-block-latest-posts__post-date {
  display: block;
  margin-top: -2px;
  color: var(--flg-muted);
  font-size: 0.66rem;
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid var(--flg-line);
  justify-content: space-between;
  gap: 24px;
}

.author-profile-header {
  display: grid;
  padding: clamp(24px, 5vw, 42px);
  margin-bottom: 42px;
  align-items: start;
  background: var(--flg-soft);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
}

.author-profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font-size: 1rem;
}

.author-profile-header .page-title {
  margin: 0 0 6px;
}

.author-profile-role {
  margin: 0 0 10px;
  color: var(--flg-accent);
  font-weight: 720;
}

.author-profile-bio {
  max-width: 760px;
}

.author-profile-bio p:last-child {
  margin-bottom: 0;
}

.author-featured-guide,
.author-posts {
  margin-top: 38px;
}

.author-featured-guide > h2,
.author-posts > h2 {
  margin-top: 0;
}

.author-featured-card {
  padding: 22px;
  background: var(--flg-accent-soft);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius-sm);
}

.author-featured-card h3 {
  margin: 0 0 7px;
}

.author-featured-card h3 a {
  color: var(--flg-ink);
  text-decoration: none;
}

.author-featured-card h3 a:hover {
  color: var(--flg-accent);
}

.author-featured-card p:last-child {
  margin-bottom: 0;
}

.header-tools {
  width: 44px;
  height: 44px;
}

.theme-toggle {
  position: fixed;
  z-index: 1100;
  top: calc((var(--flg-header) - 44px) / 2);
  right: max(20px, calc((100vw - var(--flg-wide)) / 2));
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--flg-ink);
  background: var(--flg-paper);
  border: 1px solid var(--flg-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 24, 36, 0.16);
  cursor: pointer;
  font-size: 1.15rem;
  place-items: center;
}

.theme-toggle:hover {
  color: var(--flg-accent);
  background: var(--flg-soft);
}

.theme-toggle span {
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px -2px 0 var(--flg-paper);
}

:root[data-theme="dark"] .theme-toggle span {
  background: currentColor;
  box-shadow: none;
  transform: scale(0.72);
}

.back-to-top {
  position: fixed;
  z-index: 800;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--flg-on-action);
  background: var(--flg-action);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 24, 36, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  place-items: center;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.content-area {
  min-height: 60vh;
  padding: 48px 0 85px;
}

.reading-shell {
  width: min(calc(100% - 32px), 1020px);
  padding: clamp(28px, 6vw, 58px);
  margin-inline: auto;
  background: var(--flg-paper);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius);
  box-shadow: var(--flg-shadow);
}

.page-header {
  margin-bottom: 22px;
}

.page-header > :last-child,
.entry-content > :last-child,
.entry-summary > :last-child,
.archive-description > :last-child {
  margin-bottom: 0;
}

.archive-description {
  color: var(--flg-muted);
}

.entry-content,
.entry-summary,
.comment-content {
  overflow-wrap: break-word;
}

.entry-content img,
.entry-summary img,
.attachment-media img,
.wp-caption {
  max-width: 100%;
  height: auto;
}

.post-thumbnail,
.attachment-media {
  display: block;
  margin: 20px 0 24px;
}

.post-thumbnail img,
.attachment-media img {
  width: 100%;
  border-radius: var(--flg-radius-sm);
}

.wp-caption-text,
.gallery-caption {
  margin-top: 8px;
  color: var(--flg-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.alignleft {
  float: left;
  margin: 0.35em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.35em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.sticky {
  padding-left: 16px;
  border-left: 3px solid var(--flg-accent);
}

.search-form {
  display: flex;
  max-width: 620px;
  margin-top: 24px;
  align-items: stretch;
  gap: 9px;
}

.search-form label {
  min-width: 0;
  flex: 1;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--flg-ink);
  background: var(--flg-paper);
  border: 1px solid var(--flg-line);
  border-radius: 10px;
}

.search-field::placeholder,
.comment-form textarea::placeholder,
.comment-form input::placeholder {
  color: var(--flg-muted);
  opacity: 1;
}

.search-field {
  min-height: 48px;
}

.search-submit,
.comment-form input[type="submit"] {
  min-height: 48px;
  padding: 10px 18px;
  color: var(--flg-on-action);
  background: var(--flg-action);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 740;
}

.search-submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--flg-action-hover);
}

.no-results {
  padding: 24px 0;
}

.no-results h2 {
  margin-top: 0;
}

.pagination .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links,
.comment-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--flg-text);
  background: var(--flg-soft);
  border-radius: 9px;
  place-items: center;
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  color: var(--flg-on-action);
  background: var(--flg-action);
}

.comments-area {
  padding-top: 34px;
  margin-top: 44px;
  border-top: 1px solid var(--flg-line);
}

.comments-title,
.comment-reply-title {
  margin-top: 0;
  font-size: 1.45rem;
}

.comment-list,
.comment-list .children {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  padding-left: 24px;
}

.comment-body {
  padding: 22px 0;
  border-bottom: 1px solid var(--flg-line);
}

.comment-meta {
  margin-bottom: 12px;
  font-size: 0.76rem;
}

.comment-author .avatar {
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: middle;
}

.bypostauthor > .comment-body {
  padding-right: 16px;
  padding-left: 16px;
  background: var(--flg-accent-soft);
  border-radius: var(--flg-radius-sm);
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--flg-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-form-cookies-consent input {
  margin-top: 7px;
}

.entry-title,
.page-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.entry-meta {
  margin-bottom: 25px;
  color: var(--flg-muted);
  font-size: 0.75rem;
}

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--flg-line);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.post-card h2 a {
  color: var(--flg-ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 38px;
  justify-content: space-between;
  gap: 18px;
}

.nav-links > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .desktop-navigation {
    display: none;
  }

  .app-header-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-tools {
    display: none;
  }

  .custom-logo-link {
    max-width: min(240px, calc(100vw - 36px));
  }

  .mobile-menu {
    display: block;
  }

  .app-main {
    padding: 16px 0 48px;
  }

  .app-width.app-layout {
    width: 100%;
    max-width: none;
  }

  .article-card {
    overflow: visible;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .article-hero {
    padding-right: 24px;
    padding-left: 24px;
  }

  .article-content {
    max-width: none;
    padding-right: 22px;
    padding-left: 22px;
  }

  .mobile-toc {
    display: block;
    padding: 0 24px;
    margin: 24px 24px 0;
    background: var(--flg-accent-soft);
    border: 1px solid var(--flg-line);
    border-radius: var(--flg-radius-sm);
  }

  .mobile-toc summary {
    display: flex;
    padding: 16px 0;
    align-items: center;
    justify-content: space-between;
    color: var(--flg-ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 750;
    list-style: none;
  }

  .mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc[open] summary span {
    transform: rotate(180deg);
  }

  .mobile-toc .toc-list {
    padding-bottom: 16px;
  }

  .mobile-toc .toc-list a {
    padding-block: 9px;
  }
}

@media (max-width: 700px) {
  :root {
    --flg-header: 62px;
  }

  body {
    font-size: 16px;
    background: var(--flg-bg);
  }

  .app-width {
    width: min(calc(100% - 20px), var(--flg-wide));
  }

  .app-header-inner {
    gap: 10px;
  }

  .app-mark {
    flex-basis: 37px;
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }

  .brand-copy strong {
    max-width: min(58vw, 230px);
    overflow: visible;
    font-size: 0.85rem;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .brand-copy small {
    display: block;
    max-width: min(58vw, 230px);
    overflow: visible;
    font-size: 0.62rem;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .custom-logo-link {
    max-width: min(210px, calc(100vw - 84px));
  }

  .custom-logo {
    height: 34px;
    max-height: 34px;
  }

  .app-main {
    padding: 10px 0 28px;
  }

  .app-layout {
    width: 100%;
  }

  .article-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .article-hero {
    padding: 24px 16px 30px;
  }

  .breadcrumb {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    line-height: 1.45;
  }

  .article-topic {
    max-width: 100%;
    overflow: visible;
    font-size: 0.59rem;
    line-height: 1.4;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .article-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    line-height: 1.13;
  }

  .article-intro {
    font-size: 1.02rem;
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 22px;
    gap: 7px;
  }

  .article-meta > span {
    width: auto;
    max-width: 100%;
  }

  .article-meta > span:not(:first-child)::before {
    display: none;
  }

  .featured-image {
    margin: 0;
  }

  .featured-image img {
    width: 100%;
    height: auto;
  }

  .mobile-toc {
    padding: 0 15px;
    margin: 16px 12px 0;
  }

  .article-content {
    padding: 28px 16px 42px;
  }

  .article-content h2 {
    margin-top: 1.55em;
    font-size: 1.72rem;
  }

  .article-content > h2:first-child,
  .entry-content > h2:first-child,
  .article-content > :is(h2, h3, h4) + :is(h2, h3, h4),
  .entry-content > :is(h2, h3, h4) + :is(h2, h3, h4) {
    margin-top: 0;
  }

  .article-content h3 {
    font-size: 1.34rem;
  }

  .article-content .wp-block-buttons {
    display: grid;
  }

  .article-content .wp-block-button,
  .article-content .wp-block-button__link {
    width: 100%;
  }

  .alignleft,
  .alignright {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }

  .search-form {
    display: grid;
  }

  .search-submit {
    width: 100%;
  }

  .comment-list .children {
    padding-left: 12px;
  }

  .alignwide,
  .alignfull {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .article-footer {
    padding: 0 16px 42px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 28px 0 24px;
  }

  .footer-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-widget-column {
    gap: 12px;
  }

  .footer-glass-widget {
    min-height: 0;
    padding: 21px;
    border-radius: 21px;
  }

  .footer-link-groups {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-pages-column .footer-widget > ul,
  .footer-pages-column nav > ul {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    gap: 5px;
  }

  .footer-logo {
    max-width: 100%;
  }

  .author-profile-header {
    margin-bottom: 32px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .back-to-top {
    right: 15px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .reading-shell {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .app-header {
    top: 46px;
  }
}

@media (max-width: 380px) {
  .app-width {
    width: min(calc(100% - 16px), var(--flg-wide));
  }

  .article-hero,
  .article-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .article-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-toc {
    margin-right: 8px;
    margin-left: 8px;
  }

  .theme-toggle,
  .back-to-top {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .app-header,
  .mobile-toc,
  .theme-toggle,
  .back-to-top,
  .site-footer,
  .reading-progress,
  .empty-editor-notice {
    display: none !important;
  }

  .app-main {
    padding: 0;
  }

  .app-layout {
    display: block;
    width: 100%;
  }

  .article-card {
    border: 0;
    box-shadow: none;
  }
}

img.mini-avatar,
img.author-avatar,
img.author-profile-avatar {
  object-fit: cover;
}

.is-style-flg-ad-gap {
  margin-block: 2.5rem;
  clear: both;
}

@media (min-width: 981px) {
  html:has(.page-nav) {
    scroll-padding-top: calc(var(--flg-header) + 64px);
  }
}

.page-nav ~ .article-content :is(h2, h3, h4) {
  scroll-margin-top: 8px;
}

.article-card {
  overflow: visible;
}

.article-hero {
  border-radius: var(--flg-radius-lg) var(--flg-radius-lg) 0 0;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--flg-soft);
  border-top: 1px solid var(--flg-line);
  border-bottom: 1px solid var(--flg-line);
}

.guide-facts li {
  margin: 0;
  padding: 16px 22px 15px;
  border-right: 1px solid var(--flg-line);
}

.guide-facts li:last-child {
  border-right: 0;
}

.guide-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--flg-accent);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-facts span {
  display: block;
  color: var(--flg-ink);
  font-size: 0.95rem;
  font-weight: 640;
  line-height: 1.45;
}

.page-nav {
  position: sticky;
  top: var(--flg-header);
  z-index: 40;
  background: var(--flg-paper);
  border-bottom: 1px solid var(--flg-line);
}

.admin-bar .page-nav {
  top: calc(var(--flg-header) + 32px);
}

.page-nav .section-nav {
  display: flex;
  max-width: var(--flg-wide);
  padding: 10px clamp(16px, 4vw, 28px);
  margin: 0 auto;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-nav .section-nav::-webkit-scrollbar {
  display: none;
}

.page-nav .section-nav li {
  flex: 0 0 auto;
}

.page-nav .section-nav a {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  align-items: center;
  color: var(--flg-muted);
  background: transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-nav .section-nav a::before {
  display: none;
}

.page-nav .section-nav a:hover,
.page-nav .section-nav a.is-active {
  color: var(--flg-on-action);
  background: var(--flg-action);
}

.guide-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.guide-trust li {
  margin: 0;
}

.guide-trust a {
  color: var(--flg-accent-deep);
  font-size: 0.92rem;
  font-weight: 720;
}

.guide-method {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--flg-accent-soft);
  border: 1px solid var(--flg-line);
  border-radius: var(--flg-radius-sm);
}

.guide-method strong {
  display: block;
  margin-bottom: 4px;
  color: var(--flg-ink);
  font-size: 0.95rem;
}

.guide-method p {
  margin: 0;
  color: var(--flg-text);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .article-hero {
    border-radius: 0;
  }

  .guide-facts {
    grid-template-columns: 1fr;
  }

  .guide-facts li {
    border-right: 0;
    border-bottom: 1px solid var(--flg-line);
  }

  .guide-facts li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .page-nav {
    top: calc(var(--flg-header) + 46px);
  }
}

.theme-compare {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.82fr) minmax(0, 1fr) minmax(0, 1.12fr);
  margin: 0 0 1.8em;
  overflow: hidden;
  background: var(--flg-paper);
  border: 1px solid var(--flg-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 36, 42, 0.045);
}

.theme-compare--two {
  grid-template-columns: minmax(9.5rem, 0.72fr) minmax(0, 1.28fr);
}

.theme-compare--paths {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 1.1fr);
}

.theme-compare__cols span:last-child {
  border-inline-end: 0;
}

.theme-compare__cols,
.theme-compare__item,
.theme-compare__pair {
  display: contents;
}

.theme-compare__cols span,
.theme-compare__item > p,
.theme-compare__pair p {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--flg-line);
}

.theme-compare__cols span:not(.is-current),
.theme-compare__item > p {
  border-inline-end: 1px solid var(--flg-line);
}

.theme-compare__cols span {
  color: var(--flg-muted);
  background: var(--flg-soft);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-compare__cols span.is-current {
  color: var(--flg-on-action);
  background: var(--flg-action);
}

.theme-compare__item > p {
  color: var(--flg-ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.theme-compare__pair p {
  color: var(--flg-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.theme-compare__pair p.is-current {
  background: var(--flg-accent-soft);
  color: var(--flg-ink);
}

.theme-compare__who {
  display: none;
}

.theme-compare__item:last-child > p,
.theme-compare__item:last-child .theme-compare__pair p {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .theme-compare {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .theme-compare__cols {
    display: none;
  }

  .theme-compare__item,
  .theme-compare__pair {
    display: block;
  }

  .theme-compare__item {
    padding: 14px;
    background: var(--flg-paper);
    border: 1px solid var(--flg-line);
    border-radius: 16px;
  }

  .theme-compare__item > p,
  .theme-compare__pair p {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .theme-compare__item > p {
    margin-bottom: 12px;
    color: var(--flg-accent);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .theme-compare__pair {
    display: grid;
    gap: 8px;
  }

  .theme-compare__pair p {
    padding: 12px 14px;
    background: var(--flg-soft);
    border-radius: 12px;
    color: var(--flg-ink);
    font-weight: 650;
  }

  .theme-compare__pair p.is-current {
    background: var(--flg-accent-soft);
  }

  .theme-compare__who {
    display: block;
    margin-bottom: 3px;
    color: var(--flg-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .theme-compare__pair p.is-current .theme-compare__who {
    color: var(--flg-accent-deep);
  }
}

.store-actions {
  display: grid;
  gap: 12px;
  margin: 0 0 1.8em;
}

.store-actions a {
  display: flex;
  min-height: 72px;
  padding: 18px 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.store-actions svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.store-actions__store {
  color: var(--flg-on-action);
  background: var(--flg-action);
  box-shadow: 0 12px 28px rgba(8, 125, 126, 0.18);
}

.store-actions__store:hover,
.store-actions__store:focus-visible {
  color: var(--flg-on-action);
  background: var(--flg-action-hover);
}

.store-actions__file {
  color: #7a4b22;
  background: #fff6ea;
  border: 1px solid #e6d0aa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.store-actions__file:hover,
.store-actions__file:focus-visible {
  color: #5c3814;
  background: #fff1de;
}

:root[data-theme="dark"] .store-actions__file {
  color: var(--flg-warm);
  background: var(--flg-warm-soft);
  border-color: #6a5330;
  box-shadow: none;
}

:root[data-theme="dark"] .store-actions__file:hover,
:root[data-theme="dark"] .store-actions__file:focus-visible {
  color: #ffe3bc;
  background: #463524;
}

.store-actions a:focus-visible {
  outline: 3px solid var(--flg-focus);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .store-actions a {
    min-height: 64px;
    padding: 16px 14px;
    border-radius: 14px;
  }
}

.footer-lead {
  max-width: 36ch;
  margin: 12px 0 0;
  color: var(--flg-text);
  font-size: 1.02rem;
  line-height: 1.5;
}

.footer-panels,
.footer-panels--single {
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.75fr) minmax(140px, 0.75fr);
}

.footer-navigation-panel {
  grid-column: 1 / -1;
}

.footer-menu h2 {
  margin: 0 0 6px;
  color: var(--flg-muted);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--flg-ink);
  font-size: 0.98rem;
  font-weight: 720;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--flg-accent-deep);
}

.dock {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --flg-header: 62px;
  }

  .page-nav {
    display: none;
  }

  .dock {
    position: fixed;
    z-index: 900;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    background: color-mix(in srgb, var(--flg-paper) 92%, transparent);
    border: 1px solid var(--flg-line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(16, 36, 42, 0.16);
    backdrop-filter: blur(16px);
  }

  .dock a {
    display: grid;
    min-height: 46px;
    place-items: center;
    color: var(--flg-muted);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 760;
    text-decoration: none;
  }

  .dock a.is-active,
  .dock a:hover,
  .dock a:focus-visible {
    color: var(--flg-on-action);
    background: var(--flg-action);
  }

  .app-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .theme-toggle {
    position: fixed;
    z-index: 1100;
    top: auto;
    right: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 16px;
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--flg-paper);
    box-shadow: 0 8px 24px rgba(16, 36, 42, 0.28);
  }

  .admin-bar .theme-toggle {
    top: auto;
  }

  .back-to-top {
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .footer-panels,
  .footer-panels--single {
    grid-template-columns: 1fr;
  }

  .footer-identity {
    padding-bottom: 8px;
  }
}
