:root {
    --paper:#f9f8f5;
    --paper-strong:#ffffff;
    --ink:#0c0b09;
    --muted:#615f59;
    --gold:#a67818;
    --gold-dark:#7c570f;
    --line:#d7c7a3;
    --shadow:0 28px 70px rgba(13,11,7,0.18);
    --header-height:66px;
    --footer-height:64px
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Avenir,"Avenir Next","Segoe UI",Arial,sans-serif;
    font-size:15px;
    line-height:1.6
}

body::before {
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    content:"";
    background:linear-gradient( 90deg,rgba(166,120,24,0.06) 1px,transparent 1px ),linear-gradient( 180deg,rgba(166,120,24,0.05) 1px,transparent 1px );
    background-size:72px 72px;
    opacity:0.35
}

a {
    color:inherit;
    text-decoration:none
}

img {
    display:block;
    max-width:100%
}

button,input,select,textarea {
    font-family:inherit
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline:2px solid var(--gold);
    outline-offset:3px
}

.site-header {

  position: sticky;

  top: 0;

  z-index: 100;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  gap: 24px;

  align-items: center;

  min-height: var(--header-height);

  padding: 0 5vw;

  border-bottom: 1px solid rgba(166, 120, 24, 0.22);

  background: rgba(249, 248, 245, 0.94);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

}

.brand,.author-mark,.site-footer span {
    font-family:Georgia,"Times New Roman",serif;
    color:var(--gold)
}

.brand {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:42px;
    height:42px;
    border:1px solid var(--line);
    font-size:1.15rem;
    transition:color 160ms ease,border-color 160ms ease,background-color 160ms ease
}

.brand:hover {
    border-color:var(--gold);
    background:rgba(166,120,24,0.05);
    color:var(--gold-dark)
}

.nav {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    min-width:0;
    color:var(--muted);
    font-size:0.9rem
}

.nav a {
    position:relative;
    white-space:nowrap;
    transition:color 160ms ease
}

.nav a::after {
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:1px;
    content:"";
    background:var(--gold);
    transition:width 160ms ease
}

.nav a:hover {
    color:var(--gold-dark)
}

.nav a:hover::after {
    width:100%
}

.header-account {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:11px;
    min-width:0;
    margin-left:auto
}

.header-order-link,.header-login {
    flex-shrink:0;
    color:var(--muted);
    font-size:0.86rem;
    font-weight:600;
    white-space:nowrap;
    transition:color 160ms ease
}

.header-order-link:hover,.header-login:hover {
    color:var(--gold-dark)
}

.header-register {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    min-height:40px;
    padding:8px 14px;
    border:1px solid var(--line);
    color:var(--gold-dark);
    font-size:0.86rem;
    font-weight:700;
    white-space:nowrap;
    transition:color 160ms ease,border-color 160ms ease,background-color 160ms ease,transform 160ms ease
}

.header-register:hover {
    border-color:var(--gold);
    background:rgba(166,120,24,0.06);
    transform:translateY(-1px)
}

.header-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    min-width:118px;
    min-height:40px;
    padding:8px 16px;
    border:1px solid var(--gold);
    background:var(--gold);
    color:#fff;
    font-size:0.86rem;
    font-weight:700;
    text-align:center;
    white-space:nowrap;
    transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease,transform 160ms ease
}

.header-action:hover {
    border-color:var(--gold-dark);
    background:var(--gold-dark);
    color:#fff;
    transform:translateY(-1px)
}

.account-menu {
    position:relative;
    flex-shrink:0
}

.account-menu>summary {
    list-style:none
}

.account-menu>summary::-webkit-details-marker {
    display:none
}

.account-summary {
    display:flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    padding:4px 10px 4px 4px;
    border:1px solid var(--line);
    background:rgba(255,255,255,0.55);
    cursor:pointer;
    user-select:none;
    transition:border-color 160ms ease,background-color 160ms ease
}

.account-summary:hover {
    border-color:var(--gold);
    background:#fff
}

.account-avatar {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:32px;
    height:32px;
    border-radius:50%;
    background:var(--ink);
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:0.84rem;
    font-weight:700
}

.account-name {
    display:block;
    max-width:120px;
    overflow:hidden;
    color:var(--ink);
    font-size:0.86rem;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap
}

.account-arrow {
    display:inline-block;
    color:var(--muted);
    font-size:0.68rem;
    transition:transform 160ms ease
}

.account-menu[open] .account-arrow {
    transform:rotate(180deg)
}

.account-dropdown {
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    z-index:200;
    width:250px;
    padding:8px;
    border:1px solid var(--line);
    background:var(--paper-strong);
    box-shadow:0 18px 50px rgba(13,11,7,0.14)
}

.account-dropdown::before {
    position:absolute;
    top:-6px;
    right:20px;
    width:10px;
    height:10px;
    content:"";
    border-top:1px solid var(--line);
    border-left:1px solid var(--line);
    background:var(--paper-strong);
    transform:rotate(45deg)
}

.account-dropdown-user {
    display:flex;
    flex-direction:column;
    padding:10px 12px 12px
}

