<?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_f445f33a-9bd2-4391-b04b-91c46cb32a00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_86b1ad08-a485-4c1a-8e5d-a559bbb54482">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_2340dc57-99e7-4f8f-9cd7-65b881ebfbf2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_c58a3ce7-d4cb-4167-9cb5-102c67e13705">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_59ad49b6-1bf7-4dfc-9c75-1b452cc7523c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_177c6d73-d97b-4cf0-848c-fc1f2a574d87">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_8e22308f-9cbf-4a37-bb83-4527de428b5d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_ee801699-ff0f-4512-9512-b2a55cf5e115">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_8d2625b8-8d20-469a-bb37-8ec4160ffd2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_8fa0f3f1-b7ea-4ab4-9d50-be72cd354ee8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      id="F_4bf9e747-43dd-4c53-9900-0c12720508ba">&lt;p style="font-size:10pt;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;1,613,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_f445f33a-9bd2-4391-b04b-91c46cb32a00"
      decimals="-3"
      id="F_c9950d24-f348-4858-826b-4882958d02f3"
      unitRef="U_USD">1613000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
