<?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_7f44ae69-85d9-4917-994d-7f1bc58a8c59">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-27</startDate>
            <endDate>2026-02-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_d9f4d728-8d2e-48ca-8c8f-fc1b5c23c3d4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_8d3655d9-7251-4c57-aceb-1bbdfed8c03b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_f260bc08-9f66-457b-9887-d9ca4dae2550">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_67af899b-59c3-4d8a-83a5-1d8b32ad7526">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_26b36b72-67d5-4b1a-be6d-528cdd92823e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_603120c9-a002-4736-aa4a-b0b64dd1935c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_b9456831-fc0f-4aa5-9545-cce3130077d1">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_e7841b46-5856-48d5-93e0-734ee7a6cc88">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_879db94b-aa70-4a36-8f2c-00782618d56a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      id="F_e683a951-0191-44b5-b710-820297a0b4ed">&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;512,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_7f44ae69-85d9-4917-994d-7f1bc58a8c59"
      decimals="0"
      id="F_594f2f30-22d1-4f9c-b117-91d2475e602e"
      unitRef="U_USD">512000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
