/* The conjugator for a language whose verbs are a stem and suffixes (Turkish):
   conjugations/show_suffixes, design "TurkishGenius Conjugator". */

.tconj { display: flex; flex-direction: column; gap: 16px; min-width: 0; container-type: inline-size; }
.tconj__crumbs { font-size: 13px; color: var(--text-muted); }
.tconj__crumbs a { color: var(--text-muted); text-decoration: underline; }
.tconj__crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.tconj__muted { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.tconj__box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 18px; border: 1.5px solid var(--line-mid); border-radius: var(--radius-pill); background: var(--field); }
.tconj__box:focus-within { border: 2px solid var(--ink); }
.tconj__box .icon { flex-shrink: 0; color: var(--text-muted); }
.tconj__input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); outline: none; }
.tconj__go { flex-shrink: 0; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Before a search: common verbs by level */
.tconj__intro { display: flex; flex-direction: column; gap: 6px; }
.tconj__intro .tconj__muted { font-size: 15px; max-width: 640px; }
.tconj__group { display: flex; flex-direction: column; gap: 10px; }
.tconj__label { margin: 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tconj__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tconj__chip { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); font-family: var(--font-arabic); font-size: 20px; line-height: 1.2; text-decoration: none; }
.tconj__chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tconj__chip-en { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); }
.tconj__status { margin: 0; font-size: 15px; }
.tconj__matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tconj__match { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.tconj__match:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tconj__match-verb { font-family: var(--font-arabic); font-size: 24px; line-height: 1.1; }
.tconj__match-en { flex: 1; font-size: 14px; color: var(--text-muted); }
.tconj__none { padding: 22px; border: 1px dashed var(--line-dashed); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; }
.tconj__none-title { margin: 0; font-size: 17px; font-weight: 600; }

/* The verb */
.tconj__verb { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tconj__card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.tconj__head { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.tconj__head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tconj__headword { margin: 0; font-family: var(--font-arabic); font-weight: 400; font-size: 56px; line-height: 1; }
.tconj__meaning { font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.1; color: var(--text-body); }
.tconj__facts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.tconj__kind { border: 1px solid var(--line-mid); border-radius: var(--radius-pill); padding: 1px 10px; font-weight: 600; }
.tconj__stem { font-family: var(--font-arabic); font-size: 17px; font-weight: 400; color: var(--ink); }
.tconj__unlisted { max-width: 560px; }
.tconj__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tconj__actions form { display: contents; }
.tconj__pill { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-mid); border-radius: var(--radius-pill); background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tconj__pill:hover { border-color: var(--ink); }
.tconj__save { min-height: 44px; }

.tconj__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tconj__tabs { display: none; }
.tconj__polarity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; min-width: 360px; padding: 3px; border-radius: var(--radius-pill); background: var(--sand); }
.tconj__polarity-option { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tconj__polarity-option[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.tconj__polarity-option:focus-visible, .tconj__tab:focus-visible, .tconj__cell:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* The suffix chain of the form tapped */
.tconj__chain { background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.tconj__chain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tconj__chain-title { margin: 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 700; }
.tconj__chain-form { font-family: var(--font-arabic); font-size: 30px; line-height: 1; color: var(--peach); }
.tconj__parts { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.tconj__part { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 11px; border: 1px solid var(--ink-line-strong); border-radius: 10px; background: var(--ink-line); }
.tconj__part--stem { background: var(--ink-raised); }
.tconj__part-text { font-family: var(--font-arabic); font-size: 24px; line-height: 1; color: #FFFFFF; }
.tconj__part-gloss { font-size: 12px; color: var(--text-on-dark-muted); white-space: nowrap; }
.tconj__space { display: flex; align-items: center; padding: 0 4px; font-size: 12px; color: var(--text-on-dark-muted); }
.tconj__english { margin: 0; font-size: 15px; line-height: 1.55; }
.tconj__english span { font-weight: 700; color: var(--green-bright); }
.tconj__english[hidden] { display: none; }
.tconj__built { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ink-line); padding-top: 12px; }
.tconj__built-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 700; }
.tconj__notes { display: flex; flex-direction: column; gap: 6px; }
.tconj__notes p { margin: 0; font-size: 14px; line-height: 1.55; }

/* The table: persons down, tenses across */
.tconj__tables { overflow: hidden; border-radius: 18px; }
.tconj__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tconj__table[hidden] { display: none; }
.tconj__table thead tr { background: var(--sand); }
.tconj__table thead th { text-align: left; padding: 10px 12px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-body); line-height: 1.3; }
.tconj__table thead .tconj__person-col { width: 150px; padding-left: 14px; letter-spacing: 1px; }
.tconj__th-sub { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.tconj__table tbody tr { border-top: 1px solid var(--line-soft); }
.tconj__table tbody th { text-align: left; padding: 0 14px; font-weight: 400; }
.tconj__table td { padding: 4px; }
.tconj__pronoun { display: block; font-size: 15px; font-weight: 700; }
.tconj__pronoun-en { display: block; font-size: 12px; color: var(--text-muted); }
.tconj__cell {
  width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 0 10px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.tconj__cell:hover { background: var(--sand); }
.tconj__cell[aria-pressed="true"] { background: var(--mark); border-color: var(--ink); }
.tconj__cell-form { font-family: var(--font-arabic); font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.tconj__cell-rest { color: var(--clay-deep); }
.tconj__cell-play { flex-shrink: 0; font-size: 10px; color: var(--clay-hover); }
.tconj__footnote { margin-top: -4px; }

/* Narrow: one tense at a time, with tabs (3 + 2) above the Positive / Negative / Question switch. */
@container (max-width: 760px) {
  .tconj__head { flex-direction: column; align-items: stretch; padding: 16px; }
  .tconj__headword { font-size: 44px; }
  .tconj__meaning { font-size: 22px; }
  .tconj__controls { flex-direction: column; align-items: stretch; }
  .tconj__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
  .tconj__tab { min-height: 44px; padding: 4px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.15; cursor: pointer; }
  .tconj__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
  .tconj__polarity { min-width: 0; }
  .tconj__hint { display: none; }
  .tconj__chain { padding: 14px 16px; }
  .tconj__chain-form { font-size: 24px; }
  .tconj__part-text { font-size: 21px; }
  .tconj__table thead .tconj__person-col { width: 120px; }
  .tconj__cell-form { font-size: 21px; }
  .tconj__tables:not([data-tense="present"]) [data-col="present"],
  .tconj__tables:not([data-tense="past"]) [data-col="past"],
  .tconj__tables:not([data-tense="future"]) [data-col="future"],
  .tconj__tables:not([data-tense="aorist"]) [data-col="aorist"],
  .tconj__tables:not([data-tense="reported"]) [data-col="reported"] { display: none; }
}
