<?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_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-20</startDate>
            <endDate>2026-04-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_b3a15b55-a4fc-4cde-9863-7bdcc4ecd609">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_1b226026-bd20-44b8-97c8-244581a63639">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_862fd112-0f3d-41e0-9b86-42622ebae94e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_259c8637-461f-4c1d-b6cb-3a37c984fb34">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_1f93ef93-16c8-4770-a5db-80b69a57504c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_5799c29d-b52a-4beb-a706-0b539f554d63">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_8aa8c7ea-f802-4f2d-b567-465bc2d54e42">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_d23a5ed6-7871-4bfc-be74-058147b3f405">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_55d1f040-c5ac-43d3-922c-c8ec89d46b41">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      id="F_ea708528-8078-4e92-947f-4df247d4727c">&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;22,357,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_5a92e7e1-da78-45e3-b5bd-16db8ffb99cf"
      decimals="0"
      id="F_2b954d70-5544-45e0-b262-92e604987ca0"
      unitRef="U_USD">22357000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