.account-dropdown-user strong {
    overflow:hidden;
    color:var(--ink);
    font-size:0.9rem;
    text-overflow:ellipsis;
    white-space:nowrap
}

.account-dropdown-user span {
    margin-top:2px;
    overflow:hidden;
    color:var(--muted);
    font-size:0.76rem;
    text-overflow:ellipsis;
    white-space:nowrap
}

.account-dropdown-divider {
    height:1px;
    margin:5px 8px;
    background:var(--line);
    opacity:0.65
}

.account-dropdown a {
    display:block;
    padding:9px 12px;
    color:var(--ink);
    font-size:0.85rem;
    font-weight:600;
    transition:color 160ms ease,background-color 160ms ease
}

.account-dropdown a:hover {
    background:rgba(166,120,24,0.07);
    color:var(--gold-dark)
}

.account-dropdown .logout-link {
    color:#8f2d2d
}

.account-dropdown .logout-link:hover {
    background:rgba(143,45,45,0.06);
    color:#701d1d
}

.section-shell {
    width:min(1040px,calc(100% - 40px));
    margin:0 auto
}

.hero {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,360px);
    gap:48px;
    align-items:center;
    min-height:calc(100svh - var(--header-height));
    padding:clamp(28px,7svh,56px) 0
}

.eyebrow,.section-kicker {
    margin:0 0 14px;
    color:var(--gold-dark);
    font-size:0.82rem;
    font-weight:700;
    letter-spacing:0.03em;
    text-transform:uppercase
}

h1,h2,h3,p {
    margin-top:0
}

h1,h2 {
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
    line-height:1.05;
    text-transform:uppercase
}

h1 {
    max-width:640px;
    margin-bottom:18px;
    font-size:4.15rem
}

h2 {
    margin-bottom:18px;
    font-size:2.45rem
}

h3 {
    margin-bottom:8px;
    font-size:1.05rem;
    text-transform:uppercase
}

.subtitle {
    max-width:600px;
    margin-bottom:18px;
    font-size:1.15rem;
    font-weight:700
}

.hero-text {
    max-width:600px;
    color:var(--muted);
    font-size:0.98rem
}

.rule {
    display:grid;
    grid-template-columns:minmax(48px,150px) 22px minmax(48px,150px);
    gap:16px;
    align-items:center;
    max-width:360px;
    margin:20px 0
}

.rule span {
    height:1px;
    background:var(--gold)
}

.rule i,.puzzle {
    position:relative;
    display:inline-block;
    background:var(--gold)
}

.rule i {
    width:22px;
    height:22px
}

.rule i::before,.rule i::after,.puzzle::before,.puzzle::after {
    position:absolute;
    content:"";
    border-radius:50%;
    background:var(--paper)
}

.rule i::before,.puzzle::before {
    top:-4px;
    left:7px;
    width:8px;
    height:8px
}

.rule i::after,.puzzle::after {
    top:7px;
    right:-4px;
    width:8px;
    height:8px
}

.hero-actions,.purchase-actions {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:26px
}

.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:10px 18px;
    border:1px solid var(--gold);
    font-weight:700;
    cursor:pointer;
    transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,transform 160ms ease
}

.button:hover {
    transform:translateY(-1px)
}

.button.primary {
    background:var(--gold);
    color:#fff
}

.button.primary:hover {
    border-color:var(--gold-dark);
    background:var(--gold-dark);
    color:#fff
}

.button.secondary {
    background:transparent;
    color:var(--gold-dark)
}

.button.secondary:hover {
    background:rgba(166,120,24,0.07);
    color:var(--gold-dark)
}

.hero-purchase-help {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    margin-top:16px;
    font-size:0.86rem
}

.hero-purchase-help span {
    color:var(--muted)
}

.hero-purchase-help a {
    color:var(--gold-dark);
    font-weight:700;
    text-decoration:underline;
    text-decoration-color:rgba(166,120,24,0.35);
    text-underline-offset:3px
}

.hero-purchase-help a:hover {
    text-decoration-color:var(--gold)
}

.book-visual {
    position:relative;
    margin:0
}

.book-visual::before {
    position:absolute;
    inset:9% -7% 7% 10%;
    z-index:-1;
    content:"";
    border:1px solid rgba(166,120,24,0.26);
    transform:rotate(2deg)
}

.book-visual img {
    width:min(100%,330px);
    margin:0 auto;
    box-shadow:var(--shadow)
}

.promise,.chapters,.author-resources,.contact {
    min-height:calc(100svh - var(--header-height));
    padding:clamp(44px,9svh,78px) 0
}

.promise,.chapters {
    display:flex;
    flex-direction:column;
    justify-content:center
}

.author-resources,.contact {
    align-content:center
}

.promise {
    border-top:1px solid var(--line)
}

.promise h2 {
    max-width:760px
}

.promise-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-top:36px
}

.promise-grid article,.chapter-item,.signup {
    border:1px solid var(--line);
    background:rgba(255,255,255,0.72)
}

.promise-grid article {
    min-height:205px;
    padding:22px
}

.puzzle {
    width:26px;
    height:26px;
    margin-bottom:24px
}

.puzzle::before,.puzzle::after {
    background:var(--paper-strong)
}

