<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_60947987-745f-4315-a1b9-4f7f669a6acf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-27</startDate>
            <endDate>2026-02-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_a1f42c49-5191-4483-be40-e16f2a75349a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_8f7cfa3c-0d33-402b-ae3b-ce4694836342">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_f3837b6f-c041-45c1-9842-2ff196789dee">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_f02899b9-2683-43f8-a18b-eb0fad3d120e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_c205e440-730e-4d39-9683-0f2ac573eeef">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_3fe11d04-358b-45e8-a530-52b254ea22ca">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_e0cbfebe-0056-4c17-b03e-b2240a65a077">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_ec0f9af8-faab-4174-962f-e15663c1266d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_be448ac1-2bd6-4982-8784-073963f69534">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_60947987-745f-4315-a1b9-4f7f669a6acf"
      id="F_9d6de237-d7b3-422b-95a5-f9966e741ef9">&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;63,000,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_60947987-745f-4315-a1b9-4f7f669a6acf"
      decimals="0"
      id="F_c1de1571-d074-432c-9330-0527c0f4293f"
      unitRef="U_USD">63000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
