<?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_6c2e59e2-8fea-4e64-8aba-8768e205988d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_9025a187-2f7e-4e39-8190-fa2709dcbb49">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_2b6d13ba-b674-41b9-99b4-e30d3a54e82b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_51701ebe-7e67-44e7-b7b5-d844bdf092cf">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_740760b4-892f-4d1a-93a7-30425a55737e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_f6d26c11-b5fa-4674-a018-862180dc9cde">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_12e795df-e7b5-4298-a741-28175bf57d05">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_576ae5b9-493d-4d4c-abb5-af85b2e15fdf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_82899e49-7892-46fa-8c53-2166a05787b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_d9c9aaf5-164b-4233-819b-6ffed31ed3ad">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      id="F_42b480db-f9af-4262-9f96-f7136b9a6384">&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,451,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_6c2e59e2-8fea-4e64-8aba-8768e205988d"
      decimals="0"
      id="F_86ade79b-8131-4ed0-b74d-edf59a747588"
      unitRef="U_USD">1451000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
