<?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_89020269-d37a-4e5d-82d8-ba6201e11516">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_42af6d95-55b9-478d-9dbd-9d5f16ec13b0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_8966925b-fcd8-428b-b199-9f8173a1c1fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_651249d4-5b97-4058-b878-bc1e48a85333">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_c0480359-79a6-4d16-9196-7d649973c4d8">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_48d96965-e799-4032-bb9c-21b4b8a39988">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_b928341d-0bdf-411f-a8d9-13e8a64a52b9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_cf781d4f-03f2-4fec-b327-42e10002d78a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_85848ff8-0380-4099-835c-c3d9d7d54396">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_a9b5b255-325b-4065-8727-f1965eef80f9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_89020269-d37a-4e5d-82d8-ba6201e11516"
      id="F_6f5e7ad0-6d28-4575-b77b-d5918cc45cc5">&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;3,201,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_89020269-d37a-4e5d-82d8-ba6201e11516"
      decimals="-3"
      id="F_51c49ed1-e0b2-4f9e-81dd-f9818a67b929"
      unitRef="U_USD">3201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
