<?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_e1038315-2426-4221-93cf-0015a573d93b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_1cb649c2-84a1-4ec7-ad72-2e81f7488602">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_f240d154-9005-4a2a-8076-a741f7d39ba1">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_e8e430c2-6192-4fc0-8078-296f138fe09a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_73754f01-0c27-4b5b-92ed-1795833e90f3">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_0da4807d-b16b-491e-a1b6-660248975dea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_b2ec7037-d8b4-4979-abdb-c05b04c5bc22">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_c4b2acd3-67e3-465b-96a6-288f76b31857">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_7a640d70-af51-4c93-b2ec-50684b631974">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_e96b7af4-e451-4a69-a496-9228fec16185">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1038315-2426-4221-93cf-0015a573d93b"
      id="F_fb4c131b-6030-479b-8fc3-eeb16420be91">&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,250,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_e1038315-2426-4221-93cf-0015a573d93b"
      decimals="0"
      id="F_b2a9372e-ac8f-4a1b-ba29-d8bfb1b01dda"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
