.tf {
    --tf-pink: #d90068;
    --tf-accent: #aa004e;
    --tf-rule: #e0c8d1;
    --tf-ink: #242124;
    --tf-bg: #fdf7ef;
    box-sizing: border-box;
    position: relative;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    border-top: 5px solid var(--tf-pink);
    background: var(--tf-bg);
    color: var(--tf-ink);
    font: 400 16px/1.5 system-ui, "Leelawadee UI", Tahoma, sans-serif;
    text-align: left;
}

.tf *, .tf *::before, .tf *::after { box-sizing: inherit; }
.tf a { color: inherit; }
.tf a:focus { outline: 2px solid currentColor; outline-offset: 3px; }
.tf a:focus:not(:focus-visible) { outline: none; }
.tf a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tf a:hover strong, .tf a:hover .tf-cta { text-decoration: underline; }
.tf h2, .tf h3, .tf ul { margin: 0; }
.tf ul { padding: 0; list-style: none; }

.tf-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 18px; }
/* The news sites assign a background color to every section in their Bootstrap stylesheet. */
.tf .tf-main { padding: 24px 0; background: transparent; }
.tf .tf-title { margin: 0 0 18px; font: inherit; font-weight: 800; font-size: clamp(26px, 4vw, 43px); line-height: 1.2; }
.tf-title > span, .tf-arrow, .tf-cta { color: var(--tf-accent); }
.tf-tools, .tf-tool-list, .tf-apps, .tf-app-list { display: grid; gap: 16px; min-width: 0; }
.tf-tool, .tf-app { display: grid; grid-template-columns: minmax(76px, 30%) minmax(0, 1fr); gap: 13px; align-items: center; min-width: 0; min-height: 44px; text-decoration: none; }
.tf-tool:hover, .tf-app:hover { color: inherit; text-decoration: none; }
.tf-copy { display: grid; gap: 5px; min-width: 0; }
.tf-copy strong { display: block; color: inherit; font-size: clamp(18px, 2vw, 24px); font-weight: 800; line-height: 1.25; }
.tf-description { display: block; font-size: 16px; }
.tf-app-name { display: block; font-size: 16px; }
.tf-app-name::after { display: block; width: 2rem; height: 3px; margin: 4px 0; background: var(--tf-pink); content: ""; }
.tf-cta { display: block; font-weight: 650; font-size: 15px; }
.tf-app--featured { grid-template-columns: 1fr; gap: 14px; }
.tf-app--featured .tf-copy strong { font-size: clamp(25px, 3.2vw, 42px); }
.tf-app--featured .tf-description { font-size: clamp(16px, 1.8vw, 21px); }
.tf-app--featured .tf-cta { font-size: 17px; }
.tf-catalog { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; font-weight: 700; text-underline-offset: 4px; }

.tf-art {
    display: block;
    width: 100%;
    aspect-ratio: var(--tf-ratio);
    background-image: var(--tf-art);
    background-position: var(--tf-pos);
    background-size: var(--tf-size);
    background-repeat: no-repeat;
}

.tf-art--mbti { --tf-art: url("01.png"); --tf-ratio: 207 / 205; --tf-size: 986.957% 375.610%; --tf-pos: 3.813% 41.593%; }
.tf-art--savings { --tf-art: url("01.png"); --tf-ratio: 207 / 205; --tf-size: 986.957% 375.610%; --tf-pos: 38.508% 41.593%; }
.tf-art--home { --tf-art: url("01.png"); --tf-ratio: 207 / 205; --tf-size: 986.957% 375.610%; --tf-pos: 73.312% 41.593%; }
.tf-art--plum-love { --tf-art: url("02.png"); --tf-ratio: 345 / 354; --tf-size: 591.594% 217.514%; --tf-pos: 2.476% 58.413%; }
.tf-art--plum-lagna { --tf-art: url("02.png"); --tf-ratio: 192 / 164; --tf-size: 1063.021% 469.512%; --tf-pos: 47.756% 37.294%; }
.tf-art--plum-seven { --tf-art: url("02.png"); --tf-ratio: 192 / 164; --tf-size: 1063.021% 469.512%; --tf-pos: 79.124% 37.294%; }
.tf-art--plum-money { --tf-art: url("02.png"); --tf-ratio: 192 / 165; --tf-size: 1063.021% 466.667%; --tf-pos: 47.756% 72.231%; }
.tf-art--plum-connection { --tf-art: url("02.png"); --tf-ratio: 192 / 165; --tf-size: 1063.021% 466.667%; --tf-pos: 79.124% 72.231%; }
.tf-art--gold-lagna { --tf-art: url("03.png"); --tf-ratio: 829 / 332; --tf-size: 246.441% 231.928%; --tf-pos: 3.377% 14.612%; }
.tf-art--gold-love { --tf-art: url("03.png"); --tf-ratio: 171 / 177; --tf-size: 1194.737% 435.028%; --tf-pos: 2.190% 76.391%; }
.tf-art--gold-money { --tf-art: url("03.png"); --tf-ratio: 167 / 177; --tf-size: 1223.353% 435.028%; --tf-pos: 28.678% 76.391%; }
.tf-art--gold-connection { --tf-art: url("03.png"); --tf-ratio: 170 / 177; --tf-size: 1201.765% 435.028%; --tf-pos: 54.351% 76.391%; }
.tf-art--gold-seven { --tf-art: url("03.png"); --tf-ratio: 171 / 177; --tf-size: 1194.737% 435.028%; --tf-pos: 81.677% 76.391%; }
.tf-art--mystery { --tf-art: url("04.png"); --tf-ratio: 541 / 301; --tf-size: 377.634% 255.814%; --tf-pos: 3.395% 31.343%; }
.tf-art--food { --tf-art: url("04.png"); --tf-ratio: 372 / 153; --tf-size: 549.194% 503.268%; --tf-pos: 69.060% 16.856%; }
.tf-art--phone { --tf-art: url("04.png"); --tf-ratio: 372 / 148; --tf-size: 549.194% 520.270%; --tf-pos: 69.060% 48.714%; }