.promise-grid p,.chapter-item p,.author-resources p {
    color:var(--muted)
}

.resources-panel {
    min-width:0
}

.resources-panel p {
    max-width:680px
}

.author-resources a {
    color:var(--gold-dark);
    font-weight:700
}

.author-resources .button.primary {
    color:#fff
}

.resource-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:4px 0 18px;
    padding:9px 16px;
    border:1px solid var(--gold);
    color:var(--gold-dark);
    font-weight:700;
    transition:background-color 160ms ease,color 160ms ease,transform 160ms ease
}

.resource-link:hover {
    background:rgba(166,120,24,0.07);
    transform:translateY(-1px)
}

.resource-divider {
    width:100%;
    height:1px;
    margin:34px 0;
    background:var(--line)
}

.quote-band {
    padding:56px 20px;
    border-block:1px solid var(--line);
    background:var(--paper-strong);
    text-align:center
}

.quote-band blockquote {
    max-width:720px;
    margin:0 auto 18px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.6rem;
    font-style:italic;
    line-height:1.25
}

.quote-band span {
    font-family:Georgia,"Times New Roman",serif;
    color:var(--gold);
    font-size:1.55rem
}

.section-heading {
    display:grid;
    grid-template-columns:minmax(0,0.86fr) minmax(260px,0.6fr);
    gap:36px;
    align-items:end;
    margin-bottom:34px
}

.chapter-list {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px
}

.chapter-item {
    min-height:168px;
    padding:20px
}

.chapter-number {
    display:block;
    margin-bottom:12px;
    color:var(--gold-dark);
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.45rem
}

.author-resources,.contact {
    display:grid;
    grid-template-columns:minmax(260px,0.8fr) minmax(360px,1fr);
    gap:40px;
    align-items:center;
    border-top:1px solid var(--line)
}

.author-panel,.resources-panel {
    min-width:0
}

.author-mark {
    width:min(100%,320px);
    aspect-ratio:4 / 5;
    margin-bottom:24px;
    overflow:hidden;
    border:1px solid var(--line)
}

.author-mark img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top
}

.contact {
    grid-template-columns:minmax(0,0.75fr) minmax(360px,1fr)
}

.signup,.contact-form {
    padding:24px
}

.contact-form {
    border:1px solid var(--line);
    background:rgba(255,255,255,0.78)
}

.signup label {
    display:block;
    margin-bottom:14px;
    font-weight:700
}

.contact-form label {
    display:grid;
    gap:8px;
    margin-bottom:16px;
    font-weight:700
}

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

.field-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px
}

.signup input,
.signup button,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
    min-height:44px;
    border:1px solid var(--line);
    border-radius:0;
    font:inherit
}

.signup input,.contact-form input,.contact-form select,.contact-form textarea {
    width:100%;
    padding:0 14px;
    background:#fff;
    color:var(--ink);
    outline:none;
    transition:border-color 160ms ease,box-shadow 160ms ease
}

.signup input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(166,120,24,0.08)
}

.contact-form textarea {
    min-height:118px;
    padding:12px 14px;
    resize:vertical
}

.signup button,.contact-form button {
    padding:0 18px;
    border-color:var(--ink);
    background:var(--ink);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:background-color 160ms ease,border-color 160ms ease,transform 160ms ease
}

.signup button:hover,.contact-form button:hover {
    border-color:var(--gold-dark);
    background:var(--gold-dark);
    transform:translateY(-1px)
}

.contact-form button {
    width:100%
}

.contact-form label.consent {
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:start;
    gap:10px;
    color:var(--muted);
    font-weight:400
}

.consent input {
    width:18px;
    min-height:18px;
    margin-top:4px
}

.consent a {
    color:var(--gold-dark);
    font-weight:700
}

.site-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    height:var(--footer-height);
    min-height:var(--footer-height);
    max-height:var(--footer-height);
    padding:0 5vw;
    border-top:1px solid var(--line);
    background:var(--paper);
    color:var(--muted);
    overflow:hidden
}

.site-footer>div {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0
}

.site-footer span {
    flex-shrink:0;
    font-size:1rem
}

.site-footer p {
    margin:0;
    overflow:hidden;
    font-size:0.82rem;
    text-overflow:ellipsis;
    white-space:nowrap
}

.site-footer nav {
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:18px;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none
}

.site-footer nav::-webkit-scrollbar {
    display:none
}

.site-footer a {
    flex-shrink:0;
    color:var(--gold-dark);
    font-size:0.8rem;
    white-space:nowrap;
    transition:color 160ms ease
}

.site-footer a:hover {
    color:var(--gold)
}

.legal-page {
    padding:64px 0 80px
}

.legal-page h1 {
    max-width:760px;
    margin-bottom:18px;
    font-size:3.2rem
}

.legal-intro {
    max-width:760px;
    margin-bottom:34px;
    color:var(--muted)
}

.legal-block {
    max-width:860px;
    padding:28px 0;
    border-top:1px solid var(--line)
}

.legal-block h2 {
    margin-bottom:12px;
    font-size:1.55rem
}

.legal-block p,.legal-block li {
    color:var(--muted)
}

