<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_88c13ab5-548e-479e-bf28-2e5d659bd174">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_e458118f-fb7d-457b-b50e-7cd88c402c62">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_155a51e7-6e20-4d83-9623-c9bdcaf24203">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_40206c4e-f4ba-4466-9666-34e23a6b50ea">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_dc4928cf-67b4-4f72-b297-c8258cdf76ec">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_86e1e821-0882-40f9-90eb-4b392273cf9a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_812e219c-9882-4da9-b2fd-3625e23b3a0c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_69b3d81e-8404-4170-883f-b463780b5ea0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_6de8f87a-ce5e-42d2-81dc-ec1a66235935">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      id="F_5ae83f0d-e480-4cac-9635-ac8f95c40b4b">&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;514,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_3f93366f-b8de-43d2-9492-a6a2f2aeda3b"
      decimals="-3"
      id="F_aa196009-e4aa-4207-8088-62d85c9c9261"
      unitRef="U_USD">514000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
