<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_ef741eab-e73d-4875-8b1a-daefa9fdae14">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_337908a9-2b7d-4004-949f-70e0f7731c9b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_b0ae4379-64e3-4988-a66c-f4a80e49fb6c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_88e97b6f-3598-46e7-912b-ca039006a886">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_ef75d622-136b-4531-8a31-5dda059fe39f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_416b6d85-27a4-49e5-8ed5-f15e8ea7ce4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_bfdfefcb-d328-4526-a0e1-9ede1adf58eb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_da5c26ee-7041-421e-a58c-346d6d6c757f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_b8514c3b-1cee-434c-bcf8-ac5c5783bcfb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      id="F_60ec74f9-1e45-4f21-b293-4e87e7e88b62">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;483,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_f86d23d1-ba64-4450-a654-8bc71ef8b8e2"
      decimals="-3"
      id="F_559243b8-3b24-4325-a992-ff45b19b3ba4"
      unitRef="U_USD">483000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
