<?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_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-23</startDate>
            <endDate>2026-04-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_32af7362-9984-42f4-9bab-65f3c8686ca4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_992ba1f1-753f-4fdf-ae85-3780dfbabcab">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_ed0e5a32-15de-4f80-9d12-3b48cee0e9f8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_e171ddfa-8a22-4186-b557-b0eb24aec5af">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_88fa4532-8553-42b8-b861-b89bf64b3099">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_79f03972-88f4-44e5-bb31-cf4d7f74aa39">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_b5d17431-ee4c-4d79-b2be-2c49870d740a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_9fb4e6fa-5f27-4a0b-9b49-95a8102455ca">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_e2b37d54-a0b1-4401-b0b0-b3f21cfcbe79">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      id="F_47273fb4-0fcd-4d5a-be90-8509859a387f">&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;400,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_f0cecbf0-0cdf-41c0-808f-1b33e32a3bc2"
      decimals="0"
      id="F_c1b3e9d0-073f-42d6-a744-72105ff7435b"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>