<?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_aba91c90-3eb9-46a0-8cfd-da80a39479fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-03</startDate>
            <endDate>2026-04-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_dfb22824-727a-4e4c-b15f-9596610cefef">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_a84ed329-f1c2-498e-ac60-1c978921e490">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_03cf2708-4a75-47c3-8612-57b20d130ed1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_f2801239-c591-4162-b6ba-4ce2b267be5a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_b33faaca-c3f4-4a38-b5fb-9359970f071f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_e4c69f27-38bb-4552-b26b-36c36b4a1750">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_ad06fd6a-d766-4109-bfc0-29a03f99c334">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_b7190b5d-0826-429f-ab4c-f833cf70ed5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_83c9dbb9-e78f-4eb2-98b4-37b5e9ea5741">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      id="F_b652fe3c-278b-48f2-80e6-3043c6b09e67">&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;1,500,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_aba91c90-3eb9-46a0-8cfd-da80a39479fc"
      decimals="0"
      id="F_0d526ee9-7b4a-4756-9533-b93e43496871"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