.legal-block a {
    color:var(--gold-dark);
    font-weight:700
}

.legal-block ul {
    margin:0 0 18px;
    padding-left:22px
}

.legal-block.notice {
    padding:22px;
    border:1px solid var(--line);
    background:rgba(255,255,255,0.7)
}

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

.form-status {
    min-height:1.35em;
    margin:12px 0 0;
    font-size:0.92rem;
    line-height:1.4
}

.form-status[data-state="success"] {
    color:#4f692e;
    font-weight:700
}

.form-status[data-state="error"] {
    color:#932f2f;
    font-weight:700
}

.signup button:disabled,.contact-form button:disabled {
    cursor:wait;
    opacity:0.65;
    transform:none
}

@media (max-width:1120px) {
    .site-header {
        grid-template-columns:auto 1fr;
        gap:18px
    }

    .nav {
        display:none
    }

    .header-account {
        justify-self:end
    }

}

@media (max-width:900px) {
    .hero,.section-heading,.author-resources,.contact {
        grid-template-columns:1fr
    }

    .hero {
        min-height:auto;
        padding-top:34px
    }

    .promise,.chapters,.author-resources,.contact {
        min-height:auto
    }

    h1 {
        font-size:3.1rem
    }

    h2 {
        font-size:2.05rem
    }

    .quote-band blockquote {
        font-size:1.55rem
    }

    .author-mark {
        width:min(100%,280px)
    }

    .book-visual {
        order:-1
    }

    .book-visual img {
        width:min(74vw,300px)
    }

    .promise-grid,.chapter-list {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

}

@media (max-width:760px) {
    .site-header {
        grid-template-columns:auto minmax(0,1fr);
        min-height:auto;
        padding:10px 20px
    }

    .header-account {
        gap:8px;
        flex-wrap:wrap;
        justify-content:flex-end
    }

    .header-order-link,.header-login {
        font-size:0.8rem
    }

    .header-register,.header-action {
        min-height:38px;
        padding:7px 11px;
        font-size:0.8rem
    }

    .header-action {
        min-width:auto
    }

    .account-name {
        max-width:90px
    }

}

@media (max-width:620px) {
    :root {
        --header-height:64px
    }

    .site-header {
        display:grid;
        grid-template-columns:auto 1fr;
        gap:10px;
        padding:10px 14px
    }

    .brand {
        width:40px;
        height:40px
    }

    .header-account {
        display:flex;
        justify-content:flex-end;
        gap:7px;
        min-width:0
    }

    .header-order-link,.header-login {
        font-size:0.76rem
    }

    .header-register {
        min-height:36px;
        padding:6px 9px;
        font-size:0.76rem
    }

    .header-action {
        min-height:36px;
        padding:6px 10px;
        font-size:0.76rem
    }

    .account-summary {
        min-height:38px;
        padding:3px 7px 3px 3px
    }

    .account-avatar {
        width:30px;
        height:30px
    }

    .account-name {
        display:none
    }

    .account-dropdown {
        position:fixed;
        top:66px;
        right:14px;
        width:min(250px,calc(100vw - 28px))
    }

    .account-dropdown::before {
        display:none
    }

    .section-shell {
        width:min(100% - 28px,1120px)
    }

    h1 {
        font-size:2.35rem
    }

    h2 {
        font-size:1.75rem
    }

    .promise,.chapters,.author-resources,.contact {
        padding:52px 0
    }

    .promise-grid,.chapter-list,.signup-row {
        grid-template-columns:1fr
    }

    .field-grid {
        grid-template-columns:1fr;
        gap:0
    }

    .promise-grid article,.chapter-item {
        min-height:auto
    }

    .hero-actions,.purchase-actions {
        gap:10px
    }

    .hero-actions .button,.purchase-actions .button {
        flex:1 1 auto
    }

    .hero-purchase-help {
        align-items:flex-start;
        flex-direction:column;
        gap:2px
    }

    .resource-divider {
        margin:28px 0
    }

    .site-footer {
        height:var(--footer-height);
        min-height:var(--footer-height);
        max-height:var(--footer-height);
        padding:0 14px;
        gap:12px
    }

    .site-footer>div p {
        display:none
    }

    .site-footer nav {
        gap:10px;
        margin-top:0
    }

    .site-footer a {
        font-size:0.72rem
    }

    .legal-page {
        padding:44px 0 58px
    }

    .legal-page h1 {
        font-size:2.55rem
    }

    .legal-block {
        padding:22px 0
    }

    .legal-block.notice {
        padding:18px
    }

}

@media (max-width:480px) {
    .site-header {
        grid-template-columns:auto 1fr
    }

    .header-account {
        grid-column:1 / -1;
        width:100%;
        justify-content:flex-start;
        padding-top:7px;
        border-top:1px solid rgba(166,120,24,0.14)
    }

    .header-order-link,.header-login {
        min-height:34px;
        display:inline-flex;
        align-items:center;
        padding:0 4px
    }

    .header-register,.header-action {
        flex:1 1 auto
    }

    .account-menu {
        margin-left:auto
    }

    .account-dropdown {
        top:108px
    }

    h1 {
        font-size:clamp(2rem,11vw,2.35rem)
    }

    h2 {
        font-size:1.6rem
    }

    .subtitle {
        font-size:1.05rem
    }

    .hero {
        gap:30px
    }

    .book-visual img {
        width:min(78vw,280px)
    }

    .button {
        width:100%
    }

    .quote-band {
        padding:44px 18px
    }

    .quote-band blockquote {
        font-size:1.35rem
    }

    .contact-form {
        padding:18px
    }

}

.order-lookup-page {
    min-height:calc(100svh - var(--header-height))
}

.order-lookup-shell {
    display:grid;
    grid-template-columns:minmax(0,0.9fr) minmax(360px,0.7fr);
    gap:clamp(48px,7vw,90px);
    align-items:center;
    min-height:calc(100svh - var(--header-height));
    padding-top:clamp(55px,9vh,90px);
    padding-bottom:clamp(55px,9vh,90px)
}

.order-lookup-copy h1 {
    max-width:620px;
    margin-bottom:22px;
    font-size:clamp(2.8rem,5vw,4.2rem)
}

.order-lookup-intro {
    max-width:600px;
    margin-bottom:28px;
    color:var(--muted);
    font-size:1.02rem
}

.order-example {
    display:flex;
    flex-direction:column;
    gap:4px;
    max-width:450px;
    margin-bottom:38px;
    padding:16px 18px;
    border-left:3px solid var(--gold);
    background:rgba(255,255,255,0.62)
}

.order-example-label {
    color:var(--muted);
    font-size:0.8rem
}

.order-example strong {
    color:var(--gold-dark);
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.12rem;
    letter-spacing:0.04em
}

.order-lookup-features {
    display:grid;
    gap:18px;
    max-width:570px
}

.order-feature {
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:15px;
    align-items:start
}

.order-feature-number {
    padding-top:2px;
    color:var(--gold);
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.1rem
}

.order-feature strong {
    display:block;
    margin-bottom:3px;
    color:var(--ink);
    font-size:0.94rem
}

.order-feature p {
    margin:0;
    color:var(--muted);
    font-size:0.88rem;
    line-height:1.5
}

.order-lookup-card {
    width:100%;
    padding:clamp(25px,4vw,36px);
    border:1px solid var(--line);
    background:rgba(255,255,255,0.82);
    box-shadow:0 24px 65px rgba(13,11,7,0.08)
}

.order-lookup-card-header {
    display:flex;
    gap:15px;
    align-items:center;
    margin-bottom:28px
}

.order-lookup-card-header .section-kicker {
    margin-bottom:4px
}

.order-lookup-card-header h2 {
    margin:0;
    font-size:1.65rem
}

.order-lookup-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:52px;
    height:52px;
    border:1px solid var(--line);
    color:var(--gold);
    font-family:Georgia,"Times New Roman",serif;
    font-size:0.92rem
}

