<?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_c77aea51-21bb-49f1-8ffa-1d96a100319b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_e370e591-bd52-45d7-bd89-b63caf6f8652">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_69ea5a48-8df2-48d4-9bd2-749164adb413">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_7d6dffbf-49b5-409f-bc67-9d522e99a7c3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_a415654f-f8f4-4f8c-abdf-7966b2ebee98">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_66282175-e6ee-4274-98c6-7bc706ffa8ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_0a323966-82ab-4d1f-88ea-9ab49fbcde55">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_4c0c17da-c1fa-4e10-82ab-e510f1df5102">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_14d64582-f946-4208-b789-7e60b03c00a2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_c484fd11-2dc7-4627-b317-822e0f90bda7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      id="F_b8a2d834-5c2c-449f-8843-759ecaba09d5">&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,500,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_c77aea51-21bb-49f1-8ffa-1d96a100319b"
      decimals="0"
      id="F_7d179c52-94c2-4740-b637-c2f128033299"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
