<?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_aa718b4b-67c3-4001-9a9d-590c9c0af0bd">
        <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:CombinedProspectusTableNa
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_0e3a2cc8-6fd1-44fa-ba1f-eb5e7078fde4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_458478c0-5a75-464d-a585-2533c14e509d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_163ca203-5a51-405d-ab0d-6af6d1085840">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_d8b6beb4-1cac-4166-b028-772399664865">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_db37d54f-043e-49cd-97e2-1542805f4d38">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_231ba3a4-b7b0-4ce7-b118-d3fa5ee8977e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_bb04ec85-c2e3-4bdd-be07-2fbdf09a3149">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_0b937336-103e-4b75-8caf-c8acf93e4a28">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_e1ab695f-a214-4441-8c80-0dc1a6fd2822">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      id="F_e198334b-78c0-43f3-ba94-f4379ce20541">&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;612,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_aa718b4b-67c3-4001-9a9d-590c9c0af0bd"
      decimals="-3"
      id="F_d4de1fa1-d6b8-4a40-b5f5-f04b035ad9d5"
      unitRef="U_USD">612000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
