<?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_15490069-3b63-4021-8ff3-9361260fdea2">
        <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:OfferingTableNa
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_1fe79a9d-4232-4891-88d7-641fa54bcd8e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_766ad8fe-fd14-4e8c-a8d7-754b377cecd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_5ab49eec-12a1-4242-8970-2580ba1c663b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_f3ca9859-7a71-4f4b-a655-6e1fffac8e2f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_cca13294-0db9-4817-94b0-1b72ac519d1b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_623828ea-4ebe-4642-9df0-7808ef40cd57">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_8877e596-8708-43c3-bdef-0ceca1656b8b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_30b72991-a617-4eb2-96c2-b471f1993318">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_e20a9921-4a7d-4ab6-8608-24baaafd3236">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_15490069-3b63-4021-8ff3-9361260fdea2"
      id="F_3fa6cee5-fc1e-48cb-8055-b0ee67e4f3b8">&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,555,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_15490069-3b63-4021-8ff3-9361260fdea2"
      decimals="-3"
      id="F_44084071-3446-41f5-9daa-527bab2a04a7"
      unitRef="U_USD">3555000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