.order-lookup-form {
    display:grid;
    gap:20px
}

.order-lookup-form label {
    display:grid;
    gap:8px;
    color:var(--ink);
    font-size:0.9rem;
    font-weight:700
}

.order-lookup-form input {
    width:100%;
    min-height:48px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:0;
    background:#fff;
    color:var(--ink);
    font:inherit;
    outline:none;
    transition:border-color 160ms ease,box-shadow 160ms ease
}

.order-lookup-form input::placeholder {
    color:#9a978f
}

.order-lookup-form input:focus {
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(166,120,24,0.08)
}

.order-lookup-form small {
    color:var(--muted);
    font-size:0.75rem;
    font-weight:400;
    line-height:1.45
}

.order-lookup-submit {
    width:100%;
    min-height:48px;
    margin-top:3px;
    padding:10px 18px;
    border:1px solid var(--gold);
    background:var(--gold);
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    transition:background-color 160ms ease,border-color 160ms ease,transform 160ms ease
}

.order-lookup-submit:hover {
    border-color:var(--gold-dark);
    background:var(--gold-dark);
    transform:translateY(-1px)
}

.order-alert {
    margin-bottom:22px;
    padding:12px 14px;
    border:1px solid var(--line);
    background:rgba(166,120,24,0.07);
    color:var(--gold-dark);
    font-size:0.86rem;
    font-weight:600
}

.order-alert-error {
    border-color:rgba(147,47,47,0.3);
    background:rgba(147,47,47,0.05);
    color:#842929
}

.order-account-divider {
    position:relative;
    display:flex;
    justify-content:center;
    margin:27px 0 22px
}

.order-account-divider::before {
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    height:1px;
    content:"";
    background:var(--line)
}

.order-account-divider span {
    position:relative;
    z-index:1;
    padding:0 12px;
    background:#fff;
    color:var(--muted);
    font-size:0.75rem
}

.order-account-section {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px
}

.order-account-section p {
    margin:0;
    color:var(--muted);
    font-size:0.86rem
}

.order-login-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:7px 14px;
    border:1px solid var(--line);
    color:var(--gold-dark);
    font-size:0.84rem;
    font-weight:700;
    transition:border-color 160ms ease,background-color 160ms ease
}

.order-login-button:hover {
    border-color:var(--gold);
    background:rgba(166,120,24,0.06)
}

