<?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_e1b2e956-316c-4c6f-aed3-8f10e567782d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_127693c1-84a3-4ee2-977f-4f7416f31327">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_edf8b5b4-ba9d-4101-a7e3-348fc8457703">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_8160991a-88c9-4cd2-b527-df4c9b2574b5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_e8bb9e96-8151-4389-a2e9-35707eeb5c6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_859947bc-6b79-4395-99c1-8a620bbfe113">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_0755b24f-069d-4cfc-84e3-f08dd93f7fb7">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_1c2a451a-e516-4b28-b95c-c2db48367500">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_e539e105-f64e-4e00-a83e-1aeb6b4bb81b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_b75c5b5f-3ade-466a-996b-4e13f057a8fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      id="F_f1d2af2b-887b-4dac-8e82-92037332aedd">&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;12,625,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_e1b2e956-316c-4c6f-aed3-8f10e567782d"
      decimals="0"
      id="F_ddc810fa-3016-495e-96c9-9b483f9dbf88"
      unitRef="U_USD">12625000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
