<?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_e365fdd1-2ad4-4010-af38-afff0330cfb1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_381734a2-cb78-47b6-a322-3b838011722f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_bae73e26-c1f6-430b-8b16-e658d556fdaa">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_95303f7f-6ca4-4f1c-b0e8-81f1a92b2195">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_5e0ab7eb-8ea6-44ea-93ae-639ad5ca2837">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_ee80e7ba-ccac-4579-9435-5ba06b2d33f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_2d0e6f14-637d-4a0f-8ffd-38a8654e0d02">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_47ef381e-f314-4cfe-8191-f42059f6ea92">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_7cf9edba-56d3-4e70-b3f3-c43b79f11109">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_9530d021-4cca-4648-b59b-4334a0ebbbc9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      id="F_68cda04d-7da3-426f-9252-9e3e2696ea67">&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;2,655,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_e365fdd1-2ad4-4010-af38-afff0330cfb1"
      decimals="0"
      id="F_b460c257-bbca-44ae-a996-8d14f4737253"
      unitRef="U_USD">2655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