.tf--1 .tf-art, .tf--4 .tf-art { border-radius: 4px; }
.tf-groups { background: #fae5eb; }
.tf-groups-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 18px; }
.tf-group h3 { color: inherit; font: inherit; font-size: 18px; font-weight: 800; }
.tf-group h3::after { display: block; width: 32px; height: 3px; margin: 5px 0; background: var(--tf-pink); content: ""; }
.tf-group ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.tf-group a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.tf-group li + li::before { margin-right: 6px; content: "·"; }
.tf-base { background: #26262b; color: #fff; }
.tf-base-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding-top: 8px; padding-bottom: 8px; }
.tf-base ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.tf-base a, .tf-base li > span { display: inline-flex; align-items: center; min-height: 44px; }
.tf-base a { text-decoration: none; }
.tf-base a:hover { text-decoration: underline; }

.tf--2 { --tf-accent: #ffe0ef; --tf-ink: #fff8ee; --tf-rule: #a37491; --tf-bg: #360d2b; background: radial-gradient(ellipse at top left, #4c163c, var(--tf-bg) 75%); }
.tf--2 .tf-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 0 0 15px 13px; margin-bottom: 16px; border-bottom: 1px solid var(--tf-rule); }
.tf--2 .tf-title-row::before { align-self: stretch; width: 7px; margin-left: -12px; background: var(--tf-pink); transform: skew(-13deg); content: ""; }
.tf--2 .tf-title-row > span { font-size: 16px; }
.tf--2 .tf-title { margin: 0; }
.tf--2 .tf-app--featured .tf-art { max-width: 350px; }
.tf--2 .tf-apps > .tf-app, .tf--2 .tf-app-list > .tf-app { padding-bottom: 12px; border-bottom: 1px solid var(--tf-rule); }
.tf--2 .tf-cta { text-decoration: underline; text-decoration-color: #ff4196; text-underline-offset: 5px; }

.tf--3 { --tf-accent: #7f2024; --tf-ink: #322017; --tf-rule: #b89359; --tf-bg: #fff3d6; background: radial-gradient(ellipse at 48% 32%, #fff7e5, #f9ebc6 80%); }
.tf--3 .tf-app-name, .tf--3 .tf-copy strong { font-family: Georgia, "Leelawadee UI", Tahoma, serif; }
.tf--3 .tf-app--featured { border-bottom: 1px solid var(--tf-rule); padding-bottom: 16px; }
.tf--3 .tf-app--featured .tf-app-name::after { display: inline-block; width: 32px; margin: 0 0 4px 10px; background: var(--tf-rule); }
.tf--3 .tf-app--featured .tf-cta { text-decoration: underline; text-underline-offset: 5px; }

.tf--4 { --tf-accent: #ff5aa5; --tf-ink: #f9fafd; --tf-rule: #657088; --tf-bg: #0c1221; }
.tf--4 .tf-tool--mystery { grid-template-columns: 1fr; }
.tf--4 .tf-tool--mystery strong { font-size: clamp(23px, 3vw, 34px); }
.tf--4 .tf-tool-list .tf-tool + .tf-tool { border-top: 1px solid var(--tf-rule); padding-top: 12px; }
.tf--4 .tf-groups { background: #edf0f7; color: #111c37; }
.tf--4 .tf-group h3::after { display: none; }
.tf--4 .tf-group a { color: #a8004c; }

@media (min-width: 640px) {
    .tf-inner { padding-right: 24px; padding-left: 24px; }
    .tf-app--featured, .tf--4 .tf-tool--mystery { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 18px; }
    .tf--2 .tf-app-list, .tf--3 .tf-app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-groups-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tf-group + .tf-group { border-left: 1px solid #ada4af; padding-left: 12px; }
}

@media (min-width: 960px) {
    .tf .tf-main { padding: 27px 0 20px; }
    .tf .tf-title { margin-bottom: 20px; }
    .tf--1 .tf-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .tf--1 .tf-tool { grid-template-columns: minmax(0, 33%) minmax(0, 1fr); }
    .tf--1 .tf-copy strong { font-size: clamp(19px, 1.7vw, 22px); }
    .tf--2 .tf-title { margin-bottom: 0; }
    .tf--2 .tf-apps { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 20px; }
    .tf--2 .tf-apps > .tf-app { padding: 0 16px 0 0; border: 0; border-right: 1px solid var(--tf-rule); }
    .tf--2 .tf-app-list { gap: 10px 14px; align-content: start; }
    .tf--2 .tf-app-list > .tf-app { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
    .tf--2 .tf-app-list .tf-copy strong, .tf--3 .tf-app-list .tf-copy strong { font-size: 19px; }
    .tf--3 .tf-app-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tf--3 .tf-app-list > .tf-app + .tf-app { border-left: 1px solid var(--tf-rule); padding-left: 11px; }
    .tf--3 .tf-app--featured { gap: 25px; }
    .tf--4 .tf-tools { grid-template-columns: minmax(0, 55%) minmax(0, 1fr); gap: 20px; }
    .tf--4 .tf-tool--mystery { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); border-right: 1px solid var(--tf-rule); padding-right: 12px; }
    .tf--4 .tf-tool-list .tf-tool { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
}