.order-register-text {
    margin:18px 0 0;
    color:var(--muted);
    font-size:0.78rem;
    text-align:center
}

.order-register-text a {
    color:var(--gold-dark);
    font-weight:700
}

.order-account-help {
    margin-top:26px;
    padding-top:20px;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:0.82rem
}

.order-account-help a {
    display:inline-block;
    margin-left:4px;
    color:var(--gold-dark);
    font-weight:700
}

@media (max-width:900px) {
    .order-lookup-shell {
        grid-template-columns:1fr;
        gap:45px;
        min-height:auto
    }

    .order-lookup-copy h1 {
        max-width:680px
    }

    .order-lookup-card {
        max-width:620px
    }

}

@media (max-width:620px) {
    .order-lookup-shell {
        gap:35px;
        padding-top:42px;
        padding-bottom:55px
    }

    .order-lookup-copy h1 {
        font-size:2.45rem
    }

    .order-example {
        margin-bottom:30px
    }

    .order-lookup-card {
        padding:22px 18px
    }

    .order-account-section {
        align-items:stretch;
        flex-direction:column
    }

    .order-login-button {
        width:100%
    }

}

input[type="checkbox"] {
    appearance:none;
    -webkit-appearance:none;
    display:inline-block;
    flex-shrink:0;
    width:17px;
    height:17px;
    min-width:17px;
    min-height:17px;
    margin:0;
    border:1px solid var(--line);
    border-radius:2px;
    background-color:#fff;
    background-position:center;
    background-repeat:no-repeat;
    background-size:11px 11px;
    cursor:pointer;
    vertical-align:middle;
    transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 120ms ease
}

input[type="checkbox"]:hover {
    border-color:var(--gold)
}

