#tiriMobileNavigation {
    --drawer-paper: #fbfaf8;
    --drawer-ink: #17141f;
    --drawer-muted: #625d69;
    --drawer-line: #e6e3de;
    --drawer-accent: var(--frontend-theme, #6c1f93);
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    background: transparent;
    color: var(--drawer-ink);
    overflow: hidden;
    z-index: 1070;
    font-family: "Archivo", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    text-align: left;
    transition: background-color .24s ease;
}
#tiriMobileNavigation:not([open]) { display: none; }
#tiriMobileNavigation::backdrop { background: transparent; }
#tiriMobileNavigation.is-open { background-color: rgba(0, 0, 0, .4); }
#tiriMobileNavigation *, #tiriMobileNavigation *::before, #tiriMobileNavigation *::after { box-sizing: border-box; }
#tiriMobileNavigation .drawer-panel {
    display: flex;
    flex-direction: column;
    width: min(480px, 100%);
    height: 100%;
    height: 100dvh;
    margin-left: auto;
    background: var(--drawer-paper);
    box-shadow: -16px 0 48px rgba(23, 20, 31, .16);
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.25, 1, .33, 1);
}
#tiriMobileNavigation.is-open .drawer-panel { transform: translateX(0); }
#tiriMobileNavigation .drawer-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: calc(20px + env(safe-area-inset-top)) 24px 16px;
    border-bottom: 1px solid var(--drawer-line);
}
#tiriMobileNavigation .drawer-brand img { display: block; width: auto; max-width: 108px; height: 44px; object-fit: contain; }
#tiriMobileNavigation .drawer-header-actions { display: flex; gap: 8px; }
#tiriMobileNavigation .drawer-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--drawer-ink);
    cursor: pointer;
}
#tiriMobileNavigation .drawer-icon-button:hover { background: rgba(23, 20, 31, .06); }
#tiriMobileNavigation .drawer-scroll-area { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 8px 24px calc(24px + env(safe-area-inset-bottom)); }
#tiriMobileNavigation .drawer-links { list-style: none; margin: 0; padding: 0; }
#tiriMobileNavigation .drawer-links > li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--drawer-line); }
#tiriMobileNavigation .drawer-links > li:last-child { border-bottom: 0; }
#tiriMobileNavigation .d-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--drawer-ink);
    font: inherit;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
#tiriMobileNavigation .d-main .arrow { font-size: 24px; font-weight: 400; transition: transform .18s ease; }
#tiriMobileNavigation .d-main:hover .arrow { transform: translateX(4px); }
#tiriMobileNavigation button.d-main .arrow { font-size: 21px; }
#tiriMobileNavigation button.d-main[aria-expanded="false"] .arrow { transform: rotate(-90deg); }
#tiriMobileNavigation .subs { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
#tiriMobileNavigation .subs[hidden] { display: none; }
#tiriMobileNavigation .subs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 0;
    color: var(--drawer-muted);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-decoration: none;
}
#tiriMobileNavigation .is-current-section > .d-main,
#tiriMobileNavigation .subs a:hover,
#tiriMobileNavigation a[aria-current="page"] { color: var(--drawer-accent); }
#tiriMobileNavigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
#tiriMobileNavigation .drawer-utilities { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--drawer-line); }
#tiriMobileNavigation .drawer-utility-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#tiriMobileNavigation .drawer-account, #tiriMobileNavigation .drawer-languages, #tiriMobileNavigation .drawer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#tiriMobileNavigation .drawer-account { flex: 0 0 auto; margin-left: auto; }
#tiriMobileNavigation .drawer-utilities [hidden] { display: none; }
#tiriMobileNavigation .drawer-account button, #tiriMobileNavigation .drawer-languages button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--drawer-line); border-radius: 2px; background: transparent; color: var(--drawer-muted); font: inherit; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: pointer; }
#tiriMobileNavigation .drawer-account button { display: inline-flex; align-items: center; white-space: nowrap; }
#tiriMobileNavigation .drawer-languages button[aria-pressed="true"] { border-color: var(--drawer-accent); color: var(--drawer-accent); }
#tiriMobileNavigation .drawer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; background: transparent; color: var(--drawer-ink) !important; font-size: 18px; text-decoration: none; }
#tiriMobileNavigation a:focus-visible, #tiriMobileNavigation button:focus-visible { outline: 2px solid var(--drawer-accent); outline-offset: 3px; }
#tiriMobileNavigation button, #tiriMobileNavigation a { touch-action: manipulation; }
html.tiri-mobile-nav-is-open, body.tiri-mobile-nav-is-open { overflow: hidden; }
@media (min-width: 992px) { #tiriMobileNavigation { display: none; } }
@media (prefers-reduced-motion: reduce) { #tiriMobileNavigation, #tiriMobileNavigation * { transition: none !important; } }
