/* Páginas interiores de Tatamias. Colores y tipografías del diseño original. */
.tm-page {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow-x: clip;
    background: var(--bg);
    color: var(--paper);
}

.tm-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -360px;
    right: -100px;
    width: min(1000px, 100vw);
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 0 0 80px color-mix(in srgb, var(--paper) 1%, transparent);
    pointer-events: none;
}

.tm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 3.3vw;
    padding-right: calc(3.3vw + 168px);
}

.tm-page-brand { flex-shrink: 0; }
.tm-header-caption {
    margin: 0;
    color: var(--muted);
    font: 9px 'IBM Plex Mono', monospace;
    letter-spacing: 1.6px;
}

.tm-shell {
    width: min(1440px, calc(100% - 6.6vw));
    margin: 0 auto;
    padding: 46px 0 88px;
}

.tm-page-heading { margin-bottom: 36px; }
.tm-kicker {
    margin: 0 0 22px;
    color: var(--orange);
    font: 10px 'IBM Plex Mono', monospace;
    letter-spacing: 1.6px;
    line-height: 1.8;
}

.tm-title {
    margin: 0 0 30px;
    font: 700 clamp(64px, 11vw, 164px)/.88 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.tm-title > span { color: var(--orange); }
.tm-page h1:focus { outline: none; }
.tm-intro {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}
.tm-heading-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}
.tm-collection-note {
    color: var(--muted);
    font: 9px/1.8 'IBM Plex Mono', monospace;
    letter-spacing: 1.3px;
    text-align: right;
}
.tm-demo-note {
    margin: 18px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.tm-end-note { margin-top: 36px; }

.tm-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(170px, .6fr) minmax(185px, .6fr) auto;
    align-items: end;
    gap: 18px;
    margin: 24px 0 18px;
    padding: 24px 0;
    border-block: 1px solid var(--line);
}
.tm-judoka-filters { grid-template-columns: minmax(240px, 1fr) minmax(220px, .5fr) auto; }
.tm-search, .tm-select { min-width: 0; }
.tm-search label, .tm-select label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font: 9px/1.5 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.tm-search input, .tm-select select, .tm-field input, .tm-field select, .tm-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--paper);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}
.tm-page input::placeholder, .tm-page textarea::placeholder { color: var(--muted); opacity: .8; }
.tm-search-input { display: flex; align-items: center; gap: 10px; position: relative; }
.tm-search-input > svg { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.tm-search-input > input { padding-left: 43px; }
.tm-page select { cursor: pointer; }
.tm-page input:focus-visible, .tm-page select:focus-visible, .tm-page textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}
.tm-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 0 0 28px;
    color: var(--muted);
    font: 9px/1.8 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
}
.tm-results-bar > p { margin: 0; }
.tm-results-bar .tm-demo-note { max-width: 650px; font-family: 'DM Sans', Arial, sans-serif; letter-spacing: 0; text-align: right; }

.tm-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: 500 12px/1.4 'DM Sans', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s, background-color .18s, transform .18s;
}
.tm-button-primary { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.tm-button-secondary { background: transparent; color: var(--paper); border-color: var(--line); }
.tm-button:hover { border-color: var(--orange); }
.tm-button-primary:hover { background: var(--orange); color: var(--bg); }
.tm-button-secondary:hover { background: color-mix(in srgb, var(--orange) 5%, transparent); }
.tm-button > span { font-size: 14px; }
.tm-button:disabled { opacity: .4; cursor: default; }
.tm-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tm-button-secondary > span { color: var(--orange); }
.tm-filter-clear, .tm-filter-reset { white-space: nowrap; }

.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tm-judoka-card, .tm-technique-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}
.tm-judoka-card { display: block; transition: transform .22s, border-color .22s; }
.tm-judoka-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.tm-portrait { position: relative; aspect-ratio: 8 / 9; overflow: hidden; background: color-mix(in srgb, var(--muted) 15%, var(--bg)); }
.tm-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-portrait-tag, .tm-media-label, .tm-media-demo-badge {
    position: absolute;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--paper);
    font: 8px/1.5 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.tm-portrait-tag { left: 18px; bottom: 18px; }