input[type="checkbox"]:checked {
    border-color:var(--gold);
    background-color:var(--gold);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3 6.5 11.4 12.8 4.9' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}

input[type="checkbox"]:checked:hover {
    border-color:var(--gold-dark);
    background-color:var(--gold-dark)
}

input[type="checkbox"]:focus-visible {
    outline:none;
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(166,120,24,0.14)
}

input[type="checkbox"]:active {
    transform:scale(0.92)
}

input[type="checkbox"]:disabled {
    cursor:not-allowed;
    opacity:0.45
}

label:has(input[type="checkbox"]) {
    cursor:pointer
}

.consent,.register-consent,.login-remember {
    cursor:pointer
}

.consent input[type="checkbox"],
.register-consent input[type="checkbox"],
.login-remember input[type="checkbox"] {
    flex-shrink:0
}

/*
   =========================================================
    VALIDACIÓN GLOBAL DE FORMULARIOS
   \=========================================================
*/

/*
   ---------------------------------------------------------
    MENSAJE DE ERROR DE CAMPO
   \---------------------------------------------------------
*/

.form-field-error {
    
    display: block;
    
    margin: 4px 0 0;
    
    color: #842929;
    
    font-size: 0.68rem;
    
    font-weight: 600;
    
    line-height: 1.35;
}

.form-field-error:empty {
    
    display: none;
}

/*
   ---------------------------------------------------------
    TEXTO DE AYUDA
   \---------------------------------------------------------
*/

.form-field-help {
    
    display: block;
    
    margin: 4px 0 0;
    
    color: var(--muted);
    
    font-size: 0.7rem;
    
    font-weight: 400;
    
    line-height: 1.4;
}

/*
   =========================================================
    INPUT INVALIDO
   \=========================================================
*/

input.is-invalid, select.is-invalid, textarea.is-invalid {
    
    border-color: rgba(147, 47, 47, 0.72) !important;
    
    background-color: 
    rgba(147, 47, 47, 0.025) !important;
    
    box-shadow: 
    0 0 0 3px rgba(147, 47, 47, 0.05) !important;
}

input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus {
    
    border-color: #932f2f !important;
    
    box-shadow: 
    0 0 0 3px rgba(147, 47, 47, 0.1) !important;
}

/*
   =========================================================
    INPUT VALIDO
   \=========================================================
*/

input.is-valid, select.is-valid, textarea.is-valid {
    
    border-color: rgba(63, 105, 46, 0.65) !important;
    
    background-color: 
    rgba(63, 105, 46, 0.018) !important;
}

input.is-valid:focus, select.is-valid:focus, textarea.is-valid:focus {
    
    border-color: #526f39 !important;
    
    box-shadow: 
    0 0 0 3px rgba(63, 105, 46, 0.08) !important;
}

/*
   =========================================================
    CHECKBOX INVALIDO
   \=========================================================
*/

input[type="checkbox"].is-invalid {
    
    border-color: #932f2f !important;
    
    box-shadow: 
    0 0 0 3px rgba(147, 47, 47, 0.08) !important;
}

/*
   =========================================================
    CHECKBOX VALIDO
   \=========================================================
*/

input[type="checkbox"].is-valid {
    
    border-color: var(--gold) !important;
}

/*
   =========================================================
    RADIO INVALIDO
   \=========================================================
*/

input[type="radio"].is-invalid {
    
    border-color: #932f2f !important;
    
    box-shadow: 
    0 0 0 3px rgba(147, 47, 47, 0.08) !important;
}

/*
   =========================================================
    CONTENEDOR DE CAMPO
   \=========================================================
*/

.form-field {
    
    display: grid;
    
    gap: 5px;
}

/*
   =========================================================
    MENSAJES GENERALES DEL FORMULARIO
   \=========================================================
*/

.form-alert {
    
    padding: 10px 12px;
    
    border: 1px solid var(--line);
    
    font-size: 0.8rem;
    
    font-weight: 600;
    
    line-height: 1.4;
}

.form-alert-error {
    
    border-color: 
    rgba(147, 47, 47, 0.3);
    
    background: 
    rgba(147, 47, 47, 0.05);
    
    color: #842929;
}

.form-alert-success {
    
    border-color: 
    rgba(63, 105, 46, 0.3);
    
    background: 
    rgba(63, 105, 46, 0.06);
    
    color: #42682f;
}

.form-alert-warning {
    
    border-color: 
    rgba(166, 120, 24, 0.35);
    
    background: 
    rgba(166, 120, 24, 0.06);
    
    color: var(--gold-dark);
}

/*
   =========================================================
    BOTÓN ENVIANDO
   \=========================================================
*/

button.is-loading, input[type="submit"].is-loading {
    
    cursor: wait !important;
    
    opacity: 0.65;
    
    pointer-events: none;
    
    transform: none !important;
}

/*
   =========================================================
    LOADING GLOBAL
   \=========================================================
*/

.global-loading {
    
    position: fixed;
    
    inset: 0;
    
    z-index: 99999;
    
    display: flex;
    
    align-items: center;
    
    justify-content: center;
    
    padding: 20px;
    
    visibility: hidden;
    
    opacity: 0;
    
    pointer-events: none;
    
    transition: 
    opacity 180ms ease, 
    visibility 180ms ease;
}

/*
   =========================================================
    ACTIVO
   \=========================================================
*/

.global-loading.is-active {
    
    visibility: visible;
    
    opacity: 1;
    
    pointer-events: all;
}

/*
   =========================================================
    FONDO
   \=========================================================
*/

.global-loading-backdrop {
    
    position: absolute;
    
    inset: 0;
    
    background: 
    rgba(12, 11, 9, 0.32);
    
    backdrop-filter: blur(3px);
    
    -webkit-backdrop-filter: blur(3px);
}

/*
   =========================================================
    CARD
   \=========================================================
*/

.global-loading-card {
    
    position: relative;
    
    z-index: 1;
    
    display: flex;
    
    flex-direction: column;
    
    align-items: center;
    
    justify-content: center;
    
    gap: 16px;
    
    min-width: 190px;
    
    padding: 28px 34px;
    
    border: 1px solid var(--line);
    
    background: 
    rgba(249, 248, 245, 0.98);
    
    box-shadow: 
    0 24px 70px 
    rgba(13, 11, 7, 0.18);
}

/*
   =========================================================
    SPINNER
   \=========================================================
*/

.global-loading-spinner {
    
    width: 36px;
    
    height: 36px;
    
    border: 2px solid 
    rgba(166, 120, 24, 0.18);
    
    border-top-color: 
    var(--gold);
    
    border-radius: 50%;
    
    animation: 
    global-loading-spin 
    700ms 
    linear 
    infinite;
}

@keyframes global-loading-spin {
    
    to {
        
        transform: rotate(360deg);
        
    }

}

/*
   =========================================================
    MENSAJE
   \=========================================================
*/

.global-loading-card p {
    
    margin: 0;
    
    color: var(--ink);
    
    font-family: 
    Georgia, 
    "Times New Roman", 
    serif;
    
    font-size: 0.95rem;
    
    text-align: center;
}

/*
   =========================================================
    BLOQUEAR SCROLL
   \=========================================================
*/

body.global-loading-open {
    
    overflow: hidden;
}

/*
   =========================================================
    MÓVIL
   \=========================================================
*/

@media (max-width: 620px) {
    
    .global-loading-card {
        
        min-width: 170px;
        
        padding: 24px 28px;
        
    }

    
    .global-loading-spinner {
        
        width: 32px;
        
        height: 32px;
        
    }

    
    .global-loading-card p {
        
        font-size: 0.9rem;
        
    }

}

/*
   =========================================================
    TOAST GLOBAL
   \=========================================================
*/

.toast-container {
    
    position: fixed;
    
    top: calc(var(--header-height) + 16px);
    
    right: 18px;
    
    z-index: 100000;
    
    display: flex;
    
    flex-direction: column;
    
    align-items: flex-end;
    
    gap: 10px;
    
    width: min(  380px,  calc(100vw - 36px)  );
    
    pointer-events: none;
}

/*
   =========================================================
    TOAST
   \=========================================================
*/

.app-toast {
    
    position: relative;
    
    display: grid;
    
    grid-template-columns: 
    38px 
    minmax(0, 1fr) 
    auto;
    
    gap: 12px;
    
    align-items: start;
    
    width: 100%;
    
    min-height: 66px;
    
    overflow: hidden;
    
    padding: 14px 14px 14px 12px;
    
    border: 1px solid var(--line);
    
    background: 
    rgba(249, 248, 245, 0.98);
    
    box-shadow: 
    0 18px 50px 
    rgba(13, 11, 7, 0.16);
    
    opacity: 0;
    
    pointer-events: auto;
    
    transform: 
    translateX(28px);
    
    transition: 
    opacity 200ms ease, 
    transform 200ms ease;
}

/*
   =========================================================
    VISIBLE
   \=========================================================
*/

.app-toast.toast-visible {
    
    opacity: 1;
    
    transform: 
    translateX(0);
}

/*
   =========================================================
    SALIDA
   \=========================================================
*/

.app-toast.toast-removing {
    
    opacity: 0;
    
    transform: 
    translateX(28px);
    
    pointer-events: none;
}

/*
   =========================================================
    ICONO
   \=========================================================
*/

.app-toast-icon {
    
    display: inline-flex;
    
    align-items: center;
    
    justify-content: center;
    
    width: 34px;
    
    height: 34px;
    
    border: 1px solid currentColor;
    
    border-radius: 50%;
    
    font-family: 
    Georgia, 
    "Times New Roman", 
    serif;
    
    font-size: 1rem;
    
    font-weight: 700;
    
    line-height: 1;
}

/*
   =========================================================
    CONTENIDO
   \=========================================================
*/

.app-toast-content {
    
    min-width: 0;
    
    padding-top: 1px;
}

.app-toast-title {
    
    display: block;
    
    margin-bottom: 2px;
    
    color: var(--ink);
    
    font-size: 0.82rem;
    
    line-height: 1.3;
}

.app-toast-message {
    
    margin: 0;
    
    color: var(--muted);
    
    font-size: 0.76rem;
    
    line-height: 1.45;
    
    overflow-wrap: anywhere;
}

/*
   =========================================================
    CERRAR
   \=========================================================
*/

.app-toast-close {
    
    display: inline-flex;
    
    align-items: center;
    
    justify-content: center;
    
    width: 26px;
    
    height: 26px;
    
    margin: -4px -4px 0 0;
    
    padding: 0;
    
    border: 0;
    
    background: transparent;
    
    color: var(--muted);
    
    font-family: Arial, sans-serif;
    
    font-size: 1.25rem;
    
    line-height: 1;
    
    cursor: pointer;
    
    opacity: 0.72;
    
    transition: 
    color 160ms ease, 
    opacity 160ms ease, 
    background-color 160ms ease;
}

.app-toast-close:hover {
    
    background: 
    rgba(13, 11, 7, 0.04);
    
    color: var(--ink);
    
    opacity: 1;
}

/*
   =========================================================
    PROGRESO
   \=========================================================
*/

.app-toast-progress {
    
    position: absolute;
    
    right: 0;
    
    bottom: 0;
    
    left: 0;
    
    height: 2px;
    
    background: 
    currentColor;
    
    opacity: 0.45;
    
    transform-origin: left center;
    
    animation-name: 
    toast-progress;
    
    animation-timing-function: 
    linear;
    
    animation-fill-mode: 
    forwards;
}

@keyframes toast-progress {
    
    from {
        
        transform: 
        scaleX(1);
        
    }

    
    to {
        
        transform: 
        scaleX(0);
        
    }

}

/*
   =========================================================
    SUCCESS
   \=========================================================
*/

.app-toast-success {
    
    border-left: 
    3px solid #56763c;
    
    color: #56763c;
}

.app-toast-success .app-toast-icon {
    
    background: 
    rgba(86, 118, 60, 0.07);
}

/*
   =========================================================
    ERROR
   \=========================================================
*/

.app-toast-error {
    
    border-left: 
    3px solid #932f2f;
    
    color: #932f2f;
}

.app-toast-error .app-toast-icon {
    
    background: 
    rgba(147, 47, 47, 0.06);
}

/*
   =========================================================
    WARNING
   \=========================================================
*/

.app-toast-warning {
    
    border-left: 
    3px solid var(--gold);
    
    color: var(--gold-dark);
}

.app-toast-warning .app-toast-icon {
    
    background: 
    rgba(166, 120, 24, 0.07);
}

/*
   =========================================================
    INFO
   \=========================================================
*/

.app-toast-info {
    
    border-left: 
    3px solid #526d7a;
    
    color: #526d7a;
}

.app-toast-info .app-toast-icon {
    
    background: 
    rgba(82, 109, 122, 0.07);
}

/*
   =========================================================
    MÓVIL
   \=========================================================
*/

@media (max-width: 620px) {
    
    .toast-container {
        
        top: 
        calc(  var(--header-height)  + 10px  );
        
        right: 12px;
        
        left: 12px;
        
        width: auto;
        
        align-items: stretch;
        
    }

    
    .app-toast {
        
        grid-template-columns: 
        34px 
        minmax(0, 1fr) 
        auto;
        
        gap: 10px;
        
        padding: 
        12px 
        12px 
        12px 
        10px;
        
    }

    
    .app-toast-icon {
        
        width: 30px;
        
        height: 30px;
        
        font-size: 0.9rem;
        
    }

}

.account-admin-label {
    display: block;
    margin-top: 4px;
    color: var(--gold-dark);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
