<?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_918edfce-0e9b-4754-bb02-5ec5144bb5b5">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_281c0b35-a47b-4824-8823-42896f6b82b1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_4eb83028-7bda-4089-af41-f08c0a1b4f50">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_bb7f9e2b-eeb5-4a7d-8a13-36eabc87682f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_70edbbc6-3c83-4fb0-91ed-938e62925b75">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_b4fe4daa-4d4b-41b0-807b-870565564feb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_af3a6bf1-4fa3-4a22-a20a-dbfc9137e187">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_aed6f7ea-09a0-48ec-86b5-67f6c391dbc4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_22a0100a-cdaa-4357-b908-b56fb7401aee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_8606e39b-05a3-4025-8df6-bb7d70c89154">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      id="F_9b5d2aca-cde1-4219-81ba-abdc3826e4d4">&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;2,983,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_918edfce-0e9b-4754-bb02-5ec5144bb5b5"
      decimals="-3"
      id="F_5e9b8c49-cf0d-48e4-8569-85510d19b3e6"
      unitRef="U_USD">2983000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
