<?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_597e2f74-8665-4177-a77e-af0b2b2dbc30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_592fbd30-7d26-4419-88e9-0518c1202e0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_2389f9fc-e229-4c08-a503-40633350ef1e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_444e1e75-e010-4ad8-a093-0f79bbe1148c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_14630cf2-9592-4dc4-9cc3-81ae34753f10">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_5f12f534-bbcf-4a92-b19e-15736d28ea58">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_a9541e71-c043-40e3-aeb9-dabc8419391b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_fbe4011c-3fa7-404a-8aca-63ada8ac9202">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_6ec47f55-6ef2-4380-b199-0c36b908c592">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_3a50aaba-f9f3-47bf-939d-4dc41188ed0d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      id="F_703884c7-9f42-4969-a0a1-c69ba9f80f32">&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;14,578,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_597e2f74-8665-4177-a77e-af0b2b2dbc30"
      decimals="-3"
      id="F_540bc661-7f06-4bd1-aa28-2e193d3e0233"
      unitRef="U_USD">14578000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