.tm-card-body { padding: 24px; }
.tm-card-kicker { margin: 0 0 12px; color: var(--orange); font: 9px/1.7 'IBM Plex Mono', monospace; letter-spacing: 1.2px; }
.tm-card-title { margin: 0 0 12px; font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.8px; }
.tm-card-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tm-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.tm-card-link > span { color: var(--orange); font-size: 21px; }
.tm-community-note { padding: 56px 0 10px; margin-top: 58px; border-top: 1px solid var(--line); }
.tm-community-note h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -1.3px; }
.tm-community-note > p:not(.tm-kicker) { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.tm-technique-card { display: flex; flex-direction: column; }
.tm-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tm-card-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-media-number { position: absolute; left: 18px; top: 16px; color: #646e6c; font: 10px 'IBM Plex Mono', monospace; letter-spacing: 2px; }
.tm-media-demo-badge { right: 14px; bottom: 14px; }
.tm-technique-card .tm-card-body { display: flex; flex: 1; flex-direction: column; }
.tm-technique-card .tm-card-description { min-height: 47px; }
.tm-technique-belt-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; margin-top: auto; }
.tm-belt { display: block; width: 94px; height: auto; flex-shrink: 0; overflow: visible; }
.tm-belt-band, .tm-belt-tail, .tm-belt-knot { stroke: none; }
.tm-belt-seam { stroke: var(--paper); opacity: .3; }
.tm-belt-white { color: #f7f5ed; }
.tm-belt-white .tm-belt-band, .tm-belt-white .tm-belt-tail { stroke: #b7b7af; stroke-width: .5; }
.tm-belt-yellow { color: #e4bd39; }
.tm-belt-orange { color: #d36728; }
.tm-belt-green { color: #477258; }
.tm-belt-blue { color: #436a95; }
.tm-belt-brown { color: #836247; }
.tm-belt-black { color: #242a2b; }
.tm-belt-caption { display: block; margin-bottom: 5px; color: var(--muted); font: 8px 'IBM Plex Mono', monospace; letter-spacing: 1px; }
.tm-belt-name { font-size: 13px; font-weight: 500; }
.tm-technique-button { width: 100%; justify-content: space-between; }
.tm-technique-preview { margin-bottom: 32px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.tm-technique-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.tm-technique-preview-heading .tm-kicker { margin-bottom: 10px; }
.tm-technique-preview h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.8px; }
.tm-technique-preview-image { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; background: #e3e3d9; border-radius: 8px; }
.tm-technique-preview > p { margin: 20px 0 0; max-width: 720px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tm-empty { padding: 60px 24px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.tm-empty h1, .tm-empty h2 { margin: 0 0 18px; font-size: 28px; font-weight: 500; }
.tm-empty > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

.tm-back-link { display: inline-flex; gap: 16px; align-items: center; margin-bottom: 32px; color: var(--muted); font: 10px 'IBM Plex Mono', monospace; }
.tm-back-link > span { color: var(--orange); font-size: 20px; }
.tm-profile-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.tm-profile-portrait { border-radius: 14px; }
.tm-profile-title { margin: 0 0 24px; font: 700 clamp(55px, 7vw, 108px)/.95 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif; letter-spacing: -.03em; }
.tm-profile-grade { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; font-size: 12px; color: var(--muted); }
.tm-profile-summary { margin: 0 0 20px; font-size: 21px; line-height: 1.5; letter-spacing: -.4px; }
.tm-profile-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.tm-profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.tm-profile-facts > div:last-child { grid-column: 1 / -1; }
.tm-profile-facts dt { color: var(--muted); font: 8px 'IBM Plex Mono', monospace; letter-spacing: 1px; margin-bottom: 9px; }
.tm-profile-facts dd { margin: 0; font-size: 14px; line-height: 1.5; }
.tm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 68px 0 32px; padding-top: 44px; border-top: 1px solid var(--line); }
.tm-section-heading .tm-kicker { margin-bottom: 16px; }
.tm-section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -1.4px; }
.tm-section-heading > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tm-memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tm-memory-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tm-memory-media { position: relative; aspect-ratio: 25 / 16; }
.tm-memory-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-media-label { right: 16px; bottom: 16px; }
.tm-video-placeholder { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--paper); cursor: pointer; white-space: nowrap; font: 9px 'IBM Plex Mono', monospace; }
.tm-video-placeholder > span { color: var(--orange); font-size: 14px; }
.tm-memory-copy { padding: 28px; }
.tm-memory-copy h3 { margin: 0 0 16px; font-size: 26px; font-weight: 500; letter-spacing: -.6px; }
.tm-memory-copy > p:not(.tm-card-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.tm-inline-notice { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: 24px; background: color-mix(in srgb, var(--orange) 5%, var(--bg)); border: 1px solid var(--line); border-radius: 12px; }
.tm-inline-notice > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tm-inline-notice .tm-button { flex-shrink: 0; }
.tm-inline-notice:focus { outline: 2px solid var(--orange); outline-offset: 4px; }

.tm-form-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 7vw, 104px); align-items: start; margin-top: 48px; }
.tm-form-aside { padding-top: 26px; }
.tm-aside-label { margin: 0 0 20px; color: var(--orange); font: 9px 'IBM Plex Mono', monospace; letter-spacing: 1.4px; }
.tm-aside-title { margin: 0 0 22px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -1.4px; font-weight: 500; }
.tm-aside-copy { margin: 0; max-width: 450px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.tm-aside-steps { display: grid; gap: 28px; margin-top: 42px; }
.tm-aside-step { display: flex; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.tm-step-number { flex-shrink: 0; width: 32px; color: var(--orange); font: 10px/1.8 'IBM Plex Mono', monospace; }
.tm-aside-step h3 { margin: 0 0 8px; font-weight: 500; font-size: 17px; letter-spacing: -.3px; }
.tm-aside-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tm-form-card { min-width: 0; padding: clamp(26px, 3vw, 44px); border: 1px solid color-mix(in srgb, var(--paper) 15%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--paper) 2%, var(--bg)); }
.tm-form-card h2 { margin: 0 0 18px; font-size: 29px; font-weight: 500; letter-spacing: -.9px; }
.tm-form-card .tm-kicker { margin-bottom: 18px; }
.tm-form-card > .tm-demo-note { margin: 0 0 26px; }
.tm-form-grid { display: grid; gap: 22px; }
.tm-field label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; }
.tm-required { color: var(--orange); }
.tm-field textarea { min-height: 145px; resize: vertical; }
.tm-field-help { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 8px 0 0; }
.tm-page .validation-message { margin-top: 8px; color: var(--orange); font-size: 11px; line-height: 1.7; }
.tm-page .invalid { outline: 1px solid var(--orange); outline-offset: 2px; }
.tm-page .valid.modified:not([type=checkbox]) { outline-color: var(--orange); }
.tm-form-disclaimer { margin: -9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.tm-form-status { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--paper); background: color-mix(in srgb, var(--orange) 7%, var(--bg)); font-size: 12px; line-height: 1.8; }
.tm-password-row { position: relative; }
.tm-password-row > input { padding-right: 52px; }
.tm-password-toggle { position: absolute; right: 8px; top: 5px; display: grid; place-items: center; height: 38px; width: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.tm-password-toggle svg { width: 20px; height: 20px; }
.tm-form-card-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.tm-form-card-footer > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tm-text-link { display: inline-flex; gap: 24px; font-size: 12px; }
.tm-text-link > span { color: var(--orange); }
.tm-login-visual { margin-top: 30px; max-width: 440px; text-align: center; color: var(--orange); }
.tm-login-visual svg { display: block; width: 100%; height: auto; }
.tm-login-ring { stroke: var(--line); }
.tm-login-wordmark { margin: 0; color: var(--muted); font: 9px/1.8 'IBM Plex Mono', monospace; letter-spacing: 1.4px; }

@media (min-width: 2000px) {
    .tm-page-header { padding-top: 42px; }
}
@media (max-width: 1100px) {
    .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-filter-bar .tm-search { grid-column: 1 / -1; }
    .tm-filter-clear { grid-column: 1 / -1; justify-self: start; }
    .tm-profile-hero { gap: 36px; }
    .tm-form-layout { gap: 36px; }
}
@media (max-width: 1000px) {
    .tm-header-caption { display: none; }
    .tm-collection-note { display: none; }
    .tm-results-bar > span:last-child { display: none; }
}
@media (max-width: 800px) {
    .tm-shell { width: 86%; padding-top: 36px; }
    .tm-form-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .tm-form-layout .tm-form-card { grid-row: 1; }
    .tm-form-layout .tm-form-aside { grid-row: 2; }
    .tm-form-aside { padding-top: 0; }
    .tm-aside-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
    .tm-aside-step { flex-direction: column; gap: 10px; }
    .tm-profile-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
    .tm-profile-title { font-size: 64px; }
    .tm-profile-summary { font-size: 18px; }
    .tm-profile-facts { gap: 18px; }
    .tm-login-visual { max-width: 280px; margin-top: 20px; }
    .tm-login-layout { gap: 32px; }
}
@media (max-width: 600px) {
    .tm-page-header { padding: 24px 6%; padding-right: calc(6% + 104px); }
    .tm-page-brand { font-size: 17px; gap: 10px; }
    .tm-shell { width: 86%; padding-top: 34px; padding-bottom: 58px; }
    .tm-page-heading { margin-bottom: 28px; }
    .tm-kicker { font-size: 8px; margin-bottom: 20px; }
    .tm-title { font-size: clamp(58px, 16vw, 92px); margin-bottom: 24px; }
    .tm-intro { font-size: 13px; line-height: 1.8; }
    .tm-demo-note { font-size: 10px; }
    .tm-grid, .tm-memory-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .tm-filter-bar { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; padding: 20px 0; }
    .tm-filter-bar > *, .tm-filter-bar .tm-search, .tm-filter-clear { grid-column: auto; }
    .tm-filter-clear, .tm-filter-reset { justify-self: start; }
    .tm-results-bar { align-items: start; flex-direction: column; gap: 12px; }
    .tm-results-bar .tm-demo-note { text-align: left; }
    .tm-card-body { padding: 22px; }
    .tm-card-title { font-size: 25px; }
    .tm-portrait { aspect-ratio: 8 / 9; }
    .tm-community-note { margin-top: 40px; padding-top: 36px; }
    .tm-community-note h2 { font-size: 30px; }
    .tm-technique-preview { padding: 20px; }
    .tm-technique-preview-heading { flex-direction: column; align-items: start; gap: 20px; }
    .tm-technique-preview h2 { font-size: 27px; }
    .tm-profile-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .tm-profile-title { font-size: 72px; }
    .tm-profile-grade { margin-bottom: 20px; }
    .tm-profile-summary { font-size: 20px; }
    .tm-profile-facts { grid-template-columns: 1fr 1fr; }
    .tm-section-heading { flex-direction: column; align-items: start; margin-top: 48px; padding-top: 36px; gap: 18px; }
    .tm-section-heading h2 { font-size: 32px; }
    .tm-memory-copy { padding: 24px; }
    .tm-inline-notice { flex-direction: column; align-items: start; }
    .tm-aside-title { font-size: 32px; }
    .tm-aside-copy { font-size: 13px; }
    .tm-aside-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .tm-aside-step { flex-direction: row; gap: 14px; }
    .tm-form-layout { margin-top: 34px; }
    .tm-form-card { padding: 24px; }
    .tm-form-card h2 { font-size: 26px; }
    .tm-login-visual { max-width: 230px; }
}
@media (max-width: 400px) {
    .tm-page-header { padding-right: calc(6% + 64px); }
}
@media (prefers-reduced-motion: reduce) {
    .tm-judoka-card, .tm-button { transition: none; }
}

/* Compact spacing for the techniques catalog. */
.tm-techniques-page .tm-shell { padding-top: 30px; }
.tm-techniques-page .tm-page-heading { margin-bottom: 24px; }
.tm-techniques-page .tm-page-heading .tm-kicker { margin-bottom: 14px; }
.tm-techniques-page .tm-title { margin-bottom: 20px; }
.tm-techniques-page .tm-results-bar { margin-bottom: 18px; }
.tm-techniques-page .tm-technique-grid { gap: 22px; }
.tm-techniques-page .tm-card-media { aspect-ratio: 16 / 9; }
.tm-techniques-page .tm-card-body { padding: 18px; }
.tm-techniques-page .tm-card-kicker { margin-bottom: 8px; }
.tm-techniques-page .tm-card-title { margin-bottom: 8px; }
.tm-techniques-page .tm-card-description { line-height: 1.6; min-height: 0; }
.tm-techniques-page .tm-technique-belt-row { justify-content: space-between; gap: 16px; padding: 14px 0 0; margin-top: auto; }
.tm-techniques-page .tm-technique-button { flex: 0 0 auto; width: auto; min-width: 64px; justify-content: center; gap: 10px; padding: 8px 0 8px 8px; min-height: 36px; border: 0; border-radius: 0; background: transparent; white-space: nowrap; }
.tm-techniques-page .tm-technique-button:hover { background: transparent; color: var(--orange); }
.tm-technique-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--orange); cursor: pointer; box-shadow: 0 3px 14px #00000018; }
.tm-technique-play svg { width: 18px; height: 18px; }
.tm-technique-play:hover { border-color: var(--orange); }
.tm-technique-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.tm-techniques-page .tm-belt { width: 88px; }
.tm-pagination { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 32px; }
.tm-pagination p { margin: 0; text-align: center; color: var(--paper); font: 11px/1.7 'IBM Plex Mono', monospace; white-space: nowrap; }
.tm-pagination p span { display: block; color: var(--muted); font-size: 10px; }
.tm-page .tm-pagination .tm-button { flex: 0 0 auto; width: auto; min-height: 36px; padding: 8px 4px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tm-page .tm-pagination .tm-button:hover:not(:disabled) { color: var(--orange); background: transparent; }
.tm-page .tm-pagination .tm-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tm-page .tm-pagination .tm-button:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) {
    .tm-pagination { gap: 12px; }
    .tm-page .tm-pagination .tm-button { font-size: 11px; padding: 8px 2px; }
    .tm-pagination p { font-size: 10px; }
    .tm-pagination p span { font-size: 9px; }
}

.tm-technique-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #111; }
.tm-technique-youtube-link { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 12px; }
.tm-technique-youtube-link:hover { color: var(--orange); }
.tm-catalog-status { padding: 30px 0; color: var(--muted); font-size: 14px; }
.tm-techniques-page .tm-technique-belt-row > .tm-technique-button:only-child { margin-left: auto; }

/* Ajustar la vista del video al alto disponible y centrarla en el catálogo. */
.tm-technique-preview {
    box-sizing: border-box;
    width: 100%;
    max-width: min(100%, max(280px, calc((100svh - 260px) * 1.7778 + 56px)));
    margin-inline: auto;
}

/* Mantener controles cómodos en pantallas táctiles. */
@media (pointer: coarse) {
    .tm-button, .tm-techniques-page .tm-technique-button, .tm-page .tm-pagination .tm-button { min-height: 44px; }
    .tm-technique-play { width: 44px; height: 44px; }
}

/* Misma altura y contorno para los controles de la barra de filtros. */
.tm-filter-bar .tm-search input,
.tm-filter-bar .tm-select select,
.tm-filter-bar .tm-button {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding-block: 8px;
    border-radius: 6px;
    line-height: 1.5;
}
.tm-filter-bar .tm-button { align-self: end; margin: 0; }
@media (pointer: coarse) {
    .tm-filter-bar .tm-search input,
    .tm-filter-bar .tm-select select,
    .tm-filter-bar .tm-button { height: 44px; min-height: 44px; }
}

/* Acercar el contenido al encabezado en las páginas de consulta y acceso. */
:is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page, .tm-faq-page) .tm-page-header {
    padding-top: 20px;
    padding-bottom: 12px;
}
:is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page, .tm-faq-page) .tm-shell {
    padding-top: 8px;
}
:is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page) .tm-page-heading {
    margin-bottom: 24px;
}
:is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page) .tm-page-heading .tm-kicker {
    margin-bottom: 12px;
}
:is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page) .tm-title {
    margin-bottom: 20px;
}
:is(.tm-contact-page, .tm-login-page) .tm-form-layout {
    margin-top: 24px;
}
:is(.tm-judokas-page, .tm-techniques-page) .tm-shell > .tm-ai-entry {
    margin: 0 0 8px;
}
@media (max-width: 600px) {
    :is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page, .tm-faq-page) .tm-page-header {
        padding-top: 18px;
        padding-bottom: 12px;
    }
    :is(.tm-judokas-page, .tm-techniques-page, .tm-contact-page, .tm-login-page, .tm-faq-page) .tm-shell {
        padding-top: 6px;
    }
    :is(.tm-contact-page, .tm-login-page) .tm-form-layout {
        margin-top: 20px;
    }
}
/* Fichas reales: conserva el diseño de memoria y respeta párrafos del autor. */
.tm-photo-unavailable { display:grid; place-items:center; min-height:160px; color:var(--muted); font-size:13px; }
.tm-profile-history { max-width:900px; margin:48px 0; }
.tm-profile-history .tm-profile-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.tm-profile-quote { border-left:2px solid var(--orange); margin:24px 0; padding:0 18px; color:var(--muted); }
.tm-judoka-video { aspect-ratio:16/9; }
.tm-judoka-video iframe { display:block; width:100%; height:100%; border:0; }

.tm-judokas-page .tm-portrait > img, .tm-profile-portrait > img { object-fit:contain; }

/* El álbum conserva la fotografía completa y su proporción original. */
.tm-memory-photo { align-self:start; }
.tm-memory-photo-media { aspect-ratio:auto; }
.tm-memory-photo-media > img { width:100%; height:auto; object-fit:contain; }

/* Visor público de fotos: imagen completa, descripción y controles discretos. */
.tm-photo-open { position:relative; display:block; width:100%; padding:0; border:0; background:transparent; color:inherit; cursor:zoom-in; }
.tm-photo-open:focus-visible { outline:2px solid var(--orange); outline-offset:4px; }
.tm-photo-open img { display:block; width:100%; }
.tm-photo-open-hint { position:absolute; right:12px; bottom:12px; padding:7px 11px; border-radius:20px; background:#171c1cdc; color:white; font-size:11px; opacity:0; transition:opacity .18s; }
.tm-photo-open:hover .tm-photo-open-hint, .tm-photo-open:focus-visible .tm-photo-open-hint { opacity:1; }
.tm-lightbox { width:94vw; max-width:1500px; height:94svh; max-height:94svh; box-sizing:border-box; padding:22px 68px; border:1px solid #ffffff14; border-radius:16px; background:#121617; color:#f8f7f3; box-shadow:0 24px 100px #0008; overflow:hidden; }
.tm-lightbox::backdrop { background:#0d1111e8; backdrop-filter:blur(8px); }
.tm-lightbox-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tm-lightbox-label { font:10px 'IBM Plex Mono',monospace; letter-spacing:.16em; color:#dedbd3; }
.tm-lightbox-header p { margin:6px 0 0; font-size:12px; color:#c7c9c7; }
.tm-lightbox button { display:grid; place-items:center; border:1px solid #ffffff22; border-radius:50%; background:#ffffff08; color:white; cursor:pointer; }
.tm-lightbox button:hover { background:#ffffff18; }
.tm-lightbox button:focus-visible { outline:2px solid var(--orange); outline-offset:4px; }
.tm-lightbox-close { width:42px; height:42px; font-size:28px; line-height:1; }
.tm-lightbox-figure { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; height:calc(100% - 90px); margin:16px 0 0; }
.tm-lightbox-figure img { width:100%; flex:1; min-height:0; object-fit:contain; touch-action:pan-y; }
.tm-lightbox-figure figcaption { flex:none; width:100%; max-height:16svh; overflow-y:auto; text-align:center; font-size:14px; line-height:1.6; color:#e0dfda; white-space:pre-wrap; }
.tm-lightbox-arrow { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; font-size:34px; line-height:1; }
.tm-lightbox-previous { left:14px; } .tm-lightbox-next { right:14px; }
.tm-lightbox-help { margin:10px 0 0; text-align:center; font-size:10px; color:#a4aaa6; }
.tm-lightbox-error { color:#e0dfda; }
@media(max-width:600px) { .tm-lightbox { width:96vw; height:94svh; padding:16px 12px 56px; border-radius:12px; } .tm-lightbox-arrow { top:auto; bottom:12px; transform:none; } .tm-lightbox-previous { left:calc(50% - 52px); } .tm-lightbox-next { right:calc(50% - 52px); } .tm-lightbox-help { display:none; } .tm-lightbox-figure { height:calc(100% - 70px); } .tm-photo-open-hint { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .tm-photo-open-hint { transition:none; } }
